Rev 14834 | Rev 17180 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 14834 | Rev 16539 | ||
---|---|---|---|
Line 159... | Line 159... | ||
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> |
|
- | 165 | !if $utype=0 |
|
164 |
|
166 | $name_title_participant |
- | 167 | !else |
|
- | 168 | $name_type_supervisor |
|
- | 169 | !endif |
|
- | 170 | </legend> |
|
165 | <div class="field box"> |
171 | <div class="field box"> |
166 | <label for="classpass">$wims_name_Password</label> |
172 | <label for="classpass">$wims_name_Password</label> |
167 | <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" /> |
168 | </div> |
174 | </div> |
169 | <div class="wimscenter wimsform"> |
175 | <div class="wimscenter wimsform"> |
Line 259... | Line 265... | ||
259 | <span class="wims_warning">$name_login_external ($name_idp_external)</span>: |
265 | <span class="wims_warning">$name_login_external ($name_idp_external)</span>: |
260 | 266 | ||
261 | !!!FIXME check the value of step |
267 | !!!FIXME check the value of step |
262 | <input type="hidden" name="step" value="3" /> |
268 | <input type="hidden" name="step" value="3" /> |
263 | <fieldset class="property_fields halfwidth blockcenter"> |
269 | <fieldset class="property_fields halfwidth blockcenter"> |
264 | <legend> |
270 | <legend>$name_title_participant</legend> |
265 | <div class="field box"> |
271 | <div class="field box"> |
266 | <label for="user_auth">$wims_name_Login ($name_external)</label> |
272 | <label for="user_auth">$wims_name_Login ($name_external)</label> |
267 | <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" /> |
268 | </div> |
274 | </div> |
269 | !set ct=!defof class_type in wimshome/log/classes/$class/.def |
275 | !set ct=!defof class_type in wimshome/log/classes/$class/.def |
Line 286... | Line 292... | ||
286 | 292 | ||
287 | !! teacher registering a student with external auth without idp ldap |
293 | !! teacher registering a student with external auth without idp ldap |
288 | !if $auth_method isitemof $auth_method_list |
294 | !if $auth_method isitemof $auth_method_list |
289 | <input type="hidden" name="step" value="3" /> |
295 | <input type="hidden" name="step" value="3" /> |
290 | <fieldset class="property_fields halfwidth blockcenter"> |
296 | <fieldset class="property_fields halfwidth blockcenter"> |
291 | <legend> |
297 | <legend>$name_title_participant</legend> |
292 | <div class="field box halfwidth"> |
298 | <div class="field box halfwidth"> |
293 | <label for="lastn">$wims_name_lastname</label> |
299 | <label for="lastn">$wims_name_lastname</label> |
294 | <input size="20" name="lastn" id="lastn" value="$lastn" /> |
300 | <input size="20" name="lastn" id="lastn" value="$lastn" /> |
295 | </div> |
301 | </div> |
296 | <div class="field box halfwidth"> |
302 | <div class="field box halfwidth"> |
Line 323... | Line 329... | ||
323 | <input type="hidden" name="step" value="2" /> |
329 | <input type="hidden" name="step" value="2" /> |
324 | !else |
330 | !else |
325 | <input type="hidden" name="step" value="3" /> |
331 | <input type="hidden" name="step" value="3" /> |
326 | !endif |
332 | !endif |
327 | <fieldset class="property_fields halfwidth blockcenter"> |
333 | <fieldset class="property_fields halfwidth blockcenter"> |
- | 334 | <legend> |
|
- | 335 | !if $utype=0 |
|
- | 336 | $name_title_participant |
|
- | 337 | !else |
|
328 |
|
338 | $name_title_supervisor |
- | 339 | !endif |
|
- | 340 | </legend> |
|
329 | <div class="field box halfwidth"> |
341 | <div class="field box halfwidth"> |
330 | <label for="lastn">$wims_name_lastname</label> |
342 | <label for="lastn">$wims_name_lastname</label> |
331 | <input size="20" name="lastn" id="lastn" value="$lastn" required="required" /> |
343 | <input size="20" name="lastn" id="lastn" value="$lastn" required="required" /> |
332 | </div> |
344 | </div> |
333 | <div class="field box halfwidth"> |
345 | <div class="field box halfwidth"> |
Line 347... | Line 359... | ||
347 | !endif |
359 | !endif |
348 | $name_warning_login2 |
360 | $name_warning_login2 |
349 | </div> |
361 | </div> |
350 | !if $auth_method isitemof $auth_method_list and $wims_user=supervisor |
362 | !if $auth_method isitemof $auth_method_list and $wims_user=supervisor |
351 | !reset login_ext |
363 | !reset login_ext |
352 | <label for="login_ext">$wims_name_Login</label> |
364 | <label for="login_ext">$wims_name_Login</label> |
353 | <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" /> |
354 | <div class="formHelp">$name_external |
366 | <div class="formHelp">$name_external |
355 | <span class="wims_warning">$name_login_external_warning</span> |
367 | <span class="wims_warning">$name_login_external_warning</span> |
356 | </div> |
368 | </div> |
357 | !endif |
369 | !endif |
Line 379... | Line 391... | ||
379 | <label for="email">$wims_name_email</label> |
391 | <label for="email">$wims_name_email</label> |
380 | <input type="email" size="60" name="email" id="email" value="$email" /> |
392 | <input type="email" size="60" name="email" id="email" value="$email" /> |
381 | <div class="formHelp">$name_optional</div> |
393 | <div class="formHelp">$name_optional</div> |
382 | </div> |
394 | </div> |
383 | !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 |
384 | <div class="field box"> |
396 | <div class="field box"> |
385 |
|
397 | !! <label for="utype">$name_accounttype</label> |
- | 398 | <b>$name_accounttype</b> |
|
- | 399 | !if $utype=0 |
|
- | 400 | $wims_name_namestudent |
|
- | 401 | !else |
|
- | 402 | $wims_name_nameteacher |
|
- | 403 | !endif |
|
386 |
|
404 | !! !default utype=0 |
387 |
|
405 | !! !set wims_ref_class=wims_formradio |
388 |
|
406 | !! !formradio utype list 0,1 prompt $wims_name_namestudent,$wims_name_nameteacher |
389 | </div> |
407 | </div> |
390 | !endif |
408 | !endif |
391 | !if $regvars_cnt>0 |
409 | !if $regvars_cnt>0 |
392 | !read regvars.phtml |
410 | !read regvars.phtml |
393 | !endif |
411 | !endif |
394 | !if $wims_user!=supervisor |
412 | !if $wims_user!=supervisor |
395 | <div class="field box"> |
413 | <div class="field box"> |
Line 397... | Line 415... | ||
397 | !formcheckbox agreecgu list yes prompt $name_cgu |
415 | !formcheckbox agreecgu list yes prompt $name_cgu |
398 | [ |
416 | [ |
399 | !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 |
400 | ] |
418 | ] |
401 | </div> |
419 | </div> |
402 | !endif |
420 | !endif |
403 | <div class="wimscenter wimsform"><input type="submit" value="$wims_name_tosave" /></div> |
421 | <div class="wimscenter wimsform"><input type="submit" value="$wims_name_tosave" /></div> |
404 | </fieldset> |
422 | </fieldset> |
405 | !formend |
423 | !formend |
406 | !goto end1 |
424 | !goto end1 |
407 | !endif |
425 | !endif |
Line 421... | Line 439... | ||
421 | !endif |
439 | !endif |
422 | 440 | ||
423 | !form reply |
441 | !form reply |
424 | <input type="hidden" name="step" value="3" /> |
442 | <input type="hidden" name="step" value="3" /> |
425 | <fieldset class="property_fields halfwidth blockcenter"> |
443 | <fieldset class="property_fields halfwidth blockcenter"> |
- | 444 | <legend> |
|
- | 445 | !if $utype=0 |
|
- | 446 | $name_title_participant |
|
- | 447 | !else |
|
426 |
|
448 | $name_title_supervisor |
- | 449 | !endif |
|
- | 450 | </legend> |
|
427 | <div class="field box"> |
451 | <div class="field box"> |
428 | <label for="pass2">$name_passwd_exact</label> |
452 | <label for="pass2">$name_passwd_exact</label> |
429 | <input type="password" size="16" name="pass2" id="pass2" required="required" /> |
453 | <input type="password" size="16" name="pass2" id="pass2" required="required" /> |
430 | </div> |
454 | </div> |
431 | <div class="wimscenter wimsform"> |
455 | <div class="wimscenter wimsform"> |