Commit d8e33ae1 authored by Andrew Fontaine's avatar Andrew Fontaine

Merge branch 'jivanvl-port-admin-hooks-pajamas' into 'master'

Port admin hooks form to be pajamas compliant

See merge request gitlab-org/gitlab!84791
parents 0affa6c6 22df1b98
...@@ -11,24 +11,18 @@ ...@@ -11,24 +11,18 @@
.form-group .form-group
= form.label :url, _('Trigger'), class: 'label-bold' = 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.') .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 %fieldset.form-group
= form.check_box :repository_update_events, class: 'form-check-input' = form.gitlab_ui_checkbox_component :repository_update_events, _('Repository update events'),
= form.label :repository_update_events, _('Repository update events'), class: 'label-bold form-check-label' help_text: _('URL is triggered when repository is updated')
.text-secondary= _('URL is triggered when repository is updated') %fieldset.form-group
%fieldset.form-group.form-check = form.gitlab_ui_checkbox_component :push_events, _('Push events'),
= form.check_box :push_events, class: 'form-check-input' help_text: _('URL is triggered for each branch updated to the repository')
= form.label :push_events, _('Push events'), class: 'label-bold form-check-label' %fieldset.form-group
.text-secondary= _('URL is triggered for each branch updated to the repository') = form.gitlab_ui_checkbox_component :tag_push_events, _('Tag push events'),
%fieldset.form-group.form-check help_text: _('URL is triggered when a new tag is pushed to the repository')
= form.check_box :tag_push_events, class: 'form-check-input' %fieldset.form-group
= form.label :tag_push_events, _('Tag push events'), class: 'label-bold form-check-label' = form.gitlab_ui_checkbox_component :merge_requests_events, _('Merge request events'),
.text-secondary= _('URL is triggered when a new tag is pushed to the repository') help_text: _('URL is triggered when a merge request is created, updated, or merged')
%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')
.form-group .form-group
= form.label :enable_ssl_verification, _('SSL verification'), class: 'label-bold checkbox' = form.label :enable_ssl_verification, _('SSL verification'), class: 'label-bold checkbox'
.form-check = form.gitlab_ui_checkbox_component :enable_ssl_verification, _('Enable SSL verification')
= form.check_box :enable_ssl_verification, class: 'form-check-input'
= form.label :enable_ssl_verification, _('Enable SSL verification'), class: 'label-bold form-check-label'
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
= render 'shared/web_hooks/title_and_docs', hook: @hook = render 'shared/web_hooks/title_and_docs', hook: @hook
.col-lg-9.gl-mb-3 .col-lg-9.gl-mb-3
= form_for @hook, as: :hook, url: admin_hook_path do |f| = gitlab_ui_form_for @hook, as: :hook, url: admin_hook_path do |f|
= render partial: 'form', locals: { form: f, hook: @hook } = render partial: 'form', locals: { form: f, hook: @hook }
.form-actions .form-actions
%span>= f.submit _('Save changes'), class: 'btn gl-button btn-confirm gl-mr-3' %span>= f.submit _('Save changes'), class: 'btn gl-button btn-confirm gl-mr-3'
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
= render 'shared/web_hooks/title_and_docs', hook: @hook = render 'shared/web_hooks/title_and_docs', hook: @hook
.col-lg-8.gl-mb-3 .col-lg-8.gl-mb-3
= form_for @hook, as: :hook, url: admin_hooks_path do |f| = gitlab_ui_form_for @hook, as: :hook, url: admin_hooks_path do |f|
= render partial: 'form', locals: { form: f, hook: @hook } = render partial: 'form', locals: { form: f, hook: @hook }
= f.submit _('Add system hook'), class: 'btn gl-button btn-confirm' = f.submit _('Add system hook'), class: 'btn gl-button btn-confirm'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment