Display membership
This commit is contained in:
1 parent
4a6ca8b569
commit
491457c50e
4 files changed
+86
-6
No files matched your search
+46
-3
@@ -1,7 +1,48 @@
|
||||
<section class="page-section">
|
||||
<div class="content">
|
||||
<div class="content page-panel">
|
||||
<h1>Mon espace</h1>
|
||||
<p>Retrouvez vos informations personnelles et gérez votre adhésion.</p>
|
||||
|
||||
<% if flash["notice"] || flash["error"] %>
|
||||
<div class="flash-container">
|
||||
<% if notice = flash["notice"] %>
|
||||
<p class="flash flash--notice" role="status"><%= notice %></p>
|
||||
<% end %>
|
||||
|
||||
<% if error = flash["error"] %>
|
||||
<p class="flash flash--error" role="alert"><%= error %></p>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<p>
|
||||
Retrouvez vos informations personnelles et suivez votre adhésion.
|
||||
</p>
|
||||
|
||||
<section aria-labelledby="membership-heading">
|
||||
<h2 id="membership-heading">Mon adhésion</h2>
|
||||
|
||||
<% if @membership.nil? %>
|
||||
<p>Vous n'avez pas encore demandé à adhérer à NETig.</p>
|
||||
|
||||
<% elsif @membership[:status] == "pending" %>
|
||||
<p>Votre demande d'adhésion est en cours d'examen par le Noyau.</p>
|
||||
|
||||
<% elsif @membership[:status] == "accepted" %>
|
||||
<p>Votre adhésion à NETig est acceptée.</p>
|
||||
|
||||
<% elsif @membership[:status] == "rejected" %>
|
||||
<p>Votre demande d'adhésion a été refusée.</p>
|
||||
<% end %>
|
||||
|
||||
<% if @membership.nil? || @membership[:status] == "rejected" %>
|
||||
<form action="/account/membership" method="post">
|
||||
<%== rodauth.csrf_tag %>
|
||||
<button class="button" type="submit">
|
||||
Demander à adhérer
|
||||
</button>
|
||||
</form>
|
||||
<% end %>
|
||||
</section>
|
||||
|
||||
<% if core_member? %>
|
||||
<section aria-labelledby="core-heading">
|
||||
@@ -11,7 +52,9 @@
|
||||
Accédez aux outils de gestion et de travail collectif du Noyau.
|
||||
</p>
|
||||
|
||||
<a href="/noyau">Espace du Noyau →</a>
|
||||
<a class="button button--secondary" href="/noyau">
|
||||
Espace du Noyau →
|
||||
</a>
|
||||
</section>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user