{% extends 'generic/object.html' %} {% load i18n %} {% block extra_controls %} {% if can_collect %}
{% csrf_token %}
{% endif %} {% endblock %} {% block content %}

{% trans "Schedule" %}

{% trans "Name" %}{{ object.name }}
{% trans "Enabled" %}{% checkmark object.enabled %}
{% trans "Interval" %}{% blocktrans with hours=object.interval_hours %}every {{ hours }} hour(s){% endblocktrans %}
{% trans "Start at" %}{{ object.next_run|isodatetime }}
{% trans "Next run" %} {% if next_job %}{{ next_job.scheduled|isodatetime }}{% elif object.enabled %}{% trans "not scheduled - save the schedule to schedule it" %}{% else %}{% trans "paused" %}{% endif %}
{% trans "Webhook" %}{{ object.webhook_url|placeholder }}{% if object.webhook_secret %} {% trans "signed" %}{% endif %}
{% include 'inc/panels/tags.html' %} {% include 'inc/panels/custom_fields.html' %}

{% trans "Devices" %} {{ device_count }}

{% trans "All devices" %}{% checkmark object.all_devices %}
{% trans "With tags" %}{% for tag in object.device_tags.all %}{% tag tag %}{% empty %}—{% endfor %}
{% trans "Selected" %}{% for device in object.devices.all %}{{ device|linkify }}{% if not forloop.last %}, {% endif %}{% empty %}—{% endfor %}

{% trans "Recent runs" %}

{% endblock %}