Guest User

Untitled

a guest
Oct 18th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.69 KB | None | 0 0
  1. .modal.medium.fade role='dialog' tabindex='-1' id='editAttributeModal-#{attribute.id}'
  2. .modal-dialog role='document'
  3. .modal-content.no-borders
  4.  
  5. .modal-header
  6. h2
  7. | Edit Attachment Attribute
  8.  
  9. = simple_form_for attribute, url: attributes_attachment_path(attribute), method: :patch do |f|
  10. .modal-body
  11. .row.form-group
  12. .col-md-12
  13. = f.input :name, placeholder: 'Enter new attribute name', input_html: { class: 'form-control'}
  14. .row.form-group
  15. .col-sm-4
  16. = f.input :required, as: :radio_buttons, item_label_class: 'icheck'
  17. .col-sm-4
  18. = f.input :visible_at_default_filter, as: :radio_buttons, item_label_class: 'icheck'
  19. .col-sm-4
  20. = f.input :featured, as: :radio_buttons, item_label_class: 'icheck'
  21. .row.form-group
  22. .col-md-12
  23. = f.input :field_type, as: :select, collection: FormAttribute.field_types.map {|k, _v| [k.humanize, k]}, include_blank: false, input_html: { class: 'form-control' }
  24. .row.form-group
  25. .col-md-12
  26. = f.input :tag_library_id, as: :select, collection: Tag.roots, label: 'Tag library', input_html: {class: 'form-control'}
  27. .row.form-group
  28. .col-md-12
  29. = f.input :unit, input_html: { class: 'form-control' }
  30. .row.form-group
  31. .col-md-12
  32. = f.input :date_format, input_html: { class: 'form-control' }
  33. .row.form-group
  34. .col-md-12
  35. = f.input :tags_adding_allowed, as: :radio_buttons, item_label_class: 'icheck'
  36. .modal-footer
  37. = f.submit 'update', class: 'btn btn-primary'
Add Comment
Please, Sign In to add comment