Sha256: e5a4705f2b7677dbcb072ff6d2fb22acd3f493edc8e960480eaebf6523bf26e9

Contents?: true

Size: 1009 Bytes

Versions: 7

Compression:

Stored size: 1009 Bytes

Contents

<%= render_crud do %>
	<div>
		<%= render "/crud/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>
						<% if att[:sort_field].present? %>
							<%= sort_link @q, att[:sort_field], att[:label], {},data: {push: 'partial', target: "#form"}%>
						<% else %>
							<%= sort_link @q, att[:attribute], att[:label], {},data: {push: 'partial', target: "#form"}%>
						<% end %>
					</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 '/crud/record', record: record %>
				<% end %>
			</tbody>
		</table>
		<%= paginate @records, target: '#form', theme: 'templus'%>
	</div>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
templus_models-1.3.4 app/views/crud/_records.html.erb
templus_models-1.3.3 app/views/crud/_records.html.erb
templus_models-1.3.2 app/views/crud/_records.html.erb
templus_models-1.3.1 app/views/crud/_records.html.erb
templus_models-1.3.0 app/views/crud/_records.html.erb
templus_models-1.2.8 app/views/crud/_records.html.erb
templus_models-1.2.7 app/views/crud/_records.html.erb