summaryrefslogtreecommitdiff
path: root/app/views/admin/hooks/_form.html.haml
blob: a6324a97fd5f1a4c3b5d603805e26590d1732c14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
= form_errors(hook)

.form-group
  = form.label :url, 'URL', class: 'label-light'
  = form.text_field :url, class: 'form-control'
.form-group
  = form.label :token, 'Secret Token', class: 'label-light'
  = form.text_field :token, class: 'form-control'
  %p.help-block
    Use this token to validate received payloads
.form-group
  = form.label :url, 'Trigger', class: 'label-light'
  %ul.list-unstyled
    %li
      .help-block
        System hook will be triggered on set of events like creating project
        or adding ssh key. But you can also enable extra triggers like Push events.

    .prepend-top-default
      = form.check_box :repository_update_events, class: 'pull-left'
      .prepend-left-20
        = form.label :repository_update_events, class: 'list-label' do
          %strong Repository update events
        %p.light
          This URL will be triggered when repository is updated
    %li
      = form.check_box :push_events, class: 'pull-left'
      .prepend-left-20
        = form.label :push_events, class: 'list-label' do
          %strong Push events
        %p.light
          This URL will be triggered for each branch updated to the repository
    %li
      = form.check_box :tag_push_events, class: 'pull-left'
      .prepend-left-20
        = form.label :tag_push_events, class: 'list-label' do
          %strong Tag push events
        %p.light
          This URL will be triggered when a new tag is pushed to the repository
    %li
      = form.check_box :merge_requests_events, class: 'pull-left'
      .prepend-left-20
        = form.label :merge_requests_events, class: 'list-label' do
          %strong Merge request events
        %p.light
          This URL will be triggered when a merge request is created/updated/merged
.form-group
  = form.label :enable_ssl_verification, 'SSL verification', class: 'label-light checkbox'
  .checkbox
    = form.label :enable_ssl_verification do
      = form.check_box :enable_ssl_verification
      %strong Enable SSL verification