2019-12-16 04:08:10 -05:00
|
|
|
- add_to_breadcrumbs @hook.pluralized_name, admin_hooks_path
|
|
|
|
- page_title _('Edit System Hook')
|
2017-04-20 04:31:37 -04:00
|
|
|
|
2020-06-26 02:09:03 -04:00
|
|
|
.row.gl-mt-3
|
2019-12-16 04:08:10 -05:00
|
|
|
.col-lg-3
|
|
|
|
= render 'shared/web_hooks/title_and_docs', hook: @hook
|
2017-04-20 04:31:37 -04:00
|
|
|
|
2020-06-22 11:09:27 -04:00
|
|
|
.col-lg-9.gl-mb-3
|
2019-12-16 04:08:10 -05:00
|
|
|
= form_for @hook, as: :hook, url: admin_hook_path do |f|
|
|
|
|
= render partial: 'form', locals: { form: f, hook: @hook }
|
|
|
|
.form-actions
|
2020-06-01 11:08:16 -04:00
|
|
|
%span>= f.submit _('Save changes'), class: 'btn btn-success gl-mr-3'
|
2019-12-16 04:08:10 -05:00
|
|
|
= render 'shared/web_hooks/test_button', hook: @hook
|
|
|
|
= link_to _('Delete'), admin_hook_path(@hook), method: :delete, class: 'btn btn-remove float-right', data: { confirm: _('Are you sure?') }
|
2017-04-20 04:31:37 -04:00
|
|
|
|
2019-12-16 04:08:10 -05:00
|
|
|
%hr
|
2017-04-27 06:08:57 -04:00
|
|
|
|
2019-12-16 04:08:10 -05:00
|
|
|
= render partial: 'admin/hook_logs/index', locals: { hook: @hook, hook_logs: @hook_logs }
|