= simple_form_for @helpdesk do |f| = f.error_notification = f.hidden_field :id .container.form .row .col-md-2 = f.label t('activerecord.attributes.helpdesk.image').titleize .col-md-2.offset-md-8 = f.file_field :image, label: false, required: true .row .col-md-2 = f.label t('activerecord.attributes.helpdesk.title').titleize .col-md-10 = f.input :title, label: false, required: true .row .col-md-2 = f.label t('activerecord.attributes.helpdesk.title_summary').titleize .col-md-10 = f.input :title_summary, label: false, required: true .row .col-md-2 = f.label t('activerecord.attributes.helpdesk.content').titleize .col-md-10 = f.cktext_area :content, label: false, required: true .row#select_section .col-md-2 = f.label t('activerecord.attributes.helpdesk.section').titleize .col-md-2.offset-md-8 = select_tag "helpdesk[section_ids][]", options_for_select(Section.all.map{ |sec| [sec.name, sec.id]}), multiple: 'multiple', include_blank: false, id: 'section-multiselect-helpdesk' .row = f.simple_fields_for :helpdesk_infos do |ff| .col-md-2 = ff.label t('activerecord.attributes.helpdesk_info.note').titleize .col-md-10 = ff.input :note, as: :text, label: false, required: 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: helpdesks_path :javascript $('#section-multiselect-helpdesk').multiselect({ maxHeight: 200, dropUp: false, includeSelectAllOption: true, disableIfEmpty: true });