Subversion Repositories wimsdev

Rev

Rev 16094 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1.  
  2. !if $error!=$empty
  3.   !exit
  4. !endif
  5.  
  6. !if $no_selection!=$empty
  7.   <div class="wims_msg alert">
  8.     <span class="wims_warning">$wims_name_warning</span>. $name_noselect
  9.   </div>
  10. !endif
  11.  
  12. !if $serial!=$wims_class and $old_testcnt>0
  13.   !set test=bad
  14. !endif
  15.  
  16. !if $test=bad
  17.   <div class="wims_msg alert">
  18.     <span class="wims_warning">$wims_name_warning!</span>
  19.     !read lang/names.phtml.$moduclass_lang arch
  20.   </div>
  21. !endif
  22.  
  23. !form reply
  24.   <input type="hidden" name="job" value="$job">
  25.   <input type="hidden" name="job2" value="restore">
  26.   $name_deposit
  27.   <fieldset class="property_fields">
  28.     <legend>$name_res_type</legend>
  29.     <ul>
  30.       <li>
  31.         <input type="checkbox" name="selection" id="restore_all" value="all">
  32.         <label for="restore_all">$name_all</label>
  33.       </li>
  34.       !if def isitemof $gotlist
  35.         <li>
  36.           <input type="checkbox" name="selection" id="restore_def" value="def">
  37.           <label for="restore_def">$name_config. $name_danger.</label>
  38.         </li>
  39.       !endif
  40.       !if sup isitemof $gotlist
  41.         <li>
  42.           !if $sharing_sup=$empty
  43.             <input type="checkbox" name="selection" id="restore_sup" value="sup">
  44.           !endif
  45.             <label for="restore_sup">$name_teacher.</label>
  46.           !if $sharing_sup!=$empty
  47.             $name_no_restore
  48.           !else
  49.             $name_danger.
  50.           !endif
  51.         </li>
  52.       !endif
  53.       !let list=!listintersect user,doc,exo,sheet,exam,forum,motd,userphoto,tool,freework and $gotlist
  54.       !for type in $list
  55.         <li>
  56.           !if $(sharing_$type)=$empty and $type notitemof $forbiddenlistdep
  57.             <input type="checkbox" name="selection" id="restore_$type" value="$type">
  58.           !endif
  59.           <label for="restore_$type"><strong>$(new_$(type)cnt)</strong> $(name_$type).</label>
  60.           !if $(sharing_$type)!=$empty
  61.             $name_no_restore
  62.           !else
  63.             !if $type isitemof $forbiddenlistdep
  64.               !if $type notitemof $forbiddenlist
  65.                 $name_dependance
  66.               !else
  67.                 $name_limit_exceed
  68.               !endif
  69.             !else
  70.               $(name_$(type)0)
  71.               <span class="small">($(name_$(type)1) : $(old_$(type)cnt))</span>.
  72.             !endif
  73.           !endif
  74.         </li>
  75.       !next type
  76.       !if score isitemof $gotlist
  77.         <li>
  78.           !if score notitemof $forbiddenlistdep
  79.             <input type="checkbox" name="selection" id="restore_score" value="score">
  80.           !endif
  81.           <label for="restore_score">$name_activity</label>
  82.           !if score isitemof $forbiddenlistdep
  83.               !if score notitemof $forbiddenlist
  84.                 $name_dependance
  85.               !else
  86.                 $name_limit_exceed
  87.               !endif
  88.           !endif
  89.         </li>
  90.       !endif
  91.       !if manual isitemof $gotlist
  92.         <li>
  93.           !if manual notitemof $forbiddenlistdep
  94.             <input type="checkbox" name="selection" id="restore_manual" value="manual">
  95.           !endif
  96.           <label for="restore_manual">$new_manualcnt $name_manual.</label>
  97.           !if manual isitemof $forbiddenlistdep
  98.               !if manual notitemof $forbiddenlist
  99.                 $name_dependance
  100.               !else
  101.                 $name_limit_exceed
  102.               !endif
  103.           !else
  104.             <span class="small">($name_manual1&nbsp;:
  105.              $old_manualcnt)</span>.
  106.           !endif
  107.         </li>
  108.       !endif
  109.       !if cdt isitemof $gotlist
  110.          <li>
  111.            <input type="checkbox" name="selection" id="restore_cdt" value="cdt">
  112.            <label for="restore_cdt">$name_cdt.</label>
  113.            !if $old_cdtcnt>0
  114.              <span class="small">($name_cdt1)</span>
  115.            !endif
  116.          </li>
  117.       !endif
  118.       !if livret isitemof $gotlist
  119.         <li>
  120.           !if livret notitemof $forbiddenlistdep
  121.             <input type="checkbox" name="selection" id="restore_livret" value="livret">
  122.           !endif
  123.           <label for="restore_livret">$name_livret.</label>
  124.           !if livret isitemof $forbiddenlistdep
  125.               !if livret notitemof $forbiddenlist
  126.                 $name_dependance
  127.               !else
  128.                 $name_limit_exceed
  129.               !endif
  130.           !else
  131.             !if $old_livretcnt>0
  132.               <span class="small">($name_livret1)</span>
  133.             !endif
  134.           !endif
  135.         </li>
  136.       !endif
  137.       !if seq isitemof $gotlist
  138.         <li>
  139.           !if seq notitemof $forbiddenlistdep
  140.             <input type="checkbox" name="selection" id="restore_seq" value="seq">
  141.           !endif
  142.           <label for="restore_seq">$name_seq.</label>
  143.           !if seq isitemof $forbiddenlistdep
  144.               !if seq notitemof $forbiddenlist
  145.                 $name_dependance
  146.               !else
  147.                 $name_limit_exceed
  148.               !endif
  149.           !else
  150.             $name_seq0
  151.             <span class="small">($name_seq1 $old_seqcnt)</span>.
  152.           !endif
  153.         </li>
  154.       !endif
  155.     </ul>
  156.   </fieldset>
  157.  
  158.   <fieldset class="property_fields">
  159.     <legend>$name_method</legend>
  160.     <ul>
  161.       <li>
  162.         <input type="radio" name="restore" id="method_merge" value="merge" checked="checked">
  163.         <label for="method_merge">$name_merge</label>
  164.         <div class="formHelp">$name_merge1.</div>
  165.       </li>
  166.       <li>
  167.         <input type="radio" name="restore" id="method_replace" value="replace">
  168.         <label for="method_replace">$name_replace</label>
  169.         <div class="formHelp"><span class="wims_warning">$name_replace1.</span></div>
  170.       </li>
  171.     </ul>
  172.   </fieldset>
  173.   !!## TODO desactiver les feuilles s'il n'y pas de participant et enlever la date d'expiration?
  174.  !!!if $(new_usercnt)=0
  175.   !!   <input type="checkbox" name="preparation" value="no"> Mettre les feuilles en prĂ©paration
  176.   !!!endif
  177.   <div class="wimscenter">
  178.     <input type="submit" value="$name_selectrestore">
  179.     !set wims_ref_class=wims_button wims_secondary_button
  180.     !href cmd=reply&job=new $wims_name_giveup
  181.   </div>
  182. !formend
  183.  
  184. <div class="wims_msg info">
  185.   !read lang/names.phtml.$moduclass_lang arch_end
  186. </div>
  187.