Subversion Repositories wimsdev

Rev

Rev 7970 | Rev 10928 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
7025 bpr 1
<br class="spacer" />
7453 obado 2
 
23 reyssat 3
!if $class_defined!=yes
4062 bpr 4
 <span class="wims_warning">$wims_name_Error</span>. $name_warning
23 reyssat 5
 !exit
6
!endif
7453 obado 7
 
5072 bpr 8
!read adm/class/initclass $class,auth
5002 bpr 9
!if $class_mixed_external_auth>0 and $auth_user !=supervisor
7453 obado 10
  <div class="wims_external_auth">
11
    $(class_external_auth)
12
  </div>
13
  !if $class_mixed_external_auth=2
14
    !exit
15
  !endif
16
  $name_warning_external
17
  <hr />
2756 bpr 18
!endif
23 reyssat 19
 
4424 bpr 20
!if no_cgu notwordof $error
5100 bpr 21
 !reset user_auth
5002 bpr 22
 !set wims_form_method=post
5410 bpr 23
 !!FIXME for PHP
7457 bpr 24
 
5002 bpr 25
 !if $auth_method notitemof cas
7453 obado 26
   $name_enter
5002 bpr 27
   !form reply
5092 bpr 28
   !set auth_user=$auth_user_connection
7443 bpr 29
   <fieldset class="property_fields halfwidth blockcenter">
7457 bpr 30
      <legend>$wims_name_connexion</legend>
7439 bpr 31
 
7453 obado 32
      <div class="field box">
33
       <label for="login">$wims_name_Login</label>
34
       <input size="20" name="auth_user" value="$auth_user" id="login" required="required" placeholder="$wims_name_Login"/>
35
      </div>
36
      <div class="field box">
37
       <label for="password">$wims_name_Password</label>
38
       <input type="password" size="20" name="auth_password" id="password" required="required" placeholder="$wims_name_Password"/>
39
      </div>
7564 obado 40
      <div class="actions center">
7519 obado 41
        <input type="submit" value="$wims_name_Enter" />
42
        !if $auth_method notitemof ldap
7970 obado 43
            !set wims_ref_class=wims_button wims_secondary_button small
7519 obado 44
            !href cmd=reply&type=forgetpwd&class=$class $wims_name_n_forgetpwd
45
        !endif
46
      </div>
7439 bpr 47
   </fieldset>
48
 
7453 obado 49
   !formend
7439 bpr 50
 
7453 obado 51
   !!FIXME too much !if
5072 bpr 52
   !if $idp_method notwordof ldap
7457 bpr 53
     $name_new_participant:
5072 bpr 54
   !endif
7457 bpr 55
 
7453 obado 56
 !! else :  $auth_method is cas
5028 bpr 57
 !else
5072 bpr 58
   !if $idp_method notwordof ldap
7453 obado 59
     $name_new_participant_external:
5072 bpr 60
   !endif
5002 bpr 61
 !endif
7453 obado 62
 
5410 bpr 63
 !if $idp_method notwordof ldap
64
  !if $subclass=yes
10751 bpr 65
    !set tmp_=&subclass=$subclass
66
  !else
67
    !reset tmp_
5410 bpr 68
  !endif
69
  !set wims_ref_class=wims_button
70
  !href module=adm/class/reguser&class=$class$tmp_ $name_register
10751 bpr 71
  !reset tmp_
5044 bpr 72
 !endif
7453 obado 73
 
4424 bpr 74
!endif