debian-mirror-gitlab/app/views/admin/labels/_form.html.haml

32 lines
1.1 KiB
Text
Raw Normal View History

2018-11-08 19:23:39 +05:30
= form_for [:admin, @label], html: { class: '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
2018-11-08 19:23:39 +05:30
.form-group.row
2019-09-04 21:01:54 +05:30
.col-sm-2.col-form-label
= f.label :title
2015-09-25 12:07:36 +05:30
.col-sm-10
2021-03-11 19:13:27 +05:30
= f.text_field :title, class: "form-control gl-form-input", required: true
2018-11-08 19:23:39 +05:30
.form-group.row
2019-09-04 21:01:54 +05:30
.col-sm-2.col-form-label
= f.label :description
2016-04-02 18:10:28 +05:30
.col-sm-10
2021-03-11 19:13:27 +05:30
= f.text_field :description, class: "form-control gl-form-input js-quick-submit"
2018-11-08 19:23:39 +05:30
.form-group.row
2019-09-04 21:01:54 +05:30
.col-sm-2.col-form-label
= f.label :color, _("Background color")
2015-09-25 12:07:36 +05:30
.col-sm-10
.input-group
2018-11-08 19:23:39 +05:30
.input-group-prepend
.input-group-text.label-color-preview  
2021-03-11 19:13:27 +05:30
= f.text_field :color, class: "form-control gl-form-input"
2018-11-08 19:23:39 +05:30
.form-text.text-muted
= _('Choose any color.')
2015-09-25 12:07:36 +05:30
%br
2018-11-08 19:23:39 +05:30
= _("Or you can choose one of the suggested colors below")
2015-09-25 12:07:36 +05:30
2019-09-04 21:01:54 +05:30
= render_suggested_colors
2015-09-25 12:07:36 +05:30
.form-actions
2021-04-17 20:07:23 +05:30
= 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'