We had inconsistent indentation in many places. Now we're fixing them and adding a linter to our CI so we don't accidentally introduce inconsistent indentations again.
28 lines
850 B
Plaintext
28 lines
850 B
Plaintext
<%= back_link_to booth_assignments_admin_polls_path %>
|
|
|
|
<h2><%= t("admin.booth_assignments.manage.assignments_list", poll: @poll.name) %></h2>
|
|
|
|
<% if @booths.empty? %>
|
|
<div class="callout primary">
|
|
<%= t("admin.booths.index.no_booths") %>
|
|
</div>
|
|
<% else %>
|
|
<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="small-3"><%= t("admin.actions.actions") %></th>
|
|
</thead>
|
|
<tbody>
|
|
<% @booths.each do |booth| %>
|
|
<tr id="<%= dom_id(booth) %>" class="booth">
|
|
<%= render "booth_assignment", booth: booth, booth_assignment: booth.assignment_on_poll(@poll) %>
|
|
</tr>
|
|
<% end %>
|
|
</tbody>
|
|
</table>
|
|
|
|
<%= paginate @booths %>
|
|
<% end %>
|