Rev 16539 | Rev 17631 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 16539 | Rev 17180 | ||
---|---|---|---|
Line 56... | Line 56... | ||
56 | !defread wimshome/log/classes/$cl/.def |
56 | !defread wimshome/log/classes/$cl/.def |
57 | !distribute char $class_level into l1,l2 |
57 | !distribute char $class_level into l1,l2 |
58 | !set part=!recordcnt wimshome/log/classes/$cl/.userlist |
58 | !set part=!recordcnt wimshome/log/classes/$cl/.userlist |
59 | $table_tr<td> |
59 | $table_tr<td> |
60 | !if $ctype=0 |
60 | !if $ctype=0 |
61 | !href module=$module&cmd=reply&class=$cl $class_institution<br |
61 | !href module=$module&cmd=reply&class=$cl $class_institution<br>$class_description |
62 | !else |
62 | !else |
63 | !href module=$module&cmd=reply&class=$cl $class_description |
63 | !href module=$module&cmd=reply&class=$cl $class_description |
64 | !endif |
64 | !endif |
65 | </td><td> |
65 | </td><td> |
66 | !mailurl $class_email $class_supervisor |
66 | !mailurl $class_email $class_supervisor |
67 | </td> |
67 | </td> |
68 | !if $class_level=$empty |
68 | !if $class_level=$empty |
69 | !set pname=!defof class_description in wimshome/log/classes/$class_parent/.def |
69 | !set pname=!defof class_description in wimshome/log/classes/$class_parent/.def |
70 | <td>$pname</td> |
70 | <td>$pname</td> |
71 | !else |
71 | !else |
72 | <td>$(level$l1)<br |
72 | <td>$(level$l1)<br>$name_year $l2</td> |
73 | !endif |
73 | !endif |
74 | !if $ctype=0 |
74 | !if $ctype=0 |
75 | <td>$(lang_$class_lang)</td> |
75 | <td>$(lang_$class_lang)</td> |
76 | <td style="text-align:right"> |
76 | <td style="text-align:right"> |
77 | !if $class_limit-$part>$site_dispo |
77 | !if $class_limit-$part>$site_dispo |
Line 157... | Line 157... | ||
157 | $name_asaparticipant. |
157 | $name_asaparticipant. |
158 | !endif |
158 | !endif |
159 | </p> |
159 | </p> |
160 | 160 | ||
161 | !form reply |
161 | !form reply |
162 | <input type="hidden" name="step" value="1" |
162 | <input type="hidden" name="step" value="1"> |
163 | <fieldset class="property_fields halfwidth blockcenter"> |
163 | <fieldset class="property_fields halfwidth blockcenter"> |
164 | <legend> |
164 | <legend> |
165 | !if $utype=0 |
165 | !if $utype=0 |
166 | $name_title_participant |
166 | $name_title_participant |
167 | !else |
167 | !else |
168 | $name_type_supervisor |
168 | $name_type_supervisor |
169 | !endif |
169 | !endif |
170 | </legend> |
170 | </legend> |
171 | <div class="field box"> |
171 | <div class="field box"> |
172 | <label for="classpass">$wims_name_Password</label> |
172 | <label for="classpass">$wims_name_Password</label> |
173 | <input type="password" name="classpass" id="classpass" required="required" class="noicon" placeholder="$wims_name_Password" |
173 | <input type="password" name="classpass" id="classpass" required="required" class="noicon" placeholder="$wims_name_Password"> |
174 | </div> |
174 | </div> |
175 | <div class="wimscenter wimsform"> |
175 | <div class="wimscenter wimsform"> |
176 | <input type="submit" value="$wims_name_send" |
176 | <input type="submit" value="$wims_name_send"> |
177 | </div> |
177 | </div> |
178 | </fieldset> |
178 | </fieldset> |
179 | !formend |
179 | !formend |
180 | <span class="wims_warning">$wims_name_warning</span>. |
180 | <span class="wims_warning">$wims_name_warning</span>. |
181 | !if $cltype iswordof 2 4 |
181 | !if $cltype iswordof 2 4 |
Line 203... | Line 203... | ||
203 | !endif |
203 | !endif |
204 | 204 | ||
205 | !if $step=$empty or $step<2 |
205 | !if $step=$empty or $step<2 |
206 | !if $ssclass!=$empty and $wims_class!=$ssclass and $wims_user=supervisor |
206 | !if $ssclass!=$empty and $wims_class!=$ssclass and $wims_user=supervisor |
207 | !form reply |
207 | !form reply |
208 | <input type="hidden" name="step" value="1" |
208 | <input type="hidden" name="step" value="1"> |
209 | <label for="search">$name_research:</label> |
209 | <label for="search">$name_research:</label> |
210 | <input size="20" name="search" id="search" value="$search" |
210 | <input size="20" name="search" id="search" value="$search"> |
211 | <input type="submit" value="$wims_name_tosave" |
211 | <input type="submit" value="$wims_name_tosave"> |
212 | 212 | ||
213 | !formend |
213 | !formend |
214 | !default foundcnt=0 |
214 | !default foundcnt=0 |
215 | !if $foundcnt>0 |
215 | !if $foundcnt>0 |
216 | $table_header |
216 | $table_header |
Line 244... | Line 244... | ||
244 | 244 | ||
245 | !form reply |
245 | !form reply |
246 | !! check user supervisor?? |
246 | !! check user supervisor?? |
247 | 247 | ||
248 | !if $idp_method isitemof $idp_method_list and $auth_user$user_auth!=$empty and $wims_user!=supervisor |
248 | !if $idp_method isitemof $idp_method_list and $auth_user$user_auth!=$empty and $wims_user!=supervisor |
249 | <input type="hidden" name="step" value="3" |
249 | <input type="hidden" name="step" value="3"> |
250 | $name_inscription4: |
250 | $name_inscription4: |
251 | <p> |
251 | <p> |
252 | !formcheckbox agreecgu list yes prompt $name_cgu |
252 | !formcheckbox agreecgu list yes prompt $name_cgu |
253 | [ |
253 | [ |
254 | !href target=wims_internal module=adm/light&phtml=cgu.phtml $name_seecgu |
254 | !href target=wims_internal module=adm/light&phtml=cgu.phtml $name_seecgu |
255 | ] |
255 | ] |
256 | </p> |
256 | </p> |
257 | <div class="wimscenter wimsform"><input type="submit" value="$wims_name_tosave" |
257 | <div class="wimscenter wimsform"><input type="submit" value="$wims_name_tosave"></div> |
258 | !goto end1 |
258 | !goto end1 |
259 | !endif |
259 | !endif |
260 | !!FIXME $auth_user=$empty |
260 | !!FIXME $auth_user=$empty |
261 | !if $wims_user=supervisor and $auth_user=$empty |
261 | !if $wims_user=supervisor and $auth_user=$empty |
262 | 262 | ||
263 | !! teacher registering a student with idp ldap |
263 | !! teacher registering a student with idp ldap |
264 | !if $idp_method isitemof ldap |
264 | !if $idp_method isitemof ldap |
265 | <span class="wims_warning">$name_login_external ($name_idp_external)</span>: |
265 | <span class="wims_warning">$name_login_external ($name_idp_external)</span>: |
266 | 266 | ||
267 | !!!FIXME check the value of step |
267 | !!!FIXME check the value of step |
268 | <input type="hidden" name="step" value="3" |
268 | <input type="hidden" name="step" value="3"> |
269 | <fieldset class="property_fields halfwidth blockcenter"> |
269 | <fieldset class="property_fields halfwidth blockcenter"> |
270 | <legend>$name_title_participant</legend> |
270 | <legend>$name_title_participant</legend> |
271 | <div class="field box"> |
271 | <div class="field box"> |
272 | <label for="user_auth">$wims_name_Login ($name_external)</label> |
272 | <label for="user_auth">$wims_name_Login ($name_external)</label> |
273 | <input size="16" name="user_auth" id="user_auth" value="$user_auth" |
273 | <input size="16" name="user_auth" id="user_auth" value="$user_auth"> |
274 | </div> |
274 | </div> |
275 | !set ct=!defof class_type in wimshome/log/classes/$class/.def |
275 | !set ct=!defof class_type in wimshome/log/classes/$class/.def |
276 | !if $wims_user=supervisor and $class=$wims_class and $ct iswordof 2 4 |
276 | !if $wims_user=supervisor and $class=$wims_class and $ct iswordof 2 4 |
277 | <div class="field box"> |
277 | <div class="field box"> |
278 | <label for="utype">$name_accounttype</label> |
278 | <label for="utype">$name_accounttype</label> |
Line 280... | Line 280... | ||
280 | !set wims_ref_class=wims_formradio |
280 | !set wims_ref_class=wims_formradio |
281 | !formradio utype list 0,1 prompt $wims_name_namestudent,$wims_name_nameteacher |
281 | !formradio utype list 0,1 prompt $wims_name_namestudent,$wims_name_nameteacher |
282 | </div> |
282 | </div> |
283 | !endif |
283 | !endif |
284 | <div class="wimscenter wimsform"> |
284 | <div class="wimscenter wimsform"> |
285 | <input type="submit" value="$wims_name_tosave" |
285 | <input type="submit" value="$wims_name_tosave"> |
286 | </div> |
286 | </div> |
287 | </fieldset> |
287 | </fieldset> |
288 | 288 | ||
289 | !formend |
289 | !formend |
290 | !goto end1 |
290 | !goto end1 |
291 | !endif |
291 | !endif |
292 | 292 | ||
293 | !! teacher registering a student with external auth without idp ldap |
293 | !! teacher registering a student with external auth without idp ldap |
294 | !if $auth_method isitemof $auth_method_list |
294 | !if $auth_method isitemof $auth_method_list |
295 | <input type="hidden" name="step" value="3" |
295 | <input type="hidden" name="step" value="3"> |
296 | <fieldset class="property_fields halfwidth blockcenter"> |
296 | <fieldset class="property_fields halfwidth blockcenter"> |
297 | <legend>$name_title_participant</legend> |
297 | <legend>$name_title_participant</legend> |
298 | <div class="field box halfwidth"> |
298 | <div class="field box halfwidth"> |
299 | <label for="lastn">$wims_name_lastname</label> |
299 | <label for="lastn">$wims_name_lastname</label> |
300 | <input size="20" name="lastn" id="lastn" value="$lastn" |
300 | <input size="20" name="lastn" id="lastn" value="$lastn"> |
301 | </div> |
301 | </div> |
302 | <div class="field box halfwidth"> |
302 | <div class="field box halfwidth"> |
303 | <label for="firstn">$wims_name_firstname</label> |
303 | <label for="firstn">$wims_name_firstname</label> |
304 | <input size="20" name="firstn" id="firstn" value="$firstn" |
304 | <input size="20" name="firstn" id="firstn" value="$firstn"> |
305 | </div> |
305 | </div> |
306 | <div class="field box"> |
306 | <div class="field box"> |
307 | <label for="user_auth">$wims_name_Login </label> |
307 | <label for="user_auth">$wims_name_Login </label> |
308 | <input size="16" name="user_auth" id="user_auth" value="$user_auth" |
308 | <input size="16" name="user_auth" id="user_auth" value="$user_auth"> |
309 | <div class="formHelp">$name_external, |
309 | <div class="formHelp">$name_external, |
310 | <span class="wims_warning">$name_login_external_warning</span> |
310 | <span class="wims_warning">$name_login_external_warning</span> |
311 | </div> |
311 | </div> |
312 | </div> |
312 | </div> |
313 | <div class="field box"> |
313 | <div class="field box"> |
314 | <label for="email">$wims_name_email</label> |
314 | <label for="email">$wims_name_email</label> |
315 | <input type="email" size="60" name="email" id="email" value="$email" |
315 | <input type="email" size="60" name="email" id="email" value="$email"> |
316 | <div class="formHelp">$name_optional</div> |
316 | <div class="formHelp">$name_optional</div> |
317 | </div> |
317 | </div> |
318 | <div class="wimscenter wimsform"> |
318 | <div class="wimscenter wimsform"> |
319 | <input type="submit" value="$wims_name_tosave" |
319 | <input type="submit" value="$wims_name_tosave"> |
320 | </div> |
320 | </div> |
321 | </fieldset> |
321 | </fieldset> |
322 | !formend |
322 | !formend |
323 | !goto end1 |
323 | !goto end1 |
324 | !endif |
324 | !endif |
325 | !endif step empty or step<2 |
325 | !endif step empty or step<2 |
326 | 326 | ||
327 | !if $auth_user=$empty or $auth_method notitemof $auth_method_list |
327 | !if $auth_user=$empty or $auth_method notitemof $auth_method_list |
328 | !!read adm/language lang/names.phtml |
328 | !!read adm/language lang/names.phtml |
329 | <input type="hidden" name="step" value="2" |
329 | <input type="hidden" name="step" value="2"> |
330 | !else |
330 | !else |
331 | <input type="hidden" name="step" value="3" |
331 | <input type="hidden" name="step" value="3"> |
332 | !endif |
332 | !endif |
333 | <fieldset class="property_fields halfwidth blockcenter"> |
333 | <fieldset class="property_fields halfwidth blockcenter"> |
334 | <legend> |
334 | <legend> |
335 | !if $utype=0 |
335 | !if $utype=0 |
336 | $name_title_participant |
336 | $name_title_participant |
Line 338... | Line 338... | ||
338 | $name_title_supervisor |
338 | $name_title_supervisor |
339 | !endif |
339 | !endif |
340 | </legend> |
340 | </legend> |
341 | <div class="field box halfwidth"> |
341 | <div class="field box halfwidth"> |
342 | <label for="lastn">$wims_name_lastname</label> |
342 | <label for="lastn">$wims_name_lastname</label> |
343 | <input size="20" name="lastn" id="lastn" value="$lastn" required="required" |
343 | <input size="20" name="lastn" id="lastn" value="$lastn" required="required"> |
344 | </div> |
344 | </div> |
345 | <div class="field box halfwidth"> |
345 | <div class="field box halfwidth"> |
346 | <label for="firstn">$wims_name_firstname</label> |
346 | <label for="firstn">$wims_name_firstname</label> |
347 | <input size="20" name="firstn" id="firstn" value="$firstn" required="required" |
347 | <input size="20" name="firstn" id="firstn" value="$firstn" required="required"> |
348 | </div> |
348 | </div> |
349 | !if $wims_user=supervisor |
349 | !if $wims_user=supervisor |
350 | !reset login |
350 | !reset login |
351 | !endif |
351 | !endif |
352 | !if ($auth_user=$empty or $auth_method notitemof $auth_method_list) or $wims_user=supervisor |
352 | !if ($auth_user=$empty or $auth_method notitemof $auth_method_list) or $wims_user=supervisor |
353 | <div class="field box"> |
353 | <div class="field box"> |
354 | <label for="login">$wims_name_Login</label> |
354 | <label for="login">$wims_name_Login</label> |
355 | <input size="16" name="login" id="login" value="$login" required="required" pattern="$login_pattern" |
355 | <input size="16" name="login" id="login" value="$login" required="required" pattern="$login_pattern"> |
356 | <div class="formHelp"> |
356 | <div class="formHelp"> |
357 | !if $auth_method notitemof $auth_method_list or $wims_user!=supervisor |
357 | !if $auth_method notitemof $auth_method_list or $wims_user!=supervisor |
358 | $name_warning_login |
358 | $name_warning_login |
359 | !endif |
359 | !endif |
360 | $name_warning_login2 |
360 | $name_warning_login2 |
361 | </div> |
361 | </div> |
362 | !if $auth_method isitemof $auth_method_list and $wims_user=supervisor |
362 | !if $auth_method isitemof $auth_method_list and $wims_user=supervisor |
363 | !reset login_ext |
363 | !reset login_ext |
364 | <label for="login_ext">$wims_name_Login</label> |
364 | <label for="login_ext">$wims_name_Login</label> |
365 | <input size="16" name="login_ext" id="login_ext" value="$login_ext" |
365 | <input size="16" name="login_ext" id="login_ext" value="$login_ext"> |
366 | <div class="formHelp">$name_external |
366 | <div class="formHelp">$name_external |
367 | <span class="wims_warning">$name_login_external_warning</span> |
367 | <span class="wims_warning">$name_login_external_warning</span> |
368 | </div> |
368 | </div> |
369 | !endif |
369 | !endif |
370 | </div> |
370 | </div> |
371 | !if $auth_method notitemof $auth_method_list |
371 | !if $auth_method notitemof $auth_method_list |
372 | <div class="field box"> |
372 | <div class="field box"> |
373 | <label for="pass">$wims_name_Password</label> |
373 | <label for="pass">$wims_name_Password</label> |
374 | <input type="password" size="16" name="pass" id="pass" required="required" pattern="$password_pattern" |
374 | <input type="password" size="16" name="pass" id="pass" required="required" pattern="$password_pattern"> |
375 | <div class="formHelp">$name_passwd_warning</div> |
375 | <div class="formHelp">$name_passwd_warning</div> |
376 | </div> |
376 | </div> |
377 | !endif |
377 | !endif |
378 | !else |
378 | !else |
379 | <div class="field box"> |
379 | <div class="field box"> |
380 | <label for="login">$wims_name_Login</label> |
380 | <label for="login">$wims_name_Login</label> |
381 | <input size="16" name="login" id="login" value="$login" readonly="readonly" |
381 | <input size="16" name="login" id="login" value="$login" readonly="readonly"> |
382 | <div class="formHelp">$name_internal</div> |
382 | <div class="formHelp">$name_internal</div> |
383 | </div> |
383 | </div> |
384 | <div class="field box"> |
384 | <div class="field box"> |
385 | <label for="login_ext">$wims_name_Login</label> |
385 | <label for="login_ext">$wims_name_Login</label> |
386 | <input size="16" name="login_ext" id="login_ext" value="$login_ext" readonly="readonly" |
386 | <input size="16" name="login_ext" id="login_ext" value="$login_ext" readonly="readonly"> |
387 | <div class="formHelp">$name_external, <span class="wims_warning"></span></div> |
387 | <div class="formHelp">$name_external, <span class="wims_warning"></span></div> |
388 | </div> |
388 | </div> |
389 | !endif |
389 | !endif |
390 | <div class="field box"> |
390 | <div class="field box"> |
391 | <label for="email">$wims_name_email</label> |
391 | <label for="email">$wims_name_email</label> |
392 | <input type="email" size="60" name="email" id="email" value="$email" |
392 | <input type="email" size="60" name="email" id="email" value="$email"> |
393 | <div class="formHelp">$name_optional</div> |
393 | <div class="formHelp">$name_optional</div> |
394 | </div> |
394 | </div> |
395 | !if $wims_user=supervisor and $class=$wims_class and $cltype iswordof 2 4 |
395 | !if $wims_user=supervisor and $class=$wims_class and $cltype iswordof 2 4 |
396 | <div class="field box"> |
396 | <div class="field box"> |
397 | !! <label for="utype">$name_accounttype</label> |
397 | !! <label for="utype">$name_accounttype</label> |
Line 416... | Line 416... | ||
416 | [ |
416 | [ |
417 | !href target=wims_internal module=adm/light&phtml=cgu.phtml $name_seecgu |
417 | !href target=wims_internal module=adm/light&phtml=cgu.phtml $name_seecgu |
418 | ] |
418 | ] |
419 | </div> |
419 | </div> |
420 | !endif |
420 | !endif |
421 | <div class="wimscenter wimsform"><input type="submit" value="$wims_name_tosave" |
421 | <div class="wimscenter wimsform"><input type="submit" value="$wims_name_tosave"></div> |
422 | </fieldset> |
422 | </fieldset> |
423 | !formend |
423 | !formend |
424 | !goto end1 |
424 | !goto end1 |
425 | !endif |
425 | !endif |
426 | 426 | ||
Line 437... | Line 437... | ||
437 | !else |
437 | !else |
438 | <p>$wims_name_email: <span class="tt wims_address">$email</span> </p> |
438 | <p>$wims_name_email: <span class="tt wims_address">$email</span> </p> |
439 | !endif |
439 | !endif |
440 | 440 | ||
441 | !form reply |
441 | !form reply |
442 | <input type="hidden" name="step" value="3" |
442 | <input type="hidden" name="step" value="3"> |
443 | <fieldset class="property_fields halfwidth blockcenter"> |
443 | <fieldset class="property_fields halfwidth blockcenter"> |
444 | <legend> |
444 | <legend> |
445 | !if $utype=0 |
445 | !if $utype=0 |
446 | $name_title_participant |
446 | $name_title_participant |
447 | !else |
447 | !else |
448 | $name_title_supervisor |
448 | $name_title_supervisor |
449 | !endif |
449 | !endif |
450 | </legend> |
450 | </legend> |
451 | <div class="field box"> |
451 | <div class="field box"> |
452 | <label for="pass2">$name_passwd_exact</label> |
452 | <label for="pass2">$name_passwd_exact</label> |
453 | <input type="password" size="16" name="pass2" id="pass2" required="required" |
453 | <input type="password" size="16" name="pass2" id="pass2" required="required"> |
454 | </div> |
454 | </div> |
455 | <div class="wimscenter wimsform"> |
455 | <div class="wimscenter wimsform"> |
456 | <input type="submit" value="$wims_name_send" |
456 | <input type="submit" value="$wims_name_send"> |
457 | </div> |
457 | </div> |
458 | </fieldset> |
458 | </fieldset> |
459 | !formend |
459 | !formend |
460 | !goto end1 |
460 | !goto end1 |
461 | !endif |
461 | !endif |