= simple_form_for [:admin, @section] do |f| = f.error_notification = f.hidden_field :id .container.form .row .col-md-2 = f.label t('activerecord.attributes.section.name').titleize .col-md-10 = f.input :name, label: false, required: true .row .col-md-2 = f.label t('activerecord.attributes.section.banner').titleize .col-md-2.offset-md-8 = f.file_field :banner, label: false .row .col-md-2 = f.label t('activerecord.attributes.section.description').titleize .col-md-10 = f.input :description, as: :text, label: false .row .col-md-2 = f.label t('activerecord.attributes.section.css_class').titleize .col-md-10 = f.input :css_class, label: false .row.submit_buttons.ml-auto .col-sm-8.offset-sm-4 = f.button :submit, value: t('simple_form.buttons.submit'), class: 'save_button' = f.button :cancel_button, cancel: admin_sections_path