Rev 13048 | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
13021 | bpr | 1 | !! teacher account |
23 | reyssat | 2 | !form reply |
17180 | bpr | 3 | <input type="hidden" name="job" value="$job"> |
7447 | bpr | 4 | |
5125 | bpr | 5 | !if $auth_method notitemof $auth_method_list |
12619 | bpr | 6 | !if $login=$empty |
12805 | bpr | 7 | <div class="wimscenter">$name_addteacher</div> |
12619 | bpr | 8 | !else |
9 | <div class="wimscenter">$wims_name_modteacher <span class="tt wims_login">$login</span></div> |
||
10 | !endif |
||
11 | <fieldset class="property_fields halfwidth blockcenter"> |
||
7909 | bpr | 12 | <legend>$wims_name_properties</legend> |
7447 | bpr | 13 | <div class="field box"> |
12619 | bpr | 14 | !if $login=$empty |
15 | !set tmp_require= |
||
16 | !!required="required" |
||
17 | <label for="login">$wims_name_Login</label> |
||
17180 | bpr | 18 | <input size="30" name="login" value="" id="login" $tmp_require> |
12619 | bpr | 19 | !else |
11236 | bpr | 20 | !set tmp_require=$empty |
10979 | bpr | 21 | <strong>$wims_name_Login</strong> |
7447 | bpr | 22 | <span class="tt wims_login">$login</span> |
12619 | bpr | 23 | !endif |
7447 | bpr | 24 | </div> |
25 | <div class="field box"> |
||
26 | <label for="pass">$wims_name_Password</label> |
||
17180 | bpr | 27 | <input type="password" size="30" name="pass" value="" id="pass" $tmp_require> |
7447 | bpr | 28 | </div> |
29 | <div class="field box"> |
||
30 | <label for="pass2">$wims_name_repeat_pass</label> |
||
17180 | bpr | 31 | <input type="password" size="30" name="pass2" value="" id="pass2" $tmp_require> |
7447 | bpr | 32 | </div> |
33 | <div class="field box"> |
||
34 | <label for="firstname">$wims_name_firstname</label> |
||
17180 | bpr | 35 | <input size="30" name="firstname" value="$firstname" id="firstname" $tmp_require> |
7447 | bpr | 36 | </div> |
37 | <div class="field box"> |
||
38 | <label for="lastname">$wims_name_lastname</label> |
||
17180 | bpr | 39 | <input size="30" name="lastname" value="$lastname" id="lastname" $tmp_require> |
7447 | bpr | 40 | </div> |
41 | <div class="field box"> |
||
42 | <label for="email"> $wims_name_email</label> |
||
17180 | bpr | 43 | <input size="30" name="email" value="$email" id="email"> |
7447 | bpr | 44 | </div> |
13021 | bpr | 45 | !else ### auth_method isitemof $auth_method_list |
5125 | bpr | 46 | !if $login=$empty |
12619 | bpr | 47 | !set tmp_require= |
48 | !!required="required" |
||
49 | <div class="wimscenter">$name_addteacher</div> |
||
5125 | bpr | 50 | !else |
12619 | bpr | 51 | !set tmp_require= |
5136 | bpr | 52 | !set user_external_auth=!getdef user_external_auth in wimshome/log/classes/$wims_class/.users/$login |
7447 | bpr | 53 | <div class="wimscenter">$wims_name_modteacher</div> |
5125 | bpr | 54 | !endif |
7447 | bpr | 55 | <fieldset class="property_fields halfwidth blockcenter"> |
5138 | bpr | 56 | !if $login!=$empty |
7447 | bpr | 57 | <div class="field box"> |
58 | <label>$wims_name_Login</label> |
||
7474 | bpr | 59 | <span class="tt wims_login">$login</span> |
7447 | bpr | 60 | <div class="formHelp">$name_internal</div> |
12619 | bpr | 61 | </div> |
5125 | bpr | 62 | !endif |
7447 | bpr | 63 | <div class="field box"> |
64 | <label for="user_auth">$wims_name_Login</label> |
||
17180 | bpr | 65 | <input size="30" name="user_auth" value="$user_external_auth" id="user_auth" $tmp_require> |
7447 | bpr | 66 | <div class="formHelp">$name_external, |
67 | <span class="wims_warning wims_small_remark">$name_login_external |
||
12805 | bpr | 68 | !if $idp_method isitemof $idp_method_list |
69 | ($name_idp_external) |
||
70 | !endif |
||
7447 | bpr | 71 | </span> |
72 | </div> |
||
73 | </div> |
||
13021 | bpr | 74 | !!replace ldap by $idp_method2?? |
75 | !if $idp_method notitemof ldap |
||
76 | <div class="field box"> |
||
77 | <label for="firstname">$wims_name_firstname</label> |
||
17180 | bpr | 78 | <input size="30" name="firstname" value="$firstname" id="firstname" $tmp_require> |
13021 | bpr | 79 | <label for="lastname">$wims_name_lastname</label> |
17180 | bpr | 80 | <input size="30" name="lastname" value="$lastname" id="lastname" $tmp_require> |
13021 | bpr | 81 | </div> |
82 | <div class="field box"> |
||
83 | <label for="email"> $wims_name_email</label> |
||
17180 | bpr | 84 | <input size="30" name="email" value="$email" id="email"> |
13021 | bpr | 85 | </div> |
86 | !endif |
||
23 | reyssat | 87 | !endif |
7447 | bpr | 88 | !if $user_participate!=$empty |
89 | <div class="field box"> |
||
90 | <label>$name_inscript</label> |
||
91 | <span class="tt">$user_participate</span> |
||
92 | </div> |
||
12619 | bpr | 93 | !endif |
94 | !set user_supervisable=!getdef user_supervisable in wimshome/log/classes/$wims_class/.users/$login |
||
95 | !if $user_supervisable=yes |
||
96 | !set user_supervise=!getdef user_supervise in wimshome/log/classes/$wims_class/.users/$login |
||
97 | <div class="field box"> |
||
98 | <label for="up_supervise">$name_gestion</label> |
||
17180 | bpr | 99 | <input size="60" name="up_supervise" id="up_supervise" value="$user_supervise"> |
12619 | bpr | 100 | <div class="formHelp"><span class="tt">$wims_class/1/101, ... </span></div> |
101 | </div> |
||
102 | !endif |
||
103 | <div class="wimscenter wimsform"> |
||
17180 | bpr | 104 | <input type="submit" name="confirm" value="$wims_name_tosave"> |
10349 | bpr | 105 | $ |
12805 | bpr | 106 | !set wims_ref_class=wims_button wims_secondary_button |
17180 | bpr | 107 | <input type="submit" name="cancel" value="$wims_name_giveup"> |
10980 | bpr | 108 | </div> |
109 | </fieldset> |
||
23 | reyssat | 110 | |
5926 | bpr | 111 | !formend |