Base Legislation::Process model and admin page
This commit is contained in:
33
app/views/admin/legislation/processes/index.html.erb
Normal file
33
app/views/admin/legislation/processes/index.html.erb
Normal file
@@ -0,0 +1,33 @@
|
||||
<%= 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.edit"), edit_admin_legislation_process_path(process),
|
||||
class: 'edit-banner button hollow' %>
|
||||
|
||||
<%= 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 %>
|
||||
Reference in New Issue
Block a user