Files
grecia/app/views/admin/poll/polls/index.html.erb
Alberto Garcia Cabeza 0ddf7a003c adds dates on polls index
2016-12-16 14:02:03 +01:00

22 lines
541 B
Plaintext

<h2 class="inline-block"><%= t("admin.polls.index.title") %></h2>
<%= link_to t("admin.polls.index.create"),
new_admin_poll_path,
class: "button success float-right" %>
<% if @polls.any? %>
<table>
<thead>
<th><%= t("admin.polls.index.name") %></th>
<th><%= t("admin.polls.index.dates") %></th>
<th>&nbsp;</th>
</thead>
<tbody>
<%= render @polls %>
</tbody>
</table>
<% else %>
<div class="callout primary">
<%= t("admin.polls.index.no_polls") %>
</div>
<% end %>