start of iteration 2
This commit is contained in:
parent
9fb87a74ce
commit
729ed13521
75 changed files with 705 additions and 170 deletions
37
app/views/pages/index.html.erb
Normal file
37
app/views/pages/index.html.erb
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
<h1><%= t("scaffold.pagetitle_index", model: Page.model_name.human(count: 2)) %></h1>
|
||||
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th><%= Page.human_attribute_name(:id) %></th>
|
||||
|
||||
<th><%= Page.human_attribute_name(:position) %></th>
|
||||
|
||||
<th><%= Page.human_attribute_name(:path) %></th>
|
||||
|
||||
<th><%= Page.human_attribute_name(:url) %></th>
|
||||
|
||||
<th><%= Page.human_attribute_name(:report_id) %></th>
|
||||
|
||||
</thead>
|
||||
<tbody>
|
||||
<% @pages.each do |page| %>
|
||||
<tr>
|
||||
<td><%= link_to(page.id, url_for(page)) %></td>
|
||||
|
||||
<td><%= link_to(page.position, url_for(page)) %></td>
|
||||
|
||||
<td><%= link_to(page.path, url_for(page)) %></td>
|
||||
|
||||
<td><%= link_to(page.url, url_for(page)) %></td>
|
||||
|
||||
<td><%= link_to(page.report_id, url_for(page)) %></td>
|
||||
|
||||
</tr>
|
||||
<% end %>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<div class="action-row">
|
||||
<%= link_to t("scaffold.link_new", model: Page.model_name.human), new_report_page_path(@report) %>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue