Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- .modal.medium.fade role='dialog' tabindex='-1' id='editAttributeModal-#{attribute.id}'
- .modal-dialog role='document'
- .modal-content.no-borders
- .modal-header
- h2
- | Edit Attachment Attribute
- = simple_form_for attribute, url: attributes_attachment_path(attribute), method: :patch do |f|
- .modal-body
- .row.form-group
- .col-md-12
- = f.input :name, placeholder: 'Enter new attribute name', input_html: { class: 'form-control'}
- .row.form-group
- .col-sm-4
- = f.input :required, as: :radio_buttons, item_label_class: 'icheck'
- .col-sm-4
- = f.input :visible_at_default_filter, as: :radio_buttons, item_label_class: 'icheck'
- .col-sm-4
- = f.input :featured, as: :radio_buttons, item_label_class: 'icheck'
- .row.form-group
- .col-md-12
- = f.input :field_type, as: :select, collection: FormAttribute.field_types.map {|k, _v| [k.humanize, k]}, include_blank: false, input_html: { class: 'form-control' }
- .row.form-group
- .col-md-12
- = f.input :tag_library_id, as: :select, collection: Tag.roots, label: 'Tag library', input_html: {class: 'form-control'}
- .row.form-group
- .col-md-12
- = f.input :unit, input_html: { class: 'form-control' }
- .row.form-group
- .col-md-12
- = f.input :date_format, input_html: { class: 'form-control' }
- .row.form-group
- .col-md-12
- = f.input :tags_adding_allowed, as: :radio_buttons, item_label_class: 'icheck'
- .modal-footer
- = f.submit 'update', class: 'btn btn-primary'
Add Comment
Please, Sign In to add comment