{% extends "core/base.jinja" %} {% block content %} {% if object %}

{% trans name=object %}Edit product {{ name }}{% endtrans %}

{% else %}

{% trans %}Product creation{% endtrans %}

{% endif %}
{% csrf_token %} {{ form.as_p() }}

{% trans %}Automatic actions{% endtrans %}

{%- trans trimmed -%} Automatic actions allows to schedule product changes ahead of time. {%- endtrans -%}

{{ form.action_formset.management_form }} {%- for action_form in form.action_formset.forms -%}
{{ action_form.non_field_errors() }}
{{ action_form.task.errors }} {{ action_form.task.label_tag() }} {{ action_form.task|add_attr("x-model=action") }}
{{ action_form.trigger_at.as_field_group() }}
{{ action_form.counters.as_field_group() }}
{%- if action_form.DELETE -%}
{{ action_form.DELETE.as_field_group() }}
{%- endif -%} {%- for field in action_form.hidden_fields() -%} {{ field }} {%- endfor -%}
{%- if not loop.last -%}
{%- endif -%} {%- endfor -%}

{% endblock %}