{% extends "base.html" %} {% block title %}Editor · Ordine{% endblock %} {% block content %} {% from "partials/version_label.html" import render as version_label %}

{% if pipeline_id %}Edit pipeline{% else %}New pipeline{% endif %}

{% include "partials/ai_draft_form.html" %}
{% if branch_banner %}

Saved {{ version_label(branch_banner.saved, branch_banner.saved_note, parent_id=branch_banner.base) }} (branch of {{ version_label(branch_banner.base, branch_banner.base_note) }}). Current is still {{ version_label(branch_banner.current, branch_banner.current_note) }}.

{% endif %} {% if lab_resume_banner %}

Resume lab with {{ version_label(lab_resume_banner.version_id, lab_resume_banner.note, parent_id=lab_resume_banner.parent_id) }}

{% endif %} {% if current_version %}

Current version: {{ current_version_label or current_version }} · editing from {{ base_version_label or base_version }} · History · Dry-run lab

{% endif %}
{% if from_lab %}{% endif %} {% if not pipeline_id %}{% endif %}

{% if errors_by_path.get('name') %}{{ errors_by_path.name }}{% endif %}

{% if errors_by_path.get('engine') %}{{ errors_by_path.engine }}{% endif %}

{% if tab == 'yaml' %}

YAML

Comments in YAML are not preserved when saving (PyYAML discards them).

{% if errors_by_path.get('yaml_text') %}

{{ errors_by_path.yaml_text }}

{% endif %}
{% else %}

Form

Trigger

{% if errors_by_path.get('trigger.path') %}{{ errors_by_path['trigger.path'] }}{% endif %}

{% include "partials/editor_steps.html" %}
Pipeline on_failure {% set prefix = 'onfail' %} {% set error_prefix = 'on_failure' %} {% set branches_target_id = 'pipeline-onfail-branches' %} {% set legend = 'Pipeline recovery policy' %} {% include "partials/on_failure_block.html" %}
{% endif %} {% if errors %} {% endif %}

{% if pipeline_id %} Cancel {% else %} Cancel {% endif %}

{% endblock %}