Sha256: e0e1d7592eb0bc10385fc9f560a3d34169a1c0ec9ac4eaf74a4f608cf3a3156c

Contents?: true

Size: 809 Bytes

Versions: 9

Compression:

Stored size: 809 Bytes

Contents

<%= flash_messages_for %>
<div>
  <%= render "links" %>
</div>
<div class="dataTables_wrapper form-inline">
  <table class="table table-striped table-bordered table-hover dataTables-example dataTable">
    <thead>
      <tr>
        <%@crud_helper.index_fields.each do |att|  %>
          <th><%= sort_link @q, att[:attribute], att[:label], {},data: {push: 'partial', target: "#form"}%></th>
        <%end%>
	     <%if @crud_helper.view_action || @crud_helper.edit_action || @crud_helper.destroy_action || @crud_helper.actions.present?%>
	        <td>Opções</td>
		  <% end %>
      </tr>
    </thead>
    <tbody id="records-body">
      <% @records.each do |record| %>
        <%= render 'record', record: record %>
      <% end %>
    </tbody>
  </table>
  <%= paginate @records, target: '#form'%>
</div>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
templus_models-1.2.1 app/views/crud/_records.html.erb
templus_models-1.2.0 app/views/crud/_records.html.erb
templus_models-1.0.6 app/views/crud/_records.html.erb
templus_models-1.0.5 app/views/crud/_records.html.erb
templus_models-1.0.4 app/views/crud/_records.html.erb
templus_models-1.0.3 app/views/crud/_records.html.erb
templus_models-1.0.2 app/views/crud/_records.html.erb
templus_models-1.0.1 app/views/crud/_records.html.erb
templus_models-1.0.0 app/views/crud/_records.html.erb