Add admin style

This commit is contained in:
julien committed 2026-11-02 17:38:41 +01:00
1 parent 9358dd39a1
commit f386499d2f
4 files changed
+86 -3

No files matched your search

+7 -2
View File
@@ -1,6 +1,11 @@
<section class="page-section">
<div class="content">
<h1>Interface d'administration de NETig</h1>
<p>Test</p>
<h1>Administration de NETig</h1>
<p>
<a class="button" href="/admin/members">
Gérer les adhérents
</a>
</p>
</div>
</section>
+38
View File
@@ -0,0 +1,38 @@
<section class="page-section">
<div class="content">
<h1>Adhérents</h1>
<% if @members.empty? %>
<p>Aucun adhérent enregistré.</p>
<% else %>
<table class="admin-table">
<thead>
<tr>
<th>Identité</th>
<th>Type</th>
<th>Adresse électronique</th>
<th>Administration</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><%= member[:email] %></td>
<td><%= member[:admin] ? "Oui" : "Non" %></td>
</tr>
<% end %>
</tbody>
</table>
<% end %>
</div>
</section>