Sha256: 739f3cdddbf193e9ac5ed4ff44d10a26b31d205c223b5e0f379ae795448ad97c

Contents?: true

Size: 1.09 KB

Versions: 16

Compression:

Stored size: 1.09 KB

Contents

<% provide(
  :page_title,
  I18n.t('action.update', resource: @resource_instance.name)
) -%>
<% breadcrumb_add(
  @model.collection_name,
  {
    controller: params[:controller],
    action: 'index'
  }
) %>

<div class = "row-fluid">
  <div class = "widget widget-padding span12">
    <div class = "widget-header">
      <%= content_tag(:i, nil, class: "fa fa-#{@model.icon}") %>
      <h5><%= I18n.t('action.update', resource: @resource_instance.name) %></h5>
    </div>
    <%= 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 -%>
  </div>
</div>
<%= render 'adminpanel/shared/modal', id: 'remote-form-modal' %>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
adminpanel-3.3.4 app/views/adminpanel/templates/edit.html.erb
adminpanel-3.3.3 app/views/adminpanel/templates/edit.html.erb
adminpanel-3.3.0 app/views/adminpanel/templates/edit.html.erb
adminpanel-3.2.1 app/views/adminpanel/templates/edit.html.erb
adminpanel-3.2.0 app/views/adminpanel/templates/edit.html.erb
adminpanel-3.1.0 app/views/adminpanel/templates/edit.html.erb
adminpanel-3.0.0 app/views/adminpanel/templates/edit.html.erb
adminpanel-2.6.1 app/views/adminpanel/templates/edit.html.erb
adminpanel-2.6.0 app/views/adminpanel/templates/edit.html.erb
adminpanel-2.5.5 app/views/adminpanel/templates/edit.html.erb
adminpanel-2.5.4 app/views/adminpanel/templates/edit.html.erb
adminpanel-2.5.3 app/views/adminpanel/templates/edit.html.erb
adminpanel-2.5.2 app/views/adminpanel/templates/edit.html.erb
adminpanel-2.5.1 app/views/adminpanel/templates/edit.html.erb
adminpanel-2.5.0 app/views/adminpanel/templates/edit.html.erb
adminpanel-2.4.3 app/views/adminpanel/templates/edit.html.erb