2020-01-01 13:55:28 +05:30
|
|
|
- add_to_breadcrumbs @hook.pluralized_name, admin_hooks_path
|
|
|
|
- page_title _('Edit System Hook')
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2022-01-26 12:08:38 +05:30
|
|
|
= render 'shared/web_hooks/hook_errors', hook: @hook
|
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
.row.gl-mt-3
|
2020-01-01 13:55:28 +05:30
|
|
|
.col-lg-3
|
|
|
|
= render 'shared/web_hooks/title_and_docs', hook: @hook
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
.col-lg-9.gl-mb-3
|
2020-01-01 13:55:28 +05:30
|
|
|
= form_for @hook, as: :hook, url: admin_hook_path do |f|
|
|
|
|
= render partial: 'form', locals: { form: f, hook: @hook }
|
|
|
|
.form-actions
|
2021-04-17 20:07:23 +05:30
|
|
|
%span>= f.submit _('Save changes'), class: 'btn gl-button btn-confirm gl-mr-3'
|
2020-01-01 13:55:28 +05:30
|
|
|
= render 'shared/web_hooks/test_button', hook: @hook
|
2022-04-04 11:22:00 +05:30
|
|
|
= link_to _('Delete'), admin_hook_path(@hook), method: :delete, class: 'btn gl-button btn-danger float-right', aria: { label: s_('Webhooks|Delete webhook') }, data: { confirm: s_('Webhooks|Are you sure you want to delete this webhook?'), confirm_btn_variant: 'danger' }
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2020-01-01 13:55:28 +05:30
|
|
|
%hr
|
2017-09-10 17:25:29 +05:30
|
|
|
|
2020-01-01 13:55:28 +05:30
|
|
|
= render partial: 'admin/hook_logs/index', locals: { hook: @hook, hook_logs: @hook_logs }
|