Replace created at date to start and end date on admin legislation processes

This commit is contained in:
decabeza
2019-02-18 18:59:03 +01:00
parent 0d834744fd
commit 32d4495a88
4 changed files with 30 additions and 10 deletions

View File

@@ -17,7 +17,8 @@
<tr>
<th><%= t("admin.legislation.processes.process.title") %></th>
<th><%= t("admin.legislation.processes.process.status") %></th>
<th><%= t("admin.legislation.processes.process.creation_date") %></th>
<th class="text-center"><%= t("admin.legislation.processes.process.start_date") %></th>
<th class="text-center"><%= t("admin.legislation.processes.process.end_date") %></th>
<th class="text-center"><%= t("admin.legislation.processes.process.comments") %></th>
<th><%= t("admin.actions.actions") %></th>
</tr>
@@ -26,11 +27,12 @@
<tbody>
<% @processes.each do |process| %>
<tr id="<%= dom_id(process) %>">
<td class="small-12 medium-6">
<td class="small-12 medium-6 large-4">
<%= link_to process.title, edit_admin_legislation_process_path(process) %>
</td>
<td><%= t("admin.legislation.processes.process.status_#{process.status}") %></td>
<td><%= I18n.l process.created_at.to_date %></td>
<td class="text-center"><%= I18n.l process.start_date %></td>
<td class="text-center"><%= I18n.l process.end_date %></td>
<td class="text-center"><%= process.total_comments %></td>
<td>
<%= link_to t("admin.legislation.processes.index.delete"), admin_legislation_process_path(process),