131 lines
3.5 KiB
ERB
131 lines
3.5 KiB
ERB
<section class="page-section">
|
|
<div class="content page-panel">
|
|
<h1>Créer un compte</h1>
|
|
|
|
<% if flash["error"] || flash["notice"] %>
|
|
<div class="flash-container">
|
|
<% if error = flash["error"] %>
|
|
<p class="flash flash--error" role="alert"><%= error %></p>
|
|
<% end %>
|
|
|
|
<% if notice = flash["notice"] %>
|
|
<p class="flash flash--notice" role="status"><%= notice %></p>
|
|
<% end %>
|
|
</div>
|
|
<% end %>
|
|
|
|
<p>
|
|
Créez un compte pour accéder à votre espace personnel
|
|
et, si vous le souhaitez, demander à rejoindre NETig.
|
|
</p>
|
|
|
|
<form
|
|
action="<%= rodauth.create_account_path %>"
|
|
method="post"
|
|
class="contact-form"
|
|
accept-charset="UTF-8"
|
|
>
|
|
<%== rodauth.csrf_tag %>
|
|
|
|
<p class="form-description">
|
|
Choisissez l'une des deux possibilités suivantes.
|
|
</p>
|
|
|
|
<fieldset>
|
|
<legend>Compte personnel</legend>
|
|
|
|
<p class="form-description">
|
|
Pour créer un compte en votre nom (personne physique).
|
|
</p>
|
|
|
|
<label for="first_name">Prénom</label>
|
|
<input
|
|
id="first_name"
|
|
name="first_name"
|
|
type="text"
|
|
maxlength="128"
|
|
autocomplete="given-name"
|
|
value="<%= request.params["first_name"] %>"
|
|
>
|
|
|
|
<% if error = rodauth.field_error("first_name") %>
|
|
<p class="flash flash--error"><%= error %></p>
|
|
<% end %>
|
|
|
|
<label for="last_name">Nom</label>
|
|
<input
|
|
id="last_name"
|
|
name="last_name"
|
|
type="text"
|
|
maxlength="128"
|
|
autocomplete="family-name"
|
|
value="<%= request.params["last_name"] %>"
|
|
>
|
|
|
|
<% if error = rodauth.field_error("last_name") %>
|
|
<p class="flash flash--error"><%= error %></p>
|
|
<% end %>
|
|
</fieldset>
|
|
|
|
<p class="form-choice-separator">ou</p>
|
|
|
|
<fieldset>
|
|
<legend>Compte au nom d'une organisation</legend>
|
|
|
|
<p class="form-description">
|
|
Pour créer un compte au nom d'une association,
|
|
d'une entreprise ou d'une autre personne morale.
|
|
</p>
|
|
|
|
<label for="organization_name">Dénomination</label>
|
|
<input
|
|
id="organization_name"
|
|
name="organization_name"
|
|
type="text"
|
|
maxlength="255"
|
|
autocomplete="organization"
|
|
value="<%= request.params["organization_name"] %>"
|
|
>
|
|
|
|
<% if error = rodauth.field_error("organization_name") %>
|
|
<p class="flash flash--error"><%= error %></p>
|
|
<% end %>
|
|
</fieldset>
|
|
|
|
<p>
|
|
<strong>Email</strong>
|
|
</p>
|
|
|
|
<input
|
|
id="<%= rodauth.login_param %>"
|
|
name="<%= rodauth.login_param %>"
|
|
type="<%= rodauth.login_input_type %>"
|
|
maxlength="254"
|
|
autocomplete="email"
|
|
value="<%= request.params[rodauth.login_param] %>"
|
|
required
|
|
>
|
|
|
|
<% if error = rodauth.field_error(rodauth.login_param) %>
|
|
<p class="flash flash--error"><%= error %></p>
|
|
<% end %>
|
|
|
|
<p class="form-description">
|
|
Nous vous enverrons un email pour vérifier votre adresse
|
|
électronique. Vous choisirez votre mot de passe à cette étape.
|
|
</p>
|
|
|
|
<input
|
|
type="submit"
|
|
value="<%= rodauth.create_account_button %>"
|
|
class="submit"
|
|
>
|
|
</form>
|
|
|
|
<p>
|
|
Vous avez déjà un compte ?
|
|
<a href="<%= rodauth.login_path %>">Se connecter</a>.
|
|
</p>
|
|
</div>
|
|
</section>
|