diff options
Diffstat (limited to 'app/views/admin/hooks/_form.html.haml')
-rw-r--r-- | app/views/admin/hooks/_form.html.haml | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/app/views/admin/hooks/_form.html.haml b/app/views/admin/hooks/_form.html.haml index bd63172a0ee..a309e874317 100644 --- a/app/views/admin/hooks/_form.html.haml +++ b/app/views/admin/hooks/_form.html.haml @@ -11,24 +11,18 @@ .form-group = form.label :url, _('Trigger'), class: 'label-bold' .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.') - %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' - .text-secondary= _('URL is triggered when repository is updated') - %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' - .text-secondary= _('URL is triggered for each branch updated to the repository') - %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' - .text-secondary= _('URL is triggered when a new tag is pushed to the repository') - %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' - .text-secondary= _('URL is triggered when a merge request is created, updated, or merged') + %fieldset.form-group + = form.gitlab_ui_checkbox_component :repository_update_events, _('Repository update events'), + help_text: _('URL is triggered when repository is updated') + %fieldset.form-group + = form.gitlab_ui_checkbox_component :push_events, _('Push events'), + help_text: _('URL is triggered for each branch updated to the repository') + %fieldset.form-group + = form.gitlab_ui_checkbox_component :tag_push_events, _('Tag push events'), + help_text: _('URL is triggered when a new tag is pushed to the repository') + %fieldset.form-group + = form.gitlab_ui_checkbox_component :merge_requests_events, _('Merge request events'), + help_text: _('URL is triggered when a merge request is created, updated, or merged') .form-group = form.label :enable_ssl_verification, _('SSL verification'), class: 'label-bold checkbox' - .form-check - = form.check_box :enable_ssl_verification, class: 'form-check-input' - = form.label :enable_ssl_verification, _('Enable SSL verification'), class: 'label-bold form-check-label' + = form.gitlab_ui_checkbox_component :enable_ssl_verification, _('Enable SSL verification') |