1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82
| <div id='inscriptionp'>
<% remote_form_for :user, :url => { :action => 'add_user'},:update => "signup_form", :html => { :action => 'add_user', :method => 'post'} do |f| -%>
<div class='close'><img src='../images/false.png' title='Fermer la fenetre' alt='Fermer la fenetre' class='close_bouton' onclick='Windows.focusedWindow.hide();'/></div>
<h1>Inscription<span id='chargement' style='display:none;'><img src='http://telice.univ-lille1.fr/images/wait.gif' alt='chargement' title='chargement' /></span></h1><hr/>
<div id='inscription' >
<div id='inscription_table' >
<ul class="signup" style:"list-style-type:none;">
<li>Email : <%= f.text_field :email %><span id="email_informations"><%= render :partial=>'email_errors'%></span></li><br />
<%= observe_field "user_email",
:on => 'blur', # c'est à dire des que le champs perd le focus
:update => 'email_informations',
:with=>"'email=' + value",
:url=>{:action=>'check_mail', :only_path => false} %>
<li>Pseudo : <%= f.text_field :pseudo %><span id="pseudo_informations"><%= render :partial=>'pseudo_errors'%></span></li><br />
<%= observe_field "user_pseudo",
:on => 'blur', # c'est à dire des que le champs perd le focus
:update => 'pseudo_informations',
:with=>"'pseudo=' + value",
:url=>{:action=>'check_account', :only_path => false} %>
<li>Mot de passe : <%= f.password_field :password %><span id="password_informations"><%= render :partial=>'password_errors'%></span></li><br />
<%= observe_field "user_password",
:on => 'blur', # c'est à dire des que le champs perd le focus
:update => 'password_informations',
:with=>"'password=' + value",
:url=>{:action=>'check_password', :only_path => false} %>
<li>Confirmation : <%= f.password_field :password_confirmation %><span id="confirmation_informations"><%= render :partial=>'confirmation_errors'%></span></li><br />
<%= observe_field "user_password_confirmation",
:on => 'blur', # c'est à dire des que le champs perd le focus
:update => 'confirmation_informations',
:with=>"'confirmation=' + value" %>
</ul>
<%= submit_tag 'S\'inscrire' %>
</div>
</div>
<% end %>
</div> |
Partager