{% extends 'base.html.twig' %} {% block title %}{{ 'box.show.title'|trans({'email': entity.address}) }} {% if entity.address != entity.presentationAddress %} ({{ entity.presentationAddress }}) {% endif %} {% endblock %} {% block body -%} {% for flashMessage in app.session.flashbag.get('notice') %}
{{ flashMessage|trans }}
{% endfor %} {% for flashMessage in app.session.flashbag.get('danger') %}
{{ flashMessage|trans }}
{% endfor %} {% include 'Base/Box/_stats_row.html.twig' %}

{{ 'box.basic.head'|trans }}

{% if is_granted('ROLE_ADMIN') %} {% if entity.referenceId %} {% endif %} {% endif %} {% if entity.created != entity.updated %} {% endif %} {% if is_granted('ROLE_ADMIN') %} {% else %} {% endif %}
{{ 'box.name.label'|trans }} {{ entity.name }}
{{ 'box.home.label'|trans }} {{ entity.home }}
{{ 'box.disabled.label'|trans }} {{ entity.disabled|bool_glyph('disabled-value') }}
{{ 'box.domain_administrator.label'|trans }} {{ entity.domainAdmin|bool_glyph('domain-admin-value') }}
{{ 'box.system_administrator.label'|trans }} {{ entity.superAdmin|bool_glyph('super-admin-value') }}
{{ 'box.strict_from.label'|trans }} {{ entity.strictFromDisabled|bool_glyph('strict-from-disabled') }}
{{ 'box.discard.label'|trans }} {{ entity.discard|bool_glyph('discard-incomming') }}
{{ 'box.reference_id.label'|trans }} {{ entity.referenceId }}
{{ 'created.label'|trans }} {{ entity.created|date('Y-m-d H:i:s') }}
{{ 'updated.label'|trans }} {{ entity.updated|date('Y-m-d H:i:s') }}
{{ 'box.edit_basic.button'|trans }} {{ 'box.change_address.button'|trans }}
{{ 'box.change_password'|trans }}

{{ 'box.quota.head'|trans }}

{{ 'box.storage.label'|trans }} {{ ( quota.storageLimit == 0 ? '' ~ ('box.storage.unlimited'|trans) ~ '' : (quota.storageLimit|size) )|raw }} ({{ 'box.storage.usage'|trans({'storage_usage': quota.storageUsage|size}) }})
{{ 'box.count_limit.label'|trans }} {{ ( quota.countLimit == 0 ? '' ~ ('box.count_limit.unlimited'|trans) ~ '' : (quota.countLimit|format_number) )|raw }} ({{ 'box.count_limit.usage'|trans({'emails_count': quota.countUsage|format_number }) }})
{% if is_granted('ROLE_ADMIN') %} {{ 'box.quota.edit_button'|trans }} {% endif %} {{ 'box.empty_mailbox_button'|trans }}

{{ 'box.sieve.head'|trans }}

{{ 'box.sieve.active.label'|trans }} {% if sieve and sieve.filter and sieve.filter.editable %} {{ sieve.filter.label|trans }} {% if sieve.filter.editable %} {{ 'box.sieve.edit'|trans }} {% endif %} {{ 'box.sieve.remove'|trans }} {% else %} {{ 'box.sieve.no_additional'|trans }} {% endif %}
{{ 'box.filter.change'|trans }}

{{ 'box.filter.redirect'|trans|raw }}

{{ 'box.filter.copy'|trans|raw }}

{{ 'box.filter.autoreply'|trans|raw }}

{{ 'box.filter.out_of_office'|trans|raw }}

{{ 'box.filter.custom'|trans }}

{{ render(controller('App\\DAV\\Controller\\DavController::listAction', {'box': entity.id})) }} {% if is_granted('ROLE_ADMIN') %} {% if app.request.headers.get('referer') matches '~new~' %} {{ 'box.create.button'|trans }} {% endif %} {% if app.user != entity %} {{ form(delete_form, {'attr': {'onsubmit': 'return confirm("' ~ ('box.delete.question'|trans) ~ '")'}}) }} {% endif %}

{{ 'back.to_list'|trans }} {% endif %} {% endblock %} {% block javascripts %} {% include 'Base/Box/_stats_js.html.twig' %} {% endblock %}