Subversion Repositories wimsdev

Rev

Rev 12840 | Rev 13360 | Go to most recent revision | 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 and $gotlist
  54.       !for type in $list
  55.         <li>
  56.           !if $(sharing_$type)=$empty
  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.             <span class="small">($(name_$(type)1) : $(old_$(type)cnt))</span>.
  64.           !endif
  65.         </li>
  66.       !next type
  67.       !if score isitemof $gotlist
  68.         <li>
  69.           <input type="checkbox" name="selection" id="restore_score" value="score" />
  70.           <label for="restore_score">$name_activity</label>
  71.         </li>
  72.       !endif
  73.       !if manual isitemof $gotlist
  74.         <li>
  75.           <input type="checkbox" name="selection" id="restore_manual" value="manual" />
  76.           <label for="restore_manual">$new_manualcnt $name_manual.</label> <span class="small">($name_manual1&nbsp;:
  77.           $old_manualcnt)</span>.
  78.         </li>
  79.       !endif
  80.       !if cdt isitemof $gotlist
  81.          <li>
  82.            <input type="checkbox" name="selection" id="restore_cdt" value="cdt" />
  83.            <label for="restore_cdt">$name_cdt.</label>
  84.            !if $old_cdtcnt>0
  85.              <span class="small">($name_cdt1)</span>
  86.            !endif
  87.          </li>
  88.       !endif
  89.       !if livret isitemof $gotlist
  90.         <li>
  91.           <input type="checkbox" name="selection" id="restore_livret" value="livret" />
  92.           <label for="restore_livret">$name_livret.</label>
  93.           !if $old_livretcnt>0
  94.             <span class="small">($name_livret1)</span>
  95.           !endif
  96.         </li>
  97.       !endif
  98.       !if seq isitemof $gotlist
  99.         <li>
  100.           <input type="checkbox" name="selection" id="restore_seq" value="seq" />
  101.           <label for="restore_seq">$name_seq.</label>
  102.           $name_seq0
  103.           <span class="small">($name_seq1 $old_seqcnt)</span>.
  104.         </li>
  105.       !endif
  106.     </ul>
  107.   </fieldset>
  108.  
  109.   <fieldset class="property_fields">
  110.     <legend>$name_method</legend>
  111.     <ul>
  112.       <li>
  113.         <input type="radio" name="restore" id="method_replace" value="replace" checked="checked" />
  114.         <label for="method_replace">$name_replace</label>
  115.         <div class="formHelp">$name_replace1.</div>
  116.       </li>
  117.       <li>
  118.         <input type="radio" name="restore" id="method_merge" value="merge" />
  119.         <label for="method_merge">$name_merge</label>
  120.         <div class="formHelp">$name_merge1.</div>
  121.       </li>
  122.     </ul>
  123.   </fieldset>
  124.   !!## TODO desactiver les feuilles s'il n'y pas de participant et enlever la date d'expiration?
  125.  !!!if $(new_usercnt)=0
  126.   !!   <input type="checkbox" name="preparation" value="no" /> Mettre les feuilles en prĂ©paration
  127.   !!!endif
  128.   <div class="wimscenter">
  129.     <input type="submit" value="$name_selectrestore" />
  130.     !set wims_ref_class=wims_button wims_secondary_button
  131.     !href cmd=reply&job=new $wims_name_giveup
  132.   </div>
  133. !formend
  134.  
  135. <div class="wims_msg info">
  136.   !read lang/names.phtml.$moduclass_lang arch_end
  137. </div>
  138.