{% extends "utilities/_base.html" %} {% from "components/chat_dialog.html" import chat_dialog %} {% from "components/page_header.html" import page_header %} {% block title %}{{ _("Automations - Yaffo") }}{% endblock %} {% block utility_styles %} {% endblock %} {% block utility_content %} {% set header_actions %} ← {{ _("Back to automation") }} {% endset %} {% call page_header(_('Edit') ~ ' · ' ~ selected.display_name, actions=header_actions) %} {{ _("Describe what this automation should do and the assistant will write it.") }} {% endcall %}
{{ chat_dialog( 'automation-chat', _('Conversation'), _('Describe what this automation should do and the assistant will write it.'), _('Describe what this automation should do…'), messages=selected.messages, empty_text=_('No conversation yet — describe what you want and the assistant will build it.'), disabled=false ) }}

{{ _("Code") }}

{% if selected_has_draft %}
{% endif %}
{% if selected_has_draft %}
{{ selected.working_code }}
{% if selected.published_code %} {% else %} {% endif %} {% elif selected.published_code %}
{{ selected.published_code }}
{% else %}

{{ _("No published code yet.") }}

{% endif %} {% if selected.published_code or selected.working_code %}
{% if selected_has_draft %} {% endif %}
{% endif %}
{% endblock %} {% block scripts %} {% endblock %}