{% extends "base.html" %} {% block title %}{{ table }}{% endblock %} {% block content %}

{{ icon(table_icon(table), 22) }} {{ table }}

{{ total }} enregistrement{% if total != 1 %}s{% endif %}{% if q %} · resultats pour "{{ q }}"{% endif %}

{% for col in columns %}{% endfor %} {% for item in items %} {% for col in columns %} {% endfor %} {% else %} {% endfor %}
{{ col }}
{% set v = item[col] %} {% if v is none %} {% elif v is sameas true %} {{ icon("check", 12) }} oui {% elif v is sameas false %} {{ icon("x", 12) }} non {% elif col in fk_maps %} {% set fk = fk_maps[col] %} {{ fk.map.get(v|string, v|string) }} {% elif col == "id" %} {{ v|string|truncate(10, true, "...") }} {% elif v is string and v|length == 36 and "-" in v %} {{ v[:8] }}... {% else %} {{ v|string|truncate(80) }} {% endif %} {{ icon("edit", 16) }}
{{ icon(table_icon(table), 32) }}
Aucun enregistrement
{% if q %}Aucun resultat pour "{{ q }}". Effacer le filtre{% else %}Commence par creer un premier {{ table[:-1] if table.endswith("s") else table }}.{% endif %}
{% if not q %}{{ icon("plus", 14) }}Creer{% endif %}
{% if pages > 1 %} {% endif %} {% endblock %}