{% extends "core/base.html" %} {% load static %} {% block styles %}{% endblock %} {% block content %}

Mon entreprise

{% if can_edit %} {% endif %}
{% include "core/settings_menu.html" with menu_label="Réglages de l’entreprise" %}

{{ heading }}

{% if not can_edit %}

Lecture seule

{% endif %}
{% if can_edit %}
{% csrf_token %} {% include "core/settings_verification.html" %} {{ form.non_field_errors }} {% endif %} {% for label, fields in groups %}

{{ label }}

{% if can_edit %}
{% for field in fields %} {% if field.name in wide_fields %} {% include "core/form_field.html" with wide=True %} {% else %} {% include "core/form_field.html" %} {% endif %} {% endfor %}
{% else %}
{% for field in fields %}
{{ field.label }}
{% with value=field.value %}
{% if value is None or value == "" %}— {% elif field.name == "has_vat_on_debits" %}{{ value|yesno:"Oui,Non" }} {% else %}{{ value|linebreaksbr }}{% endif %}
{% endwith %}
{% endfor %} {% endif %} {% endfor %} {% if can_edit %}
{% endif %} {% endblock %}