{% load tailwind_field %} {% comment %}One characteristic line; the JS swaps the « Ordre » field and « Supprimer » box for a handle and buttons.{% endcomment %}
  • {% for hidden_field in form.hidden_fields %}{{ hidden_field }}{% endfor %} {% comment %}A hidden « id » fails when the line was deleted meanwhile (another tab): say so, or the save just fails.{% endcomment %} {% if form.non_field_errors or form.id.errors %}

    {% if form.id.errors %}Cette caractéristique a été modifiée ou supprimée entre-temps : rechargez la page.{% else %}{{ form.non_field_errors|join:" " }}{% endif %}

    {% endif %}
    {% tailwind_field form.label %} {% for error in form.label.errors %}

    {{ error }}

    {% endfor %}
    {% tailwind_field form.value %} {% for error in form.value.errors %}

    {{ error }}

    {% endfor %}
    {% for error in form.position.errors %}

    {{ error }}

    {% endfor %}