{% load i18n authentic2 django_select2_tags %} {% addtoblock "js" %}{% import_django_select2_js %}{% endaddtoblock %} {% addtoblock "css" %}{% import_django_select2_css %}{% endaddtoblock %}
{% if request.ssl_info and request.ssl_info.users %}
{% trans "You are authenticated with certificate of users :" %}
{% endif %} {% if request.ssl_info and request.ssl_info.collectivity %}

{% with collectivities=request.ssl_info.collectivity counter=collectivities|length %} {% if counter < 2 %} {% blocktrans with first=collectivities.0 %}You are authenticated with certificate of collectivity {{ first }}. It has been pre-selected for you.{% endblocktrans %} {% else %} {% blocktrans with all=collectivities|join:", " %}You are authenticated with certificate of collectivities {{ all }}. It has been pre-selected for you.{% endblocktrans %} {% endif %} {% endwith %}

{% endif %}
{% csrf_token %} {{ form.as_p }}