Subversion Repositories wimsdev

Rev

Rev 15341 | Rev 17106 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed

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