Subversion Repositories wimsdev

Rev

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

Rev Author Line No. Line
20 reyssat 1
!nocache
1393 bpr 2
 
15026 obado 3
<!-- Begin oef/form.phtml-->
4
 
853 czzmrn 5
!if $hasembedding!=yes
11248 obado 6
  <fieldset class="oefform">
11478 obado 7
  !set enter_reply_tag=legend
8
!else
9
  !set enter_reply_tag=h2
853 czzmrn 10
!endif
1665 bpr 11
 
1664 bpr 12
!if $oefsteps!=$empty
11478 obado 13
  !set fieldtot=!itemcnt $thisstep
1664 bpr 14
!else
11478 obado 15
  !set fieldtot=$[$choicecnt+$replycnt]
1664 bpr 16
!endif
1393 bpr 17
 
1664 bpr 18
!if $fieldtot<1
11478 obado 19
  !changeto oef/noreply.phtml
1664 bpr 20
!endif
21
 
22
!set N_=!itemcnt $embedded
23
!if $fieldtot<=$N_
11478 obado 24
  !goto send
1664 bpr 25
!endif
11478 obado 26
 
27
<$enter_reply_tag class="oef_enterreply">
1664 bpr 28
!if $error=$empty
11478 obado 29
  $name_enterreply:
1664 bpr 30
!else
11478 obado 31
  $name_correctreply:
1664 bpr 32
!endif
11478 obado 33
</$enter_reply_tag>
1664 bpr 34
 
35
!if $hasembedding!=yes
17123 bpr 36
  <datalist id="emptylist"><option value="??"></datalist>
17110 bpr 37
  !form reply name="replyform" onsubmit="return formcheck();" id="a_oefform" autocomplete="off" spellcheck="false"
1664 bpr 38
!endif
39
 
40
!if $oefsteps!=$empty and $oefstepcnt>1
11478 obado 41
  <div>
42
  !if $dynsteps=yes
43
    ($name_step $oefstep)
44
  !else
45
    ($name_step $oefstep/$oefstepcnt)
46
  !endif
47
  </div>
1664 bpr 48
!endif
11478 obado 49
 
11248 obado 50
<table class="oefnoembed">
1664 bpr 51
!distribute item 1,1 into cntr,cntc
52
!for t in $ansorder
11478 obado 53
  !if $oefsteps=$empty or $t$(cnt$t) isitemof $thisstep
54
    !read oef/form$t.phtml $(cnt$t)
55
  !endif
56
  !advance cnt$t
1664 bpr 57
!next t
11248 obado 58
</table> <!-- end table oefnoembed -->
11478 obado 59
 
1664 bpr 60
:send
61
!if $wims_fill_list!=$empty and $fillcnt>0 and $wims_fill_type!=$empty
11478 obado 62
  !read anstype/$wims_fill_type.after
1664 bpr 63
!endif
64
!if $oef_formnosubmit!=yes
11478 obado 65
  !if $oef_js_submit!=
66
    !set oef_js_submit=onclick="javascript:$oef_js_submit;"
67
  !else
68
    !set oef_js_submit=
69
  !endif
13841 obado 70
  <div class="send_answer">
71
    !if _check notin $wims_session
72
      <input type="submit" $oef_js_submit value="$name_sendanswer" />
73
    !else
74
      <input type="submit" $oef_js_submit value="$name_sendanswer" disabled="disabled" />
75
    !endif
76
    !if $jquery_defined=yes
15341 obado 77
      <div class="reveal" id="exo_formCheck" data-reveal>
78
        <h1>$name_are_you_sure</h1>
15345 bpr 79
        <div class="wims_msg info small">$name_exo_form_check</div>
15341 obado 80
        <button class="close-button" data-close aria-label="Close modal" type="button">
81
          <span aria-hidden="true">&times;</span>
82
        </button>
83
        <div class="wimscenter">
15345 bpr 84
          <button class="submit wims_button" onclick="document.getElementById('a_oefform').submit();">$wims_name_yes</button>
15341 obado 85
          <button type="button" class="wims_button wims_secondary_button" data-close>$wims_name_no</button>
86
        </div>
13841 obado 87
      </div>
88
    !endif
89
  </div>
1664 bpr 90
!endif
5928 bpr 91
 
92
!formend
1664 bpr 93
!if $hasembedding!=yes
11248 obado 94
  </fieldset>
95
  !! end of "oefform" fieldset
1664 bpr 96
!endif
97
 
98
!if $qcmgood<1 and $choicecnt>0
11248 obado 99
  <p class="small">$name_remark</p>
1664 bpr 100
!endif