<% provide( :page_title, I18n.t('action.update', resource: @resource_instance.name) ) -%> <% breadcrumb_add( @model.collection_name, { controller: params[:controller], action: 'index' } ) %>
<%= content_tag(:i, nil, class: "fa fa-#{@model.icon}") %>
<%= I18n.t('action.update', resource: @resource_instance.name) %>
<%= adminpanel_form_for( @resource_instance, html: { class: 'form-horizontal', id: 'edit_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.update', resource: @resource_instance.name), id: "edit-#{@model.name.demodulize}-button" ) %> <% end %> <% end -%>
<%= render 'adminpanel/shared/modal', id: 'remote-form-modal' %>