a11yist/app/views/pages/index.html.erb

37 lines
1 KiB
Text
Raw Normal View History

2024-10-31 23:13:18 +01:00
<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>