Sha256: c1b15addff100d7c5d41de2136bf89a27d058e68c2dcf670d23638a854a9e37d

Contents?: true

Size: 1.87 KB

Versions: 1

Compression:

Stored size: 1.87 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? && @crud_helper.layout[1].call() && @crud_helper.layout[0] == 'escopo_lateral' && @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

1 entries across 1 versions & 1 rubygems

Version Path
templus_models-1.6.0 app/views/crud/_records.html.erb