<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>
      
        <th><%= Element.human_attribute_name(:page_id) %></th>
      
        <th><%= Element.human_attribute_name(:title) %></th>
  </thead>
  <tbody>
    <% @elements.each do |element| %>
      <tr>
        <td><%= link_to(element.id, url_for(element)) %></td>
        
          <td><%= link_to(element.page_id, url_for(element)) %></td>
        
          <td><%= link_to(element.title, url_for(element)) %></td>
        
      </tr>
    <% end %>
  </tbody>
</table>

<div class="action-row">
  <%= link_to t("scaffold.link_new", model: Element.model_name.human), new_page_element_path(@page) %>
</div>