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