2015-09-25 12:07:36 +05:30
|
|
|
= form_for [:admin, @label], html: { class: 'form-horizontal label-form js-requires-input' } do |f|
|
2016-06-02 11:05:42 +05:30
|
|
|
= form_errors(@label)
|
2015-09-25 12:07:36 +05:30
|
|
|
|
|
|
|
.form-group
|
|
|
|
= f.label :title, class: 'control-label'
|
|
|
|
.col-sm-10
|
|
|
|
= f.text_field :title, class: "form-control", required: true
|
2016-04-02 18:10:28 +05:30
|
|
|
.form-group
|
|
|
|
= f.label :description, class: 'control-label'
|
|
|
|
.col-sm-10
|
|
|
|
= f.text_field :description, class: "form-control js-quick-submit"
|
2015-09-25 12:07:36 +05:30
|
|
|
.form-group
|
2015-12-23 02:04:40 +05:30
|
|
|
= f.label :color, "Background color", class: 'control-label'
|
2015-09-25 12:07:36 +05:30
|
|
|
.col-sm-10
|
|
|
|
.input-group
|
|
|
|
.input-group-addon.label-color-preview
|
2016-11-03 12:29:30 +05:30
|
|
|
= f.text_field :color, class: "form-control"
|
2015-09-25 12:07:36 +05:30
|
|
|
.help-block
|
|
|
|
Choose any color.
|
|
|
|
%br
|
|
|
|
Or you can choose one of suggested colors below
|
|
|
|
|
|
|
|
.suggest-colors
|
|
|
|
- suggested_colors.each do |color|
|
|
|
|
= link_to '#', style: "background-color: #{color}", data: { color: color } do
|
|
|
|
|
|
|
|
|
|
|
|
.form-actions
|
|
|
|
= f.submit 'Save', class: 'btn btn-save js-save-button'
|
|
|
|
= link_to "Cancel", admin_labels_path, class: 'btn btn-cancel'
|