Adds content to booths index and show views

This commit is contained in:
Alberto Garcia Cabeza
2016-09-20 12:32:23 +02:00
committed by kikito
parent 5b424d1793
commit 5e3fff6825
4 changed files with 29 additions and 9 deletions

View File

@@ -22,6 +22,7 @@
<thead>
<th><%= t("admin.booths.index.name") %></th>
<th><%= t("admin.booths.index.location") %></th>
<th><%= t("admin.booths.index.officers") %></th>
<th>&nbsp;</th>
</thead>
<tbody>
@@ -29,15 +30,17 @@
<tr>
<td>
<strong>
<%= link_to "Urna Moncloa (REFNUM)", "#" %>
<%= link_to "Urna Moncloa (REFNUM)", "booths/1" %>
</strong>
</td>
<td>
C/ Isaac Peral, 25. 28003, Madrid
</td>
<td>
N <%= t("admin.booths.index.officers") %>
</td>
<td class="text-right">
<%= link_to t("admin.actions.edit"), "#", class: "button hollow" %>
<%= link_to t("admin.booths.index.add_officer"), "#", class: "button success" %>
<%= link_to t("admin.actions.edit"), "booths/1/edit", class: "button hollow" %>
</td>
</tr>
<!-- end -->

View File

@@ -2,7 +2,7 @@
<div class="clear"></div>
<h2 class="inline-block">Urna Moncloa (REFNUM)</h2>
<%= link_to t("admin.actions.edit"), "#", class: "button hollow float-right" %>
<%= link_to t("admin.actions.edit"), "1/edit", class: "button hollow float-right" %>
<p><strong><%= t("admin.booths.show.location") %></strong>: C/ Isaac Peral, 25. 28003, Madrid</p>
@@ -14,7 +14,17 @@
</div>
<!-- end -->
<%= link_to t("admin.booths.show.add_officer"), "#", class: "button success" %>
<%= link_to t("admin.booths.show.assign_officer"), "#", class: "button success" %>
<div class="small-12 column">
<!-- List of officers, something like:
"/admin/spending_proposals/_assigned_valuators.html.erb" -->
<%# f.label :valuator_ids, t("admin.spending_proposals.edit.assigned_valuators") %>
<%# f.collection_check_boxes :valuator_ids, @valuators, :id, :email do |b| %>
<%# b.label(title: valuator_label(b.object)) { b.check_box + truncate(b.object.description_or_email, length: 60) } %>
<%# end %>
</div>
<table>
<%# @officers.each do |officer| %>