DraftVersion base model and very basic admin pages
This commit is contained in:
8
app/views/admin/legislation/processes/_subnav.html.erb
Normal file
8
app/views/admin/legislation/processes/_subnav.html.erb
Normal file
@@ -0,0 +1,8 @@
|
||||
<ul class="menu simple clear">
|
||||
<li <%= "class=active" if active == 'info' %>>
|
||||
<%= link_to t("admin.legislation.processes.subnav.info"), edit_admin_legislation_process_path(process) %>
|
||||
</li>
|
||||
<li <%= "class=active" if active == 'draft_versions' %>>
|
||||
<%= link_to t("admin.legislation.processes.subnav.draft_texts"), admin_legislation_process_draft_versions_path(process) %>
|
||||
</li>
|
||||
</ul>
|
||||
@@ -8,6 +8,8 @@
|
||||
|
||||
<h1><%= @process.title %></h1>
|
||||
|
||||
<%= render 'subnav', process: @process, active: 'info' %>
|
||||
|
||||
<%= render "form" %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -19,9 +19,6 @@
|
||||
</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' %>
|
||||
|
||||
Reference in New Issue
Block a user