62 lines
1.8 KiB
ERB
62 lines
1.8 KiB
ERB
<section class="page-section">
|
|
<div class="content page-panel">
|
|
<h1>Mon espace</h1>
|
|
|
|
<% 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">
|
|
<h2 id="core-heading">Vie de l'association</h2>
|
|
|
|
<p>
|
|
Accédez aux outils de gestion et de travail collectif du Noyau.
|
|
</p>
|
|
|
|
<a class="button button--secondary" href="/noyau">
|
|
Espace du Noyau →
|
|
</a>
|
|
</section>
|
|
<% end %>
|
|
</div>
|
|
</section>
|