Add booth location on booth assigment management list, plus poll links on list

This commit is contained in:
Bertocq
2017-10-19 22:41:54 +02:00
parent 17e6a66b80
commit 995289304e
6 changed files with 8 additions and 3 deletions

View File

@@ -1,6 +1,9 @@
<td>
<%= link_to booth.name, admin_booth_path(booth) %>
</td>
<td>
<%= booth.location || t("admin.booths.index.no_location") %>
</td>
<% if booth_assignment.present? %>
<td>
<span class="verified"><%= t("admin.booth_assignments.manage.status.assigned") %></span>

View File

@@ -1,6 +1,5 @@
<%= render "/admin/poll/polls/poll_header" %>
<div id="poll-resources">
<%= render "/admin/poll/polls/subnav" %>
<%= render "search_booths" %>
@@ -30,7 +29,7 @@
</strong>
</td>
<td>
<%= booth_assignment.booth.location %>
<%= booth_assignment.booth.location || t("admin.booths.index.no_location") %>
</td>
</tr>
<% end %>

View File

@@ -13,6 +13,7 @@
<table>
<thead>
<th><%= t("admin.booths.index.name") %></th>
<th><%= t("admin.booths.index.location") %></th>
<th><%= t("admin.booth_assignments.manage.status.assign_status") %></th>
<th class="text-right"><%= t("admin.actions.actions") %></th>
</thead>

View File

@@ -11,7 +11,7 @@
<% @polls.each do |poll| %>
<tr id="<%= dom_id(poll) %>" class="poll">
<td>
<strong><%= poll.name %></strong>
<strong><%= link_to poll.name, admin_poll_path(poll) %></strong>
</td>
<td>
<%= l poll.starts_at.to_date %> - <%= l poll.ends_at.to_date %>