2017-08-17 22:00:37 +05:30
= form_errors(hook)
.form-group
2021-03-08 18:12:59 +05:30
= form.label :url, _('URL'), class: 'label-bold'
2021-03-11 19:13:27 +05:30
= form.text_field :url, class: 'form-control gl-form-input'
2022-05-07 20:08:51 +05:30
%p.form-text.text-muted= _('URL must be percent-encoded if necessary.')
2017-08-17 22:00:37 +05:30
.form-group
2021-03-11 19:13:27 +05:30
= form.label :token, _('Secret token'), class: 'label-bold'
= form.text_field :token, class: 'form-control gl-form-input'
%p.form-text.text-muted= _('Use this token to validate received payloads.')
2017-08-17 22:00:37 +05:30
.form-group
2021-03-08 18:12:59 +05:30
= form.label :url, _('Trigger'), class: 'label-bold'
2021-03-11 19:13:27 +05:30
.form-text.text-secondary.gl-mb-5= _('System hooks are triggered on sets of events like creating a project or adding an SSH key. You can also enable extra triggers, such as push events.')
2021-03-08 18:12:59 +05:30
%fieldset.form-group.form-check
= form.check_box :repository_update_events, class: 'form-check-input'
= form.label :repository_update_events, _('Repository update events'), class: 'label-bold form-check-label'
2021-03-11 19:13:27 +05:30
.text-secondary= _('URL is triggered when repository is updated')
2021-03-08 18:12:59 +05:30
%fieldset.form-group.form-check
= form.check_box :push_events, class: 'form-check-input'
= form.label :push_events, _('Push events'), class: 'label-bold form-check-label'
2021-03-11 19:13:27 +05:30
.text-secondary= _('URL is triggered for each branch updated to the repository')
2021-03-08 18:12:59 +05:30
%fieldset.form-group.form-check
= form.check_box :tag_push_events, class: 'form-check-input'
= form.label :tag_push_events, _('Tag push events'), class: 'label-bold form-check-label'
2021-03-11 19:13:27 +05:30
.text-secondary= _('URL is triggered when a new tag is pushed to the repository')
2021-03-08 18:12:59 +05:30
%fieldset.form-group.form-check
= form.check_box :merge_requests_events, class: 'form-check-input'
= form.label :merge_requests_events, _('Merge request events'), class: 'label-bold form-check-label'
2021-03-11 19:13:27 +05:30
.text-secondary= _('URL is triggered when a merge request is created, updated, or merged')
2017-08-17 22:00:37 +05:30
.form-group
2021-03-08 18:12:59 +05:30
= form.label :enable_ssl_verification, _('SSL verification'), class: 'label-bold checkbox'
2018-11-08 19:23:39 +05:30
.form-check
= form.check_box :enable_ssl_verification, class: 'form-check-input'
2021-03-08 18:12:59 +05:30
= form.label :enable_ssl_verification, _('Enable SSL verification'), class: 'label-bold form-check-label'