Sha256: cb0d6570b4bb1e06023cdbac49de869c9db0518dd34edd070eb687f8adcb3b28
Contents?: true
Size: 1.07 KB
Versions: 32
Compression:
Stored size: 1.07 KB
Contents
<% provide( :page_title, I18n.t('action.create', resource: @model.display_name.capitalize) ) -%> <% breadcrumb_add( @model.collection_name, { controller: params[:controller], action: 'index' } ) %> <div class = "row-fluid"> <div class = "widget widget-padding span12"> <div class = "widget-header"> <i class = "fa fa-<%= @model.icon -%>"></i> <h5><%= I18n.t('action.create', resource: @model.display_name) %></h5> </div> <%= adminpanel_form_for( @resource_instance, html: { class: 'form-horizontal', id: 'new_resource' } ) do |f| -%> <%= f.body do %> <%= render 'adminpanel/shared/error_messages', object: @resource_instance %> <%= render 'adminpanel/shared/form_fields', f: f %> <% end %> <%= f.footer do %> <%= f.submit( I18n.t('action.add', resource: @model.display_name), id: "new-#{@model.name.demodulize}-button" ) %> <% end %> <% end -%> </div> </div> <%= render 'adminpanel/shared/modal', id: 'remote-form-modal' %>
Version data entries
32 entries across 32 versions & 1 rubygems