2018-04-12 20:11:22 +00:00
|
|
|
= form_for [:admin, @label], html: { class: 'label-form js-requires-input' } do |f|
|
2016-04-05 01:25:38 +00:00
|
|
|
= form_errors(@label)
|
2015-09-03 12:50:23 +00:00
|
|
|
|
2018-04-12 20:11:22 +00:00
|
|
|
.form-group.row
|
2019-02-03 14:29:34 +00:00
|
|
|
.col-sm-2.col-form-label
|
|
|
|
= f.label :title
|
2015-09-03 12:50:23 +00:00
|
|
|
.col-sm-10
|
2021-01-28 21:09:04 +00:00
|
|
|
= f.text_field :title, class: "form-control gl-form-input", required: true
|
2018-04-12 20:11:22 +00:00
|
|
|
.form-group.row
|
2019-02-03 14:29:34 +00:00
|
|
|
.col-sm-2.col-form-label
|
|
|
|
= f.label :description
|
2016-02-17 13:52:12 +00:00
|
|
|
.col-sm-10
|
2021-01-28 21:09:04 +00:00
|
|
|
= f.text_field :description, class: "form-control gl-form-input js-quick-submit"
|
2018-04-12 20:11:22 +00:00
|
|
|
.form-group.row
|
2019-02-03 14:29:34 +00:00
|
|
|
.col-sm-2.col-form-label
|
|
|
|
= f.label :color, _("Background color")
|
2015-09-03 12:50:23 +00:00
|
|
|
.col-sm-10
|
|
|
|
.input-group
|
2018-04-12 20:32:55 +00:00
|
|
|
.input-group-prepend
|
|
|
|
.input-group-text.label-color-preview
|
2021-01-28 21:09:04 +00:00
|
|
|
= f.text_field :color, class: "form-control gl-form-input"
|
2018-04-11 18:26:37 +00:00
|
|
|
.form-text.text-muted
|
2018-06-16 04:51:09 +00:00
|
|
|
= _('Choose any color.')
|
2015-09-03 12:50:23 +00:00
|
|
|
%br
|
2018-06-16 04:51:09 +00:00
|
|
|
= _("Or you can choose one of the suggested colors below")
|
2015-09-03 12:50:23 +00:00
|
|
|
|
2019-05-15 21:23:56 +00:00
|
|
|
= render_suggested_colors
|
2015-09-03 12:50:23 +00:00
|
|
|
|
|
|
|
.form-actions
|
2021-03-05 12:08:55 +00:00
|
|
|
= f.submit _('Save'), class: 'btn gl-button btn-confirm js-save-button'
|
|
|
|
= link_to _("Cancel"), admin_labels_path, class: 'btn gl-button btn-default btn-cancel'
|