Sha256: 25f6e2e19d69d650b8da977f93b103e3041afc87fa3c174af020dc0155439bae

Contents?: true

Size: 871 Bytes

Versions: 3

Compression:

Stored size: 871 Bytes

Contents

<%= custom_form_for(resource, :url => {:action => :create, :model => params[:model], :model_name => params[:model_name], :currentcontroller => params[:currentcontroller]}, :remote => true, :html => {:class => "form-horizontal", :id => "new-category-form"}) do |f| -%>
  <div class="row-fluid">
    <div class="modal-body">
        <%= render 'shared/error_messages', :object => resource %>
        <%= render 'shared/form_fields', :f => f, :remote_request => true %>
        <%= f.hidden_field :model, :value => params[:model] %>
    </div>
  </div>
  <div class="modal-footer">
    <button id="modal-button" class="btn" data-dismiss="modal" aria-hidden="true"><%= I18n.t('action.close') %></button>
    <%= f.submit t("action.add") + " " + @model.display_name, :disable_with => t("action.submitting"), :id =>"new-#{@model.name.demodulize}-button" %>
  </div>
<% end -%>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
adminpanel-1.2.12 app/views/adminpanel/categories/_category_form.html.erb
adminpanel-1.2.11 app/views/adminpanel/categories/_category_form.html.erb
adminpanel-1.2.10 app/views/adminpanel/categories/_category_form.html.erb