<div id=“error”></div> <table id=“<%= plural_name %>-table”>

<caption>Listing <%= plural_table_name %></caption>
<thead>
  <tr>
  <% default_attributes.each do |attribute| -%>
    <% unless attribute[:name].start_with?('_') %>
    <th><%=attribute[:name].capitalize%></th>
    <% end %>
  <% end -%>
<% attributes.each do |attribute| -%>
    <th><%= attribute.human_name %></th>
<% end -%>
    <th></th>
    <th></th>
  </tr>
</thead>
<tbody></tbody>

</table>

<br/> <%% if(is_admin()){ %>

<a href="#/<%=plural_model_name%>/new">New <%= human_name %></a>

<%% }else { %>

<a href="#/">Back</a>

<%% } %>