Sha256: b7b5ffbb4b1cc936bb1a697e7ca71108f363b3461cda29a84eb0c0ea6ef29b2b

Contents?: true

Size: 1.08 KB

Versions: 4

Compression:

Stored size: 1.08 KB

Contents

<% provide(
  :page_title,
  I18n.t('action.update', name: @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', name: @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', name: @resource_instance.name),
          id: "edit-#{@model.name.demodulize}-button"
        ) %>
      <% end %>

    <% end -%>
  </div>
</div>
<%= render 'adminpanel/shared/modal', id: 'remote-form-modal' %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
adminpanel-2.4.2 app/views/adminpanel/shared/edit.html.erb
adminpanel-2.4.1 app/views/adminpanel/shared/edit.html.erb
adminpanel-2.4.0 app/views/adminpanel/shared/edit.html.erb
adminpanel-2.3.1 app/views/adminpanel/shared/edit.html.erb