{% extends "base.html" %} {% from "components/modal.html" import render_modal with context %} {% block extra_styles %} {% block utility_styles %}{% endblock %} {% endblock %} {% macro kind_option(value, title, description, checked=False) %} {% endmacro %} {% macro render_new_automation_form() %}
{{ _("What kind of automation?") }}
{{ kind_option("custom", _("Custom"), _("Describe what it should do, and Yaffo writes it."), checked=True) }} {% if sync_services.import %} {{ kind_option("import", _("Import from…"), _("Bring new photos into your library from a folder, an SD card, or OneDrive.")) }} {% endif %} {% if sync_services.send %} {{ kind_option("send", _("Send to…"), _("Keep an album, or the photos matching a filter, copied to a folder.")) }} {% endif %} {{ kind_option("service", _("Add a new service…"), _("Connect another photo service. Describe it, and Yaffo writes and tests the connection.")) }}
{% for kind in ("import", "send") %} {% if sync_services[kind] %} {% endif %} {% endfor %}

{{ _("Starts empty — build it through a conversation, then publish.") }}

{% endmacro %} {% macro automation_nav_list(automations) %} {% endmacro %} {% from "components/nav_panel.html" import nav_panel_toggle %} {% block nav_context_toggles %} {{ nav_panel_toggle('utilities-nav', _("Library"), 'archive') }} {{ nav_panel_toggle('automations-nav', _("Automations"), 'sync') }} {% endblock %} {% block content %}
{% block utility_content %}{% endblock %}
{# Shared across every utilities page so the sidebar's "New automation" works anywhere. #} {{ render_modal( 'newAutomationModal', _('New Automation'), url_for('automations_create'), render_new_automation_form, _('Create') ) }} {% endblock %}