{% extends "procmail/base.html" %} {% load i18n %} {% block content %}

{% trans "Advanced editor" %}

{% if curr_stmt.django.is_simple %} {% trans "Go to the simple edition page" %} {% endif %}
{% csrf_token %}

{% trans "Metadata" %}

{% include "procmail/form.html" with form=form_meta %} {% if curr_stmt.is_recipe %}

{% trans "Recipe" %}

{% trans "Header" %}

{% include "procmail/form.html" with form=form_header %}

{% trans "Conditions" %}

{% include "procmail/form.html" with form=form_condition %}

{% trans "Action" %}

{{form_action.show_init}} {% if form_action.non_field_errors %} {{form_action.non_field_errors}} {% endif %} {% if curr_stmt.action.is_nested %} {% for stmt in curr_stmt %} {% if not stmt.is_comment %} {% endif %} {% endfor %} {% endif %}
{{form_action.action_type.label_tag}} {{ form_action.action_type.errors }} {{ form_action.action_type }} {{ form_action.action_type.help_text}}
{{form_action.action_param.label_tag}} {{ form_action.action_param.errors }} {{ form_action.action_param }} {{ form_action.action_param.help_text}}
{% if stmt.meta_title %}{{stmt.meta_title}}{% else %}{{stmt.gen_title}}{% endif %}
{% elif curr_stmt.is_assignment %}

Assignement

{% include "procmail/form.html" with form=form_assignment %} {% endif %}

{% trans "Preview" %}

{{curr_stmt.render}}
{% endblock %}