2024-07-16 20:22:59 +02:00
|
|
|
<h1><%= t("scaffold.pagetitle_index", model: Element.model_name.human(count: 2)) %></h1>
|
|
|
|
|
|
|
|
|
|
<table class="table table-striped">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th><%= Element.human_attribute_name(:id) %></th>
|
|
|
|
|
|
2024-11-03 21:58:25 +01:00
|
|
|
<th><%= Element.human_attribute_name(:page_id) %></th>
|
2024-07-16 20:22:59 +02:00
|
|
|
|
|
|
|
|
<th><%= Element.human_attribute_name(:title) %></th>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<% @elements.each do |element| %>
|
|
|
|
|
<tr>
|
|
|
|
|
<td><%= link_to(element.id, url_for(element)) %></td>
|
|
|
|
|
|
2024-11-03 21:58:25 +01:00
|
|
|
<td><%= link_to(element.page_id, url_for(element)) %></td>
|
2024-07-16 20:22:59 +02:00
|
|
|
|
|
|
|
|
<td><%= link_to(element.title, url_for(element)) %></td>
|
|
|
|
|
|
|
|
|
|
</tr>
|
|
|
|
|
<% end %>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
|
|
|
|
|
<div class="action-row">
|
2024-11-03 21:58:25 +01:00
|
|
|
<%= link_to t("scaffold.link_new", model: Element.model_name.human), new_page_element_path(@page) %>
|
2024-07-16 20:22:59 +02:00
|
|
|
</div>
|