Subversion Repositories wimsdev

Rev

Rev 13360 | Rev 16094 | 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
13330 obado 7
  <div class="wims_msg alert">
8
    <span class="wims_warning">$wims_name_warning</span>. $name_noselect
9
  </div>
23 reyssat 10
!endif
11
 
12
!if $serial!=$wims_class and $old_testcnt>0
12135 obado 13
  !set test=bad
23 reyssat 14
!endif
6077 czzmrn 15
 
23 reyssat 16
!if $test=bad
12135 obado 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>
23 reyssat 21
!endif
22
 
23
!form reply
12135 obado 24
  <input type="hidden" name="job" value="$job" />
25
  <input type="hidden" name="job2" value="restore" />
26
  $name_deposit
13330 obado 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>
16091 guerimand 56
          !if $(sharing_$type)=$empty and $type notitemof $forbiddenlistdep
13330 obado 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
16091 guerimand 63
            !if $type isitemof $forbiddenlistdep  
64
              !if $type notitemof $forbiddenlist
65
                $name_dependance
66
              !else
67
                $name_limit_exceed
68
              !endif
69
            !else
70
              <span class="small">($(name_$(type)1) : $(old_$(type)cnt))</span>.
71
            !endif
13330 obado 72
          !endif
73
        </li>
74
      !next type
75
      !if score isitemof $gotlist
76
        <li>
16091 guerimand 77
          !if score notitemof $forbiddenlistdep
78
            <input type="checkbox" name="selection" id="restore_score" value="score" />          
79
          !endif
13330 obado 80
          <label for="restore_score">$name_activity</label>
16091 guerimand 81
          !if score isitemof $forbiddenlistdep  
82
              !if score notitemof $forbiddenlist
83
                $name_dependance
84
              !else
85
                $name_limit_exceed
86
              !endif
87
          !endif
13330 obado 88
        </li>
89
      !endif
90
      !if manual isitemof $gotlist
91
        <li>
16091 guerimand 92
          !if manual notitemof $forbiddenlistdep
93
            <input type="checkbox" name="selection" id="restore_manual" value="manual" />
94
          !endif
95
          <label for="restore_manual">$new_manualcnt $name_manual.</label>
96
          !if manual isitemof $forbiddenlistdep  
97
              !if manual notitemof $forbiddenlist
98
                $name_dependance
99
              !else
100
                $name_limit_exceed
101
              !endif
102
          !else
103
            <span class="small">($name_manual1&nbsp;:
104
             $old_manualcnt)</span>.
105
          !endif
13330 obado 106
        </li>
107
      !endif
108
      !if cdt isitemof $gotlist
109
         <li>
110
           <input type="checkbox" name="selection" id="restore_cdt" value="cdt" />
111
           <label for="restore_cdt">$name_cdt.</label>
112
           !if $old_cdtcnt>0
113
             <span class="small">($name_cdt1)</span>
114
           !endif
115
         </li>
116
      !endif
117
      !if livret isitemof $gotlist
118
        <li>
16091 guerimand 119
          !if livret notitemof $forbiddenlistdep
120
            <input type="checkbox" name="selection" id="restore_livret" value="livret" />
121
          !endif
13330 obado 122
          <label for="restore_livret">$name_livret.</label>
16091 guerimand 123
          !if livret isitemof $forbiddenlistdep  
124
              !if livret notitemof $forbiddenlist
125
                $name_dependance
126
              !else
127
                $name_limit_exceed
128
              !endif
129
          !else
130
            !if $old_livretcnt>0
131
              <span class="small">($name_livret1)</span>
132
            !endif
13330 obado 133
          !endif
134
        </li>
135
      !endif
136
      !if seq isitemof $gotlist
137
        <li>
16091 guerimand 138
          !if seq notitemof $forbiddenlistdep
139
            <input type="checkbox" name="selection" id="restore_seq" value="seq" />
140
          !endif
13330 obado 141
          <label for="restore_seq">$name_seq.</label>
16091 guerimand 142
          !if seq isitemof $forbiddenlistdep  
143
              !if seq notitemof $forbiddenlist
144
                $name_dependance
145
              !else
146
                $name_limit_exceed
147
              !endif
148
          !else
149
            $name_seq0
150
            <span class="small">($name_seq1 $old_seqcnt)</span>.
151
          !endif
13330 obado 152
        </li>
153
      !endif
154
    </ul>
155
  </fieldset>
156
 
157
  <fieldset class="property_fields">
158
    <legend>$name_method</legend>
159
    <ul>
160
      <li>
13360 obado 161
        <input type="radio" name="restore" id="method_merge" value="merge" checked="checked" />
13330 obado 162
        <label for="method_merge">$name_merge</label>
163
        <div class="formHelp">$name_merge1.</div>
164
      </li>
13360 obado 165
      <li>
166
        <input type="radio" name="restore" id="method_replace" value="replace" />
167
        <label for="method_replace">$name_replace</label>
168
        <div class="formHelp"><span class="wims_warning">$name_replace1.</span></div>
169
      </li>
13330 obado 170
    </ul>
171
  </fieldset>
172
  !!## TODO desactiver les feuilles s'il n'y pas de participant et enlever la date d'expiration?
173
  !!!if $(new_usercnt)=0
174
  !!   <input type="checkbox" name="preparation" value="no" /> Mettre les feuilles en préparation
175
  !!!endif
176
  <div class="wimscenter">
177
    <input type="submit" value="$name_selectrestore" />
178
    !set wims_ref_class=wims_button wims_secondary_button
179
    !href cmd=reply&job=new $wims_name_giveup
180
  </div>
5926 bpr 181
!formend
182
 
10229 bpr 183
<div class="wims_msg info">
12135 obado 184
  !read lang/names.phtml.$moduclass_lang arch_end
7684 bpr 185
</div>