Add admin style
This commit is contained in:
1 parent
9358dd39a1
commit
f386499d2f
4 files changed
+86
-3
No files matched your search
@@ -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>
|
||||
Reference in new issue
Block a user