{% load i18n %} {% comment %} Permission management panel for a single asset/location instance. Partial template: permission panel for a single asset/location instance. Included inside the asset detail page or served standalone via the URL. Required context: ct — ContentType instance object_id — int, PK of the object Optional (auto-populated when used standalone, must be provided when included): obj — the model instance (for display) type_config — AssetTypePermissionConfig instance accesses — queryset of UserAssetAccess for this object all_user_configs — queryset of UserConfig for the user selector field_choices — list of (value, label) tuples for editable fields {% endcomment %} {% load i18n %}
{% translate "Les utilisateurs ci-dessous ont un accès défini pour TOUS les objets de ce type. Ces droits s'appliquent à cet objet sauf si une ligne d'accès spécifique ci-dessous les écrase." %}
| {% translate "Utilisateur" %} | {% translate "Voir" %} | {% translate "Modifier" %} | {% translate "Supprimer" %} | {% translate "Champs" %} |
|---|---|---|---|---|
| {{ ta.user_config.user.get_full_name|default:ta.user_config.user.username }} | {% if ta.can_view %} {% else %}{% endif %} | {% if ta.can_edit %} {% else %}{% endif %} | {% if ta.can_delete %} {% else %}{% endif %} | {% if ta.editable_fields %} {{ ta.editable_fields|join:", " }} {% else %} {% translate "Par rôle" %} {% endif %} |
{% translate "Aucun accès spécifique défini pour cet objet." %}
{% endif %}