lib/generators/admin_panel/scaffold/templates/views/erb/_form.html.erb.erb in admin-panel-0.1.0 vs lib/generators/admin_panel/scaffold/templates/views/erb/_form.html.erb.erb in admin-panel-0.1.1
- old
+ new
@@ -1,5 +1,12 @@
-<%%= simple_form_for(<%= "[:#{prefix}, @#{singular_table_name}]" %>) do |f| %>
+<%%= simple_form_for(<%= "[:#{prefix}, @#{singular_table_name}]" %>, html: { class: 'form-horizontal' },
+ wrapper: :horizontal_form,
+ wrapper_mappings: {
+ check_boxes: :horizontal_radio_and_checkboxes,
+ radio_buttons: :horizontal_radio_and_checkboxes,
+ file: :horizontal_file_input,
+ boolean: :horizontal_boolean
+ }) do |f| %>
<%%= f.error_notification %>
<div class="form-inputs">
<%- attributes.each do |attribute| -%>
<%%= f.<%= attribute.reference? ? :association : :input %> :<%= attribute.name %> %>
\ No newline at end of file