{% extends '_layouts/cp' %} {% set title = 'Manage Webhooks'|t('webhooks') %} {% set selectedSubnavItem = 'manage' %} {% from '_includes/forms' import lightswitch %} {% block actionButton %} {% set newWebhookUrl = url('webhooks/new', (groupId is defined ? { groupId: groupId } : null)) %} {{ "New webhook"|t('webhooks') }} {% endblock %} {% block sidebar %}
{{ "New group"|t('app') }}
{% if groupId %} {% endif %}
{% endblock %} {% block content %} {% if webhooks|length %} {% for webhook in webhooks %} {% endfor %}
{{ 'Webhook'|t('webhooks') }} {{ 'Enabled'|t('webhooks') }}
{{ webhook.name }} {{ lightswitch({ id: 'enabled', name: 'enabled', on: webhook.enabled }) }}
{% else %}

{{ 'No webhooks exist yet.'|t('webhooks') }}

{% endif %} {% endblock %}