Subversion Repositories wimsdev

Rev

Rev 13610 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
23 reyssat 1
 
2
!set wims_form_method=post
3
!form reply
7454 bpr 4
 
23 reyssat 5
!if $vote_title=$empty
12479 bpr 6
  !set name_create_or_edit= $name_creation
23 reyssat 7
!else
12479 bpr 8
  !set name_create_or_edit= $name_edition
23 reyssat 9
!endif
5235 czzmrn 10
 
5369 bpr 11
!if $gstep= or $gstep=0 or $vote_title=$empty
12
  !read votesetup.phtml
5235 czzmrn 13
!endif
5369 bpr 14
!if $error!=$empty
12479 bpr 15
  !goto endform
16
  !exit
5340 czzmrn 17
!endif
5369 bpr 18
!if $gstep>0
12479 bpr 19
  !!to put in the legend
7454 bpr 20
  $name_create_or_edit
5369 bpr 21
  !read models/$reg_model.phtml
5235 czzmrn 22
!endif
5369 bpr 23
:endform
5235 czzmrn 24
 
5369 bpr 25
!! this should probably best be defined in models/_______.phtml
26
!! (and similar checks are probably needed in order to !reset gstep, cfr. reg.proc)
27
!!
28
!! if ok, analogous should be done for previous step - $wims_name_givup
4142 guerimand 29
 
5369 bpr 30
!set submit_name=$name_nextstep
31
!set abandon_name=$wims_name_back2
32
!if $vote_model=free and $gstep>0
12479 bpr 33
  !set submit_name=$wims_name_tosave
34
  !set abandon_name=$wims_name_giveup
1538 bpr 35
!else
12479 bpr 36
  !if $gstep>2
37
    !set submit_name=$wims_name_tosave
38
  !endif
4142 guerimand 39
!endif
5369 bpr 40
!if $gstep <1
12479 bpr 41
  !set abandon_name=$wims_name_giveup
8056 obado 42
!endif
13610 obado 43
<div class="wimscenter wimsform">
17170 bpr 44
   <input type="submit" name="rEg" value="$submit_name">
10433 bpr 45
 $
17170 bpr 46
   <input type="submit" name="abandon" value="$abandon_name" class="wims_secondary_button">
13610 obado 47
</div>
5868 bpr 48
 
5927 bpr 49
!formend
11849 guerimand 50
!reset reg_option reg_status reg_show reg_whovoteshow up_bday[10] up_bmonth[10] up_byear[10] up_bdate[10]\
5369 bpr 51
up_bhour[10] up_bmin[10] up_ehour[10] up_emin[10] up_nstud[10]\
7198 bpr 52
up_testoextra[10] up_exconnip[10] up_testointro up_namevar,up_defconnip