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

Version Path
adminpanel-3.6.1 app/views/adminpanel/templates/new.html.erb
adminpanel-3.6.0 app/views/adminpanel/templates/new.html.erb
adminpanel-3.5.1 app/views/adminpanel/templates/new.html.erb
adminpanel-3.5.0 app/views/adminpanel/templates/new.html.erb
adminpanel-3.4.7 app/views/adminpanel/templates/new.html.erb
adminpanel-3.4.6 app/views/adminpanel/templates/new.html.erb
adminpanel-3.4.5 app/views/adminpanel/templates/new.html.erb
adminpanel-3.4.4 app/views/adminpanel/templates/new.html.erb
adminpanel-3.4.3 app/views/adminpanel/templates/new.html.erb
adminpanel-3.4.2 app/views/adminpanel/templates/new.html.erb
adminpanel-3.4.1 app/views/adminpanel/templates/new.html.erb
adminpanel-3.4.0 app/views/adminpanel/templates/new.html.erb
adminpanel-3.3.4 app/views/adminpanel/templates/new.html.erb
adminpanel-3.3.3 app/views/adminpanel/templates/new.html.erb
adminpanel-3.3.0 app/views/adminpanel/templates/new.html.erb
adminpanel-3.2.1 app/views/adminpanel/templates/new.html.erb
adminpanel-3.2.0 app/views/adminpanel/templates/new.html.erb
adminpanel-3.1.0 app/views/adminpanel/templates/new.html.erb
adminpanel-3.0.0 app/views/adminpanel/templates/new.html.erb
adminpanel-2.6.1 app/views/adminpanel/templates/new.html.erb