37 lines
1 KiB
Text
37 lines
1 KiB
Text
|
|
<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>
|