Files
grecia/app/views/admin/legislation/processes/index.html.erb
2016-12-06 12:10:20 +01:00

31 lines
978 B
Plaintext

<%= link_to t("admin.legislation.processes.index.create"),
new_admin_legislation_process_path, class: "button success float-right" %>
<h2 class="inline-block"><%= t("admin.legislation.processes.index.title") %></h2>
<%= render 'shared/filter_subnav', i18n_namespace: "admin.legislation.processes.index" %>
<h3><%= page_entries_info @processes %></h3>
<table>
<tr>
<th><%= t("admin.legislation.processes.process.title") %></th>
<th></th>
</tr>
<% @processes.each do |process| %>
<tr id="<%= dom_id(process) %>">
<td class="small-12 medium-9">
<%= link_to process.title, edit_admin_legislation_process_path(process) %>
</td>
<td class="text-right">
<%= link_to t("admin.legislation.processes.index.delete"), admin_legislation_process_path(process),
method: :delete,
class: 'button hollow alert' %>
</td>
</tr>
<% end %>
</table>
<%= paginate @processes %>