{% extends "passerelle/manage.html" %} {% load i18n passerelle gadjo staticfiles %} {% comment %} This file is part of passerelle-atreal-openads - a Publik connector to openADS Copyright (C) 2019 Atreal This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details. You should have received a copy of the GNU Affero General Public License along with this program. If not, see . {% endcomment %} {% block extrascripts %} {{ block.super }} {% endblock %} {% block breadcrumb %} {{ block.super }} {% if connecteur %}{{ connecteur.slug }}{% endif %} {% endblock %} {% block appbar %}

{{ view.model.get_verbose_name }}{% if object.name %} - {{ object.name }}{% endif %}

{% if object|can_delete:request.user %} {% trans "delete" %} {% endif %} {% if object|can_edit:request.user %} {% trans "edit" %} {% endif %} {% if not object.guichet and object|can_edit:request.user and guichet_add_url %} {% trans "Add a Guichet" %} {% endif %} {% endblock %} {% block content %}
{% block description %} {% for field, value in object.get_fields_kv %}

{% if field.name == "guichet" %} {% trans "Guichet" %} {% trans ":" %} {% if value %} {{value}} {% else %} {% trans "None" %} {% endif %} {% elif field.name != "connecteur" and field.name != "forward_file" and field.name != "id" and field.name != "name" %} {% trans field.verbose_name %} {% trans ":" %} {{value}} {% endif %}

{% endfor %} {% if object.forward_files.count %}

{% trans "Forward files" %} {% trans ":" %} {{ object.forward_files.count }} {% if object.forward_files.count == 1 %}{% trans "forward file" %} {% else %}{% trans "forward files" %} {% endif %}

{% endif %} {% endblock %}
{% endblock %}