{% extends "admin/background_pages/base.html" %} {% load static bulb_static admin_extras compress %} {% block title %}Gestion{% endblock title %} {% block head %} {% if DEBUG %} {% compress css %} {% endcompress %} {% elif not DEBUG %} {% endif %} {% endblock head %} {% block administration_part_name %} > Gestion > {{ node_model_name }} {% if node_uuid != "None" %} > {{ node_uuid }} {% endif %} {% endblock administration_part_name %} {% block content %}

{% csrf_token %} {% for field_name, field_properties in admin_fields_dict.items %} {% if field_properties.type == "locked" %} {% elif field_properties.type == "select" %} {% elif field_properties.type == "checkbox" %}
{% elif field_properties.type == "text" %} {% elif field_properties.type == "date" %}

/

/

{% elif field_properties.type == "time" %}

:

:

{% elif field_properties.type == "datetime" %}

/

/

 

:

:

{% elif field_properties.type == "file" %} {% if instance|get:field_name != "None" and instance|get:field_name != "" %}

{% if field_properties.format == "image" %} image {% elif field_properties.format == "pdf" %} Voir le document PDF {% else %}

No preview availables.

{% endif %} {% endif %} {% elif field_properties.type == "password" %}

{% elif field_properties.type == "relationship" %} {% if not field_properties.rel.unique %} {% else %} {% if selected_object|get:field_name %}

{% for tuple in selected_objects_dict|get:field_name %} {% for value in tuple %} {% if value != tuple.0 %} {{ value }}, {% else %} uuid = '{{ value }}', {% endif %} {% endfor %} {% endfor %}

{% else %} {% endif %} {% endif %} {% elif field_properties.type == "html" %} {% else %} {% endif %} {% if field_properties.description %}
info {{ field_properties.description }}
{% endif %}

{% endfor %}
{% csrf_token %}
arrow_back
{% endblock content %} {% block scripts %} {% if DEBUG %} {% for field_name, field_properties in admin_fields_dict.items %} {% if field_properties.type == "html" %} {% if field_properties.ckeditor %} {{ "" }} {% elif not DEBUG %} {% for field_name, field_properties in admin_fields_dict.items %} {% if field_properties.type == "html" %} {% if field_properties.ckeditor %} {{ "" }} {% endif %} {% endblock scripts %}