{# -*- coding: utf-8 -*- #} {% extends "form.html" %} {% load exfiltry %} {% load exsyntax %} {% block pythoncode %} {% if form_edit %} {% else %} {% endif %} {% endblock %} {% block all %} {% with form_width=720 form_height=480 show_title_bar=1 title="Fields" %} {{ block.super }} {% endwith %} {% endblock %} {% block list_content_header %}
{% action "add_field" "New field" url="../../../" %}
{% endblock %} {% block list_row_header %} Name Label Type Parameters Initial Widget Required {% endblock %} {% block list_row %} {{object.name}} {{object.label}} {{object.type}} {{object.param|default_if_none:""}} {{object.initial|default_if_none:""}} {{object.widget|default_if_none:""}} {% if object.required %}X{% endif %} {% endblock %} {% block list_row_actions %} {{block.super}} {% if not forloop.first %} {% row_actions %} field_up,Move up,[|client://actions/go-up.png] {% endrow_actions %} {% endif %} {% if not forloop.last %} {% row_actions %} field_down,Move down,[|client://actions/go-down.png] {% endrow_actions %} {% endif %} {% row_actions %} field_duplicat,Duplicate,[|client://actions/go-bottom.png] {% endrow_actions %} {% endblock %} {% block table_header_edit %}

Table field list

{% endblock %} {% block row_edit %} {% form %} "parent", "name", "required", "label", "initial", "widget", "help_text", "error_messages", "param" {% endform %} {{form.type.as_hidden}} {% endblock %}