Files
2026-11-03 17:05:02 +01:00

54 lines
1.5 KiB
ERB

<section class="page-section">
<div class="content">
<h1>Comptes</h1>
<% if @members.empty? %>
<p>Aucun adhérent enregistré.</p>
<% else %>
<table class="members-table">
<thead>
<tr>
<th>Identité</th>
<th>Type</th>
<th>Membre du Noyau</th>
<th>Adhésion</th>
<th>Email</th>
</tr>
</thead>
<tbody>
<% @members.each do |member| %>
<tr>
<td>
<%= member[:kind] == "individual" ?
"#{member[:first_name]} #{member[:last_name]}" :
member[:organization_name] %>
</td>
<td>
<%= member[:kind] == "individual" ?
"Personne physique" : "Personne morale" %>
</td>
<td>
<%= if member[:kind] == "individual"
member[:core_member] ? "Oui" : "Non"
else
"—"
end %>
</td>
<td>
<%= case member[:membership_status]
when "pending" then "En attente"
when "accepted" then "Acceptée"
when "rejected" then "Refusée"
else "Aucune demande"
end %>
</td>
<td><%= member[:email] %></td>
</tr>
<% end %>
</tbody>
</table>
<% end %>
</div>
</section>