{% extends '_layouts/cp' %} {% set title = 'Entries Scheduler'|t('craft-webhook-scheduler') %} {% import '_includes/forms' as forms %} {% block content %}

Create Webhook

{% macro errorList(errors) %} {% if errors %} {{ ul(errors, {class: 'errors'}) }} {% endif %} {% endmacro %}
{{ csrfInput() }} {{ actionInput('craft-webhook-scheduler/default/save') }} {{ forms.selectField({ first: true, label: 'Site'|t('craft-webhook-scheduler'), id: 'site-id', name: 'siteId', options: sites, required: true, }) }} {{ forms.textField({ first: true, label: 'Webhook Url'|t('craft-webhook-scheduler'), required: true, placeholder: 'https://', id: 'webhook-url', name: 'webhookUrl', })}}
{% if webhooks|length %}

Webhooks

{% for webhook in webhooks %} {% endfor %}
{{ 'Site'|t('craft-webhook-scheduler') }} {{ 'Webhook URL'|t('craft-webhook-scheduler') }} {{ 'Last Run'|t('craft-webhook-scheduler') }} {{ 'Actions'|t('craft-webhook-scheduler') }}
{{ webhook.siteName }} {{ webhook.webhookUrl }} {{ webhook.lastRun }} {{ 'Delete Webhook'|t('craft-webhook-scheduler') }}
{% else %}

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

{% endif %} {% endblock %}