debian-mirror-gitlab/app/views/projects/triggers/_form.html.haml

12 lines
529 B
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
= form_for [@project.namespace.becomes(Namespace), @project, @trigger], html: { class: 'gl-show-field-errors' } do |f|
= form_errors(@trigger)
- if @trigger.token
.form-group
2018-11-18 11:00:15 +05:30
%label.label-bold Token
2018-11-08 19:23:39 +05:30
%p.form-control-plaintext= @trigger.token
2017-08-17 22:00:37 +05:30
.form-group
2018-11-18 11:00:15 +05:30
= f.label :key, "Description", class: "label-bold"
2017-08-17 22:00:37 +05:30
= f.text_field :description, class: "form-control", required: true, title: 'Trigger description is required.', placeholder: "Trigger description"
2018-12-05 23:21:45 +05:30
= f.submit btn_text, class: "btn btn-success"