summaryrefslogtreecommitdiff
path: root/app/views/projects/triggers/_form.html.haml
blob: 5f708b3a2eddbe1e74a98d177c6ec03a25c39579 (plain)
1
2
3
4
5
6
7
8
9
10
11
= form_for [@project.namespace.becomes(Namespace), @project, @trigger], html: { class: 'gl-show-field-errors' } do |f|
  = form_errors(@trigger)

  - if @trigger.token
    .form-group
      %label.label-light Token
      %p.form-control-static= @trigger.token
  .form-group
    = f.label :key, "Description", class: "label-light"
    = f.text_field :description, class: "form-control", required: true, title: 'Trigger description is required.', placeholder: "Trigger description"
  = f.submit btn_text, class: "btn btn-save"