{% extends 'admin/model/edit.html' %} {% import 'admin/lib.html' as lib with context %} {% block body %} {% block navlinks %} {{ super() }} {% endblock %} {% block edit_form %} {% call lib.form_tag(action=action) %}
{{model.nom_complet}} {% if model.nom_vern %} - {{model.nom_vern}} {% endif %}
{% if model.cd_nom != model.cd_ref %} {% endif %}
{{ lib.render_field(form, form.listes) }}
{% if model.cd_nom == model.cd_ref %}
{{ lib.render_field(form, form.medias) }}
{% endif %} {% if model.cd_nom == model.cd_ref %}
{% for theme in theme_attributs_def %}
{{theme}}
{% for attr in theme.attributs %}
{% if attr.type_widget == 'text' %} {% elif attr.type_widget == 'textarea' %} {% elif attr.type_widget in ('select', 'multiselect') %} {% elif attr.type_widget == 'radio' %} {% for v in attributes_val[attr.id_attribut]['values'] %}
{% endfor %} {% else %} NOT IMPLEMENTED {{ attr.type_widget }} {% endif %}
{{attr.desc_attribut}}
{% endfor %}
{% endfor %}
{% endif %}
{{ lib.render_form_buttons(url_cancel) }}
{% endcall %} {% endblock %} {% endblock %}