{% extends "addons/addon_base.html" %} {% load crispy_forms_tags i18n permissions static translations %} {% block addon_content %} {% if addon %} {% include "addons/addon_head.html" with addon=addon hide_scope_badges=True %} {% endif %} {% if integration_instructions %}

{% translate "Integration instructions" %}

{{ integration_instructions|safe }}
{% endif %} {% if form %}

{% translate "Configure add-on" %}

{% crispy form %}
{% elif not integration_instructions %}

{% translate "This add-on has no settings." %}

{% endif %} {% if preview_result and not execution_form %}

{% translate "Preview" %}

{% translate "No operations were executed." %}

{{ preview_result }}
{% endif %} {% if instance and instance.can_run_manually %}

{% translate "Run add-on" %}

{% csrf_token %} {% if execution_form %}

{% translate "Uses the saved workflow. Clear “Preview without changes” to execute actions." %}

{% translate "Component scope selects strings across the component. Trigger scope selects strings affected by the change." %}

{% crispy execution_form %} {% if preview_result %}

{% translate "Automation preview" %}

{% translate "No operations were executed. Conditions depending on planned changes are shown as unknown." %}

{{ preview_result }}
{% endif %} {% else %}

{% translate "Schedule this add-on to run as soon as possible." %}

{% endif %}
{% endif %} {% if instance %}

{% translate "Danger zone" %}

{% csrf_token %}

{% translate "Uninstalling the add-on stops it from running and removes its configuration." %}

{% endif %} {% endblock addon_content %} {% block extra_script %} {{ block.super }} {% if form.fields.event_filter %} {% endif %} {% if form.guided_presets %} {% endif %} {% if form.fields.workflow %} {% endif %} {% endblock extra_script %}