Sha256: 0c6f48ed319596de5086a517ef3b47c7cbcf41304b667b54a5fe059e7ec3aa49
Contents?: true
Size: 1021 Bytes
Versions: 1
Compression:
Stored size: 1021 Bytes
Contents
<% content_for :modal_footer do %> <button type="button" class="btn btn-default" data-dismiss="modal"><%= t('general.close') %></button> <button type="submit" class="btn btn-primary"><%= t('general.submit') %></button> <% end %> <%= simple_form_for( resource, url: resource.new_record? ? page_module_collections_path : page_module_collection_path(resource), wrapper: :horizontal_form, method: resource.new_record? ? :post : :put, remote: request.xhr?, html: { class: 'form-horizontal', autocomplete: 'off' } ) do |f| %> <% if request.xhr? %> <% content_for :modal_body do %> <%= devise_error_messages! %> <%= f.input :title %> <% end %> <%= render partial: 'shared/layouts/modal' %> <% else %> <%= devise_error_messages! %> <%= f.input :title %> <div class="form-group"> <div class="col-sm-offset-3 col-sm-9"> <button type="submit" class="btn btn-primary"><%= t('general.submit') %></button> </div> </div> <% end %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
home_page-0.0.6 | app/views/page_module_collections/_form.html.erb |