Subversion Repositories wimsdev

Rev

Rev 7530 | Rev 12479 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5261 czzmrn 1
!! might want to share code with edit.phtml
7443 bpr 2
 
3
<fieldset class="property_fields blockcenter">
7454 bpr 4
  <legend>$name_create_or_edit</legend>
7443 bpr 5
  <div class="field box">
6
   <label for="reg_title">$wims_name_title</label>
7
   <input size="50" name="reg_title" value="$vote_title" id="reg_title"/>
7474 bpr 8
   !set wims_ref_class=wims_button_help float_right
7454 bpr 9
   !href cmd=help&helpname=generalinfo $wims_name_help
7443 bpr 10
  </div>
11
  <div class="field box">
12
   <label for="reg_option">$wims_name_Type</label>
5261 czzmrn 13
  !default vote_status=0
5369 bpr 14
 !! !default reg_model=free
5261 czzmrn 15
  !set reg_status=$vote_status
16
  !set reg_option=$vote_option
17
  !set reg_show=$vote_show
18
  !set reg_whovoteshow=$vote_whovoteshow
19
  !if $vote_status=0
20
    !formselect reg_option list anonymous,trace,nominative prompt $name_anonymous,$name_trace,$name_nominative
21
  !else
22
    $(name_$(vote_option))
23
  !endif
7530 bpr 24
  </div>
25
  <div class="field box">
26
    <label for="reg_status">$wims_name_Status</label>
5261 czzmrn 27
  !if $vote_status=0 or $vcnt=0 or $vcnt=$empty or $vote_src$reg_src=$empty
7530 bpr 28
    !formselect reg_status from 0 to 3 prompt $name_0,$name_1,$name_2,$name_3
5261 czzmrn 29
  !else
7530 bpr 30
    !formselect reg_status from 1 to 3 prompt $name_1,$name_2,$name_3
5261 czzmrn 31
  !endif
7530 bpr 32
  </div>
33
  <div class="field box">
5369 bpr 34
 !if $gstep= $empty or $gstep=0
6235 bpr 35
    <input type="hidden" name="gstep" value="1" />
7443 bpr 36
 !endif
11667 bpr 37
    <label for="reg_show">$name_result</label>
5261 czzmrn 38
   !formselect reg_show list 1,0 prompt $name_publish,$name_hide
7530 bpr 39
  </div>
40
  <div class="field box">
41
   <label for="reg_whovoteshow">$name_whovote</label>
5261 czzmrn 42
   !formselect reg_whovoteshow list 1,0 prompt $name_publish2,$name_hide2
7530 bpr 43
  </div>
44
  <div class="field box">
45
    <label for="reg_model">$name_model</label>
46
  !set wims_ref_class=wims_button_help float_right
47
  !href cmd=help&helpname=guidedmode $wims_name_help
5756 bpr 48
!!bad conditions !!!
6235 bpr 49
  !if $vote_status=0 and ($vote_src=$empty or $vote_src=<br /> or $vote_src=<br />)
5369 bpr 50
   !formselect reg_model list free,$vmodellist prompt $name_free,$name_vmodellist
5340 czzmrn 51
  !else
5369 bpr 52
   $(name_$vote_model)
5340 czzmrn 53
!! why do I need the following? --> questo era in "riserva" lo provo
54
!! a togliere per -svn
6235 bpr 55
!!   <input type="hidden" name="reg_model" value="$vote_model" />
5340 czzmrn 56
  !endif
7443 bpr 57
 </div>
7530 bpr 58
 
59
</fieldset>