Subversion Repositories wimsdev

Rev

Rev 16539 | Blame | Compare with Previous | Last modification | View Log | RSS feed

  1.  
  2. !if $class_defined!=yes
  3.   <div class="wims_msg alert">
  4.     <span class="wims_warning">$wims_name_Error</span>. $name_warning
  5.   </div>
  6.   !exit
  7. !endif
  8.  
  9. !read adm/class/initclass $class,auth
  10. !if $class_mixed_external_auth>0 and $auth_user !=supervisor
  11.   <div class="wims_external_auth">
  12.     $(class_external_auth)
  13.   </div>
  14.   !if $class_mixed_external_auth=2
  15.     !exit
  16.   !endif
  17.   $name_warning_external
  18.   <hr>
  19. !endif
  20.  
  21. !if no_cgu notwordof $error
  22.   !reset user_auth
  23.   !set wims_form_method=post
  24.   !!FIXME for PHP
  25.   !if $auth_method notitemof cas and $wims_user=$empty
  26.     <h3>$(name_enterorregister[1])</h3>
  27.     <p>$name_enter</p>
  28.     !form reply
  29.     !set auth_user=$auth_user_connection
  30.     <fieldset class="property_fields halfwidth blockcenter">
  31.       <legend>$wims_name_connexion</legend>
  32.       <div class="field box fullwidth">
  33.         <label for="login">$wims_name_Login</label>
  34.         <input class="noicon" type="text" size="20" name="auth_user" value="$auth_user" id="login" required="required" placeholder="$wims_name_Login">
  35.       </div>
  36.       <div class="field box fullwidth">
  37.         <label for="password">$wims_name_Password</label>
  38.         <input class="noicon" type="password" size="20" name="auth_password" id="password" required="required" placeholder="$wims_name_Password">
  39.       </div>
  40.       <div class="actions center">
  41.         <input type="submit" value="$wims_name_Enter">
  42.         !if $auth_method notitemof ldap
  43.           !set wims_ref_class=wims_button wims_secondary_button small
  44.           !href cmd=reply&type=forgetpwd&class=$class $wims_name_n_forgetpwd
  45.         !endif
  46.       </div>
  47.     </fieldset>
  48.     !formend
  49.  
  50.     <h3>$(name_enterorregister[2])</h3>
  51.     !!FIXME too much !if
  52.     !!!if $idp_method notwordof ldap
  53.     !!  $name_new_participant
  54.     !!!endif
  55.   !else  $auth_method is cas or $wims_user!=empty
  56.     !if $idp_method notwordof ldap and $auth_method isitemof cas
  57.       $name_new_participant_external
  58.     !endif
  59.   !endif
  60.  
  61.   !if $idp_method notwordof ldap
  62.     !if $subclass=yes
  63.       !set tmp_=&subclass=$subclass
  64.     !else
  65.       !set tmp_=&utype=1
  66.     !endif
  67.     <fieldset class="property_fields halfwidth blockcenter">
  68.       <legend>$name_register</legend>
  69.       <div class="wimscenter">
  70.         !set wims_ref_class=wims_button
  71.         !href module=adm/class/reguser&class=$class$tmp_ $name_signup
  72.       </div>
  73.     </fieldset>
  74.     !reset tmp_
  75.   !endif
  76. !endif
  77.