Add member account
This commit is contained in:
1 parent
bf633b7060
commit
9ea0bee39d
8 files changed
+139
-23
No files matched your search
@@ -0,0 +1,18 @@
|
||||
<section class="page-section">
|
||||
<div class="content">
|
||||
<h1>Mon espace</h1>
|
||||
<p>Retrouvez vos informations personnelles et gérez votre adhésion.</p>
|
||||
|
||||
<% if core_member? %>
|
||||
<section aria-labelledby="core-heading">
|
||||
<h2 id="core-heading">Vie de l'association</h2>
|
||||
|
||||
<p>
|
||||
Accédez aux outils de gestion et de travail collectif du Noyau.
|
||||
</p>
|
||||
|
||||
<a href="/noyau">Espace du Noyau →</a>
|
||||
</section>
|
||||
<% end %>
|
||||
</div>
|
||||
</section>
|
||||
+15
-8
@@ -30,7 +30,7 @@
|
||||
<a class="skip-link" href="#main-content">Aller au contenu</a>
|
||||
|
||||
<header>
|
||||
<nav class="topbar" aria-label="Accès aux services">
|
||||
<nav class="topbar" aria-label="Navigation principale">
|
||||
<% unless request.path == "/" %>
|
||||
<a href="/">
|
||||
<img src="/images/favicon.svg" alt="Accueil NETig">
|
||||
@@ -42,17 +42,24 @@
|
||||
<a href="https://git.netig.net" target="_blank" rel="noopener noreferrer">NETgit ↗</a>
|
||||
|
||||
<% if rodauth.logged_in? %>
|
||||
<form method="post" action="<%= rodauth.logout_path %>">
|
||||
<%== rodauth.csrf_tag(rodauth.logout_path) %>
|
||||
<button class="topbar__account" type="submit">
|
||||
Déconnexion
|
||||
</button>
|
||||
</form>
|
||||
<% if request.path == "/account" %>
|
||||
<form method="post" action="<%= rodauth.logout_path %>">
|
||||
<%== rodauth.csrf_tag(rodauth.logout_path) %>
|
||||
<button class="topbar__account" type="submit">
|
||||
Déconnexion
|
||||
</button>
|
||||
</form>
|
||||
<% else %>
|
||||
<a class="topbar__account" href="/account">
|
||||
Mon espace →
|
||||
</a>
|
||||
<% end %>
|
||||
<% elsif request.path != rodauth.login_path %>
|
||||
<a class="topbar__account" href="<%= rodauth.login_path %>">
|
||||
Connexion ➜
|
||||
Mon espace →
|
||||
</a>
|
||||
<% end %>
|
||||
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
<section class="page-section">
|
||||
<div class="content page-panel auth-panel">
|
||||
<h1>Vérifier votre email</h1>
|
||||
|
||||
<p>
|
||||
Pour confirmer votre email et activer
|
||||
votre compte, choisissez un mot de passe.
|
||||
</p>
|
||||
|
||||
<form
|
||||
action="<%= rodauth.verify_account_path %>"
|
||||
method="post"
|
||||
class="rodauth"
|
||||
role="form"
|
||||
id="verify-account-form"
|
||||
>
|
||||
<%== rodauth.verify_account_additional_form_tags %>
|
||||
<%== rodauth.csrf_tag %>
|
||||
|
||||
<%== rodauth.render("password-field") if rodauth.verify_account_set_password? %>
|
||||
|
||||
<% if rodauth.verify_account_set_password? && rodauth.require_password_confirmation? %>
|
||||
<%== rodauth.render("password-confirm-field") %>
|
||||
<% end %>
|
||||
|
||||
<%== rodauth.button(rodauth.verify_account_button) %>
|
||||
</form>
|
||||
|
||||
<nav class="auth-links" aria-label="Autres possibilités">
|
||||
<ul>
|
||||
<li>
|
||||
<a href="<%= rodauth.verify_account_resend_path %>">
|
||||
Renvoyer l'email de vérification
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</section>
|
||||
Reference in new issue
Block a user