{{#link-to 'adminWebHooks' class="go-back"}} {{fa-icon 'arrow-left'}} {{i18n 'admin.web_hooks.go_back'}} {{/link-to}}

{{i18n 'admin.web_hooks.detailed_instruction'}}

{{text-field name="payload-url" value=model.payload_url placeholderKey="admin.web_hooks.payload_url_placeholder"}} {{input-tip validation=urlValidation}}
{{combo-box content=contentTypes name="content-type" nameProperty="name" valueAttribute="id" value=model.content_type}}
{{text-field name="secret" value=model.secret placeholderKey="admin.web_hooks.secret_placeholder"}} {{input-tip validation=secretValidation}}
{{radio-button class="subscription-choice" name="subscription-choice" value="individual" selection=model.webHookType}} {{i18n 'admin.web_hooks.individual_event'}} {{input-tip validation=eventTypeValidation}}
{{#unless model.wildcard_web_hook}}
{{#each eventTypes as |type|}} {{admin-web-hook-event-chooser type=type model=model.web_hook_event_types}} {{/each}}
{{/unless}}
{{radio-button class="subscription-choice" name="subscription-choice" value="wildcard" selection=model.webHookType}} {{i18n 'admin.web_hooks.wildcard_event'}}
{{category-selector categories=model.categories blacklist=model.categories}}
{{i18n 'admin.web_hooks.categories_filter_instructions'}}
{{group-selector groupNames=model.groupsFilterInName groupFinder=model.groupFinder}}
{{i18n 'admin.web_hooks.groups_filter_instructions'}}
{{plugin-outlet name="web-hook-fields" args=(hash model=model)}}
{{input type="checkbox" name="verify_certificate" checked=model.verify_certificate}} {{i18n 'admin.web_hooks.verify_certificate'}}
{{input type="checkbox" name="active" checked=model.active}} {{i18n 'admin.web_hooks.active'}}
{{#if model.active}}
{{i18n 'admin.web_hooks.active_notice'}}
{{/if}}
{{#unless model.isNew}} {{d-button class="btn-danger" label="admin.web_hooks.destroy" action="destroy"}} {{#link-to 'adminWebHooks.showEvents' model.id class="btn"}} {{i18n 'admin.web_hooks.events.go_events'}} {{/link-to}} {{/unless}} {{savingStatus}}