summaryrefslogtreecommitdiff
path: root/app/views/admin/hooks/edit.html.haml
blob: e8176e9f8bbdeb2490c8130ecf78364f6f220066 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
- add_to_breadcrumbs @hook.pluralized_name, admin_hooks_path
- page_title _('Edit System Hook')

= render 'shared/web_hooks/hook_errors', hook: @hook

.row.gl-mt-3
  .col-lg-3
    = render 'shared/web_hooks/title_and_docs', hook: @hook

  .col-lg-9.gl-mb-3
    = gitlab_ui_form_for @hook, as: :hook, url: admin_hook_path do |f|
      = render partial: 'form', locals: { form: f, hook: @hook }
      .form-actions
        %span>= f.submit _('Save changes'), class: 'btn gl-button btn-confirm gl-mr-3'
        = render 'shared/web_hooks/test_button', hook: @hook
        = 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' }

    %hr

    = render partial: 'admin/hook_logs/index', locals: { hook: @hook, hook_logs: @hook_logs }