Rev 12414 | Rev 13330 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
23 | reyssat | 1 | |
2 | !if $error!=$empty |
||
12135 | obado | 3 | !exit |
23 | reyssat | 4 | !endif |
5 | |||
6 | !if $no_selection!=$empty |
||
12135 | obado | 7 | <b>$wims_name_warning</b>. $name_noselect |
8 | <br /> |
||
23 | reyssat | 9 | !endif |
10 | |||
11 | !if $serial!=$wims_class and $old_testcnt>0 |
||
12135 | obado | 12 | !set test=bad |
23 | reyssat | 13 | !endif |
6077 | czzmrn | 14 | |
23 | reyssat | 15 | !if $test=bad |
12135 | obado | 16 | <div class="wims_msg alert"> |
17 | <span class="wims_warning">$wims_name_warning!</span> |
||
18 | !read lang/names.phtml.$moduclass_lang arch |
||
19 | </div> |
||
23 | reyssat | 20 | !endif |
21 | |||
22 | !form reply |
||
12135 | obado | 23 | <input type="hidden" name="job" value="$job" /> |
24 | <input type="hidden" name="job2" value="restore" /> |
||
25 | $name_deposit |
||
26 | <ul> |
||
27 | <li> |
||
28 | <input type="checkbox" name="selection" id="restore_all" value="all" /> |
||
29 | <label for="restore_all">$name_all</label> |
||
30 | </li> |
||
12413 | bpr | 31 | !if def isitemof $gotlist |
12135 | obado | 32 | <li> |
12413 | bpr | 33 | <input type="checkbox" name="selection" id="restore_def" value="def" /> |
34 | <label for="restore_def">$name_config. $name_danger.</label> |
||
12135 | obado | 35 | </li> |
12413 | bpr | 36 | !endif |
37 | !if sup isitemof $gotlist |
||
38 | <li> |
||
39 | !if $sharing_sup=$empty |
||
12414 | bpr | 40 | <input type="checkbox" name="selection" id="restore_sup" value="sup" /> |
12413 | bpr | 41 | !endif |
12414 | bpr | 42 | <label for="restore_sup">$name_teacher.</label> |
12413 | bpr | 43 | !if $sharing_sup!=$empty |
12414 | bpr | 44 | $name_no_restore |
12413 | bpr | 45 | !else |
46 | $name_danger. |
||
47 | !endif |
||
48 | </li> |
||
49 | !endif |
||
12840 | bpr | 50 | !let list=!listintersect user,doc,exo,sheet,exam,forum,motd,userphoto,tool and $gotlist |
12413 | bpr | 51 | !for type in $list |
52 | <li> |
||
53 | !if $(sharing_$type)=$empty |
||
12414 | bpr | 54 | <input type="checkbox" name="selection" id="restore_$type" value="$type" /> |
12413 | bpr | 55 | !endif |
56 | <label for="restore_$type">$(new_$(type)cnt) $(name_$type).</label> |
||
57 | !if $(sharing_$type)!=$empty |
||
12414 | bpr | 58 | $name_no_restore |
12413 | bpr | 59 | !else |
12414 | bpr | 60 | <span class="small">($(name_$(type)1) : $(old_$(type)cnt))</span>. |
12413 | bpr | 61 | !endif |
62 | </li> |
||
63 | !next type |
||
64 | !if score isitemof $gotlist |
||
65 | <li> |
||
66 | <input type="checkbox" name="selection" id="restore_score" value="score" /> |
||
67 | <label for="restore_score">$name_activity</label> |
||
68 | </li> |
||
69 | !endif |
||
70 | !if manual isitemof $gotlist |
||
71 | <li> |
||
72 | <input type="checkbox" name="selection" id="restore_manual" value="manual" /> |
||
73 | <label for="restore_manual">$new_manualcnt $name_manual.</label> <span class="small">($name_manual1 : |
||
74 | $old_manualcnt)</span>. |
||
75 | </li> |
||
76 | !endif |
||
77 | !if cdt isitemof $gotlist |
||
12414 | bpr | 78 | <li> |
79 | <input type="checkbox" name="selection" id="restore_cdt" value="cdt" /> |
||
80 | <label for="restore_cdt">$name_cdt.</label> |
||
81 | !if $old_cdtcnt>0 |
||
82 | <span class="small">($name_cdt1)</span> |
||
83 | !endif |
||
84 | </li> |
||
12413 | bpr | 85 | !endif |
86 | !if livret isitemof $gotlist |
||
87 | <li> |
||
88 | <input type="checkbox" name="selection" id="restore_livret" value="livret" /> |
||
89 | <label for="restore_livret">$name_livret.</label> |
||
90 | !if $old_livretcnt>0 |
||
91 | <span class="small">($name_livret1)</span> |
||
92 | !endif |
||
93 | </li> |
||
94 | !endif |
||
95 | !if seq isitemof $gotlist |
||
96 | <li> |
||
97 | <input type="checkbox" name="selection" id="restore_seq" value="seq" /> |
||
98 | <label for="restore_seq">$name_seq.</label> |
||
99 | $name_seq0 |
||
100 | <span class="small">($name_seq1 $old_seqcnt)</span>. |
||
101 | </li> |
||
102 | !endif |
||
103 | </ul> |
||
104 | $name_method : |
||
105 | <ul> |
||
106 | <li> |
||
107 | <input type="radio" name="restore" id="method_replace" value="replace" checked="checked" /> |
||
108 | <label for="method_replace">$name_replace</label> <i>($name_replace1)</i>. |
||
109 | </li> |
||
110 | <li> |
||
111 | <input type="radio" name="restore" id="method_merge" value="merge" /> |
||
112 | <label for="method_merge">$name_merge</label> <i>($name_merge1)</i>. |
||
113 | </li> |
||
114 | </ul> |
||
115 | !!## TODO desactiver les feuilles s'il n'y pas de participant et enlever la date d'expiration? |
||
116 | !!!if $(new_usercnt)=0 |
||
117 | !! <input type="checkbox" name="preparation" value="no" /> Mettre les feuilles en préparation |
||
118 | !!!endif |
||
119 | <input type="submit" value="$name_selectrestore" /> |
||
120 | !set wims_ref_class=wims_button wims_secondary_button |
||
121 | !href cmd=reply&job=new $wims_name_giveup |
||
5926 | bpr | 122 | !formend |
123 | |||
10229 | bpr | 124 | <div class="wims_msg info"> |
12135 | obado | 125 | !read lang/names.phtml.$moduclass_lang arch_end |
7684 | bpr | 126 | </div> |