Sha256: bde09bf6ba224e1f8c74dd0639ff947ef1c873b8b301048c7ea5d4c256acf9b0

Contents?: true

Size: 1.59 KB

Versions: 13

Compression:

Stored size: 1.59 KB

Contents

<%unless params[:render] == 'modal'%>
<div class="wrapper wrapper-content animated fadeInRight">
	<div class="row">
		<div class="col-lg-12">
			<div class="ibox float-e-margins">
				<div class="ibox-title">
					<% if is_action_edit? && @model.present?%>
						<h5>
							Editar
							<small style="margin-left: 2px;"><%= @record.to_s %> - #<%= @record.id %></small>
						</h5>
					<% elsif is_action_create? && @model.present? %>
						<h5>Cadastrar</h5>
					<% elsif @record.present? && !@record.new_record? %>
						<h5>
							<%= @record.to_s %>
							<small style="margin-left: 2px;">#<%= @record.id %></small>
						</h5>
					<% elsif @crud_helper.present? %>
						<h5>
							<%= @crud_helper.subtitle(:index) %>
							<small><%= @crud_helper.description(:index) %></small>
						</h5>
					<% end %>
					<% if (@crud_helper.present? && (is_action_index? || is_action_query?))%>
						<div class="pull-right actions">
							<% @crud_helper.top_links.each do |link| %>
								<% if link[:can].present? %>
									<%=render_link(link) if self.instance_eval &link[:can]%>
								<% else %>
									<%=render_link(link)%>
								<% end %>
							<%end%>
							<% if @crud_helper.search_fields.present? %>
								<button id="button_search_<%=@model.name.underscore%>" class="btn btn-warning btn-rounded" data-toggle="modal" data-target="#modal_search">
									<i class="fa fa-search"></i>
								</button>
							<% end %>
						</div>
					<% end %>
				</div>
				<div class="ibox-content">
					<% block.call %>
				</div>
			</div>
		</div>
	</div>
</div>
<% else %>
	<% block.call %>
<% end %>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
templus_models-1.4.4 app/views/crud/_shared.html.erb
templus_models-1.4.3 app/views/crud/_shared.html.erb
templus_models-1.4.2 app/views/crud/_shared.html.erb
templus_models-1.4.1 app/views/crud/_shared.html.erb
templus_models-1.4.0 app/views/crud/_shared.html.erb
templus_models-1.3.9 app/views/crud/_shared.html.erb
templus_models-1.3.8 app/views/crud/_shared.html.erb
templus_models-1.3.7 app/views/crud/_shared.html.erb
templus_models-1.3.6 app/views/crud/_shared.html.erb
templus_models-1.3.4 app/views/crud/_shared.html.erb
templus_models-1.3.3 app/views/crud/_shared.html.erb
templus_models-1.3.2 app/views/crud/_shared.html.erb
templus_models-1.3.1 app/views/crud/_shared.html.erb