Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/admin/hooks/_form.html.haml')
-rw-r--r--app/views/admin/hooks/_form.html.haml6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/admin/hooks/_form.html.haml b/app/views/admin/hooks/_form.html.haml
index 92a664e1ca8..9f71297c700 100644
--- a/app/views/admin/hooks/_form.html.haml
+++ b/app/views/admin/hooks/_form.html.haml
@@ -5,6 +5,12 @@
= form.text_field :url, class: 'form-control gl-form-input'
%p.form-text.text-muted= _('URL must be percent-encoded if necessary.')
.form-group
+ = form.label :name, s_('Webhooks|Name (optional)'), class: 'label-bold'
+ = form.text_field :name, value: hook.name, class: 'form-control gl-form-input gl-form-input-xl'
+.form-group
+ = form.label :description, s_('Webhooks|Description (optional)'), class: 'label-bold'
+ = form.text_area :description, value: hook.description, class: 'form-control gl-form-input gl-form-input-xl', rows: 4, maxlength: 2048
+.form-group
= form.label :token, _('Secret token'), class: 'label-bold'
= form.password_field :token, value: hook.masked_token, autocomplete: 'new-password', class: 'form-control gl-form-input gl-max-w-48'
%p.form-text.text-muted= _('Use this token to validate received payloads.')