Sha256: 6dc48af1cde334d9371d1df85fb90578221069fab78592a197ec417e15346d68

Contents?: true

Size: 790 Bytes

Versions: 1

Compression:

Stored size: 790 Bytes

Contents

<%= custom_form_for(resource, :url => {:action => :create, :model => params[:model], :model_name => params[:model_name], :belongs_request => params[:belongs_request] }, :remote => true, :html => {:class => "form-horizontal", :id => "new_resource"}) 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 %>
    </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, data:{:disable_with => t("action.submitting")}, :id =>"new-resource-button" %>
  </div>
<% end -%>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
adminpanel-2.0.0 app/views/shared/_remote_form_fields.html.erb