Sha256: dc598c99880e87e138080f8e85504c745de33fc2e8e9f3cf0049afecbe7673d0

Contents?: true

Size: 1.88 KB

Versions: 7

Compression:

Stored size: 1.88 KB

Contents

<% if @crud_helper.layout[1].present? and @crud_helper.layout[1].call() and @crud_helper.layout[0] == "escopo_lateral" %>
	<% if @crud_helper.scopes.present? %>
		<div class="col-lg-3" style="padding-right:0;">
    	<div class="ibox float-e-margins" style="padding-top:40px">
      	<div class="ibox-content">
					<div class="file-manager">
						<%= render '/crud/scopes' %>
					</div>
				</div>
			</div>
		</div>
	<% end %>
<% end %>
<div class="col-lg-<%= @crud_helper.layout[1].present? and @crud_helper.layout[1].call() and @crud_helper.layout[0] == "escopo_lateral" and @crud_helper.scopes.present? ? 9 : 12 %>" style="padding-left:0;">
	<%= 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|  %>
						<% if !att[:visible_if].nil?%>
							<% if ((att[:visible_if].class == Proc && !att[:visible_if].call(att)) || (att[:visible_if].class != Proc && !att[:visible_if])) %>
								<% next %>
							<% end %>
						<% end %>
						<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 %>
</div>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
templus_models-1.5.15 app/views/crud/_records.html.erb
templus_models-1.5.14 app/views/crud/_records.html.erb
templus_models-1.5.13 app/views/crud/_records.html.erb
templus_models-1.5.12 app/views/crud/_records.html.erb
templus_models-1.5.11 app/views/crud/_records.html.erb
templus_models-1.5.10 app/views/crud/_records.html.erb
templus_models-1.5.9 app/views/crud/_records.html.erb