diff --git a/src/authentic2/apps/authenticators/templates/authentic2/authenticators/authenticator_detail.html b/src/authentic2/apps/authenticators/templates/authentic2/authenticators/authenticator_detail.html index 8214ae708..9e448b169 100644 --- a/src/authentic2/apps/authenticators/templates/authentic2/authenticators/authenticator_detail.html +++ b/src/authentic2/apps/authenticators/templates/authentic2/authenticators/authenticator_detail.html @@ -7,7 +7,7 @@ {% if object.has_valid_configuration and not object.protected %} - {{ object.enabled|yesno:_("Disable,Enable") }} + {{ object.enabled|yesno:_("Disable,Enable") }} {% endif %} {% trans "Edit" %} -

-

- They will all be deleted. Are you sure you want to delete organizational unit "{{ object }}"? -

+

+

+ They will all be deleted. Are you sure you want to delete organizational unit "{{ object }}"? +

{% endblocktrans %} {% endblock %} diff --git a/src/authentic2/manager/templates/authentic2/manager/ou_detail.html b/src/authentic2/manager/templates/authentic2/manager/ou_detail.html index 9f22ac9e8..3522dca9a 100644 --- a/src/authentic2/manager/templates/authentic2/manager/ou_detail.html +++ b/src/authentic2/manager/templates/authentic2/manager/ou_detail.html @@ -17,16 +17,16 @@ {% block appbar %} {{ block.super }} - {% if view.can_delete %} - {% trans "Delete" %} - {% else %} - {% trans "Delete" %} - {% endif %} + {% if view.can_delete %} + {% trans "Delete" %} + {% else %} + {% trans "Delete" %} + {% endif %} - {% if view.can_change %} - {% trans "Edit" %} - {% else %} - {% trans "Edit" %} - {% endif %} + {% if view.can_change %} + {% trans "Edit" %} + {% else %} + {% trans "Edit" %} + {% endif %} {% endblock %} diff --git a/src/authentic2/manager/templates/authentic2/manager/ous.html b/src/authentic2/manager/templates/authentic2/manager/ous.html index 90826f19f..6979184c3 100644 --- a/src/authentic2/manager/templates/authentic2/manager/ous.html +++ b/src/authentic2/manager/templates/authentic2/manager/ous.html @@ -10,28 +10,28 @@ {% block appbar %} {{ block.super }} - - {% if view.can_add %} - {% trans "Add organizational unit" %} - {% endif %} - + {% endblock %} {% block sidebar %} {% endblock %} {% block main %} {% with row_link=1 %} - {% render_table table "authentic2/manager/table.html" %} + {% render_table table "authentic2/manager/table.html" %} {% endwith %} {% endblock %} diff --git a/src/authentic2/manager/templates/authentic2/manager/role_edit.html b/src/authentic2/manager/templates/authentic2/manager/role_edit.html index 09fb3008d..8201a1856 100644 --- a/src/authentic2/manager/templates/authentic2/manager/role_edit.html +++ b/src/authentic2/manager/templates/authentic2/manager/role_edit.html @@ -10,12 +10,12 @@ {% endblock %} {% block content %} -
- {% csrf_token %} - {{ form|with_template }} -
- - {% trans 'Cancel' %} -
-
+
+ {% csrf_token %} + {{ form|with_template }} +
+ + {% trans 'Cancel' %} +
+
{% endblock %} diff --git a/src/authentic2/manager/templates/authentic2/manager/role_members.html b/src/authentic2/manager/templates/authentic2/manager/role_members.html index 7a350e357..f18435e7b 100644 --- a/src/authentic2/manager/templates/authentic2/manager/role_members.html +++ b/src/authentic2/manager/templates/authentic2/manager/role_members.html @@ -7,43 +7,43 @@ {% endblock %} {% block sidebar %} - + {% endblock %} {% block appbar %} {{ block.super }} - {% if view.can_change and not object.is_internal %} - {% trans "Edit" %} - {% else %} - {% if not view.can_change %} - {% trans "Edit" %} + {% if view.can_change and not object.is_internal %} + {% trans "Edit" %} {% else %} - {% trans "Edit" %} + {% if not view.can_change %} + {% trans "Edit" %} + {% else %} + {% trans "Edit" %} + {% endif %} {% endif %} - {% endif %} @@ -56,89 +56,89 @@ {% endblock %} {% block main %} - {% if from_ldap %} -
- {% trans "This role is synchronised from LDAP, changing members is not allowed." %} -
- {% endif %} - {% with row_link=1 %} - {% render_table table "authentic2/manager/role_members_table.html" %} - {% endwith %} - - {% if search_form.cleaned_data.all_members %} - {% include "authentic2/manager/export_include.html" with export_view_name="a2-manager-role-members-export" %} - {% endif %} - - {% if view.can_manage_members %} -
- {% csrf_token %} - {{ form }} - -
- {% endif %} - -
-

{% trans "Contains permissions of roles:" %} - {% if not object.is_internal %} - {% trans "Edit" %} - {% else %} - {% trans "Edit" %} - {% endif %} -

-
- {% if parents %} - - {% else %} -

{% trans "This role doesn't contain permissions of any other role." %}

- {% endif %} -
-
- -
- {% trans "Advanced parameters" %} -
- {% trans "Is administered by users" %} - {% for user in object.get_admin_role.all_members %} - {{ user }} - {% if user.direct %} - - {% else %} - - {% endif %} - {% endfor %} - {% if view.can_change %} - - {% else %} - + {% if from_ldap %} +
+ {% trans "This role is synchronised from LDAP, changing members is not allowed." %} +
{% endif %} -
-
- {% trans "Is administered by roles" %} - {% for role in admin_roles %} - {{ role }} - {% if role.direct %} - - {% else %} - - {% endif %} - {% endfor %} - {% if view.can_change %} - - {% else %} - + {% with row_link=1 %} + {% render_table table "authentic2/manager/role_members_table.html" %} + {% endwith %} + + {% if search_form.cleaned_data.all_members %} + {% include "authentic2/manager/export_include.html" with export_view_name="a2-manager-role-members-export" %} {% endif %} -
-
+ + {% if view.can_manage_members %} +
+ {% csrf_token %} + {{ form }} + +
+ {% endif %} + +
+

{% trans "Contains permissions of roles:" %} + {% if not object.is_internal %} + {% trans "Edit" %} + {% else %} + {% trans "Edit" %} + {% endif %} +

+
+ {% if parents %} + + {% else %} +

{% trans "This role doesn't contain permissions of any other role." %}

+ {% endif %} +
+
+ +
+ {% trans "Advanced parameters" %} +
+ {% trans "Is administered by users" %} + {% for user in object.get_admin_role.all_members %} + {{ user }} + {% if user.direct %} + + {% else %} + + {% endif %} + {% endfor %} + {% if view.can_change %} + + {% else %} + + {% endif %} +
+
+ {% trans "Is administered by roles" %} + {% for role in admin_roles %} + {{ role }} + {% if role.direct %} + + {% else %} + + {% endif %} + {% endfor %} + {% if view.can_change %} + + {% else %} + + {% endif %} +
+
{% endblock %} diff --git a/src/authentic2/manager/templates/authentic2/manager/role_members_table.html b/src/authentic2/manager/templates/authentic2/manager/role_members_table.html index 060975b6c..484222444 100644 --- a/src/authentic2/manager/templates/authentic2/manager/role_members_table.html +++ b/src/authentic2/manager/templates/authentic2/manager/role_members_table.html @@ -2,9 +2,9 @@ {% load i18n %} - {% block table.head.last.column %} - - {% endblock %} - {% block table.tbody.last.column %} +{% block table.head.last.column %} + +{% endblock %} +{% block table.tbody.last.column %} {% if table.context.view.can_manage_members and row.record.direct %}{% endif %} - {% endblock %} +{% endblock %} diff --git a/src/authentic2/manager/templates/authentic2/manager/role_permissions.html b/src/authentic2/manager/templates/authentic2/manager/role_permissions.html index 9398e5da0..2215175dd 100644 --- a/src/authentic2/manager/templates/authentic2/manager/role_permissions.html +++ b/src/authentic2/manager/templates/authentic2/manager/role_permissions.html @@ -12,25 +12,25 @@ {% block appbar %} {{ block.super }} - {% if view.can_delete %} - {% trans "Delete" %} - {% endif %} - {% if view.can_change and not object.is_internal %} - {% trans "Edit" %} - {% endif %} - {% trans "Members" %} + {% if view.can_delete %} + {% trans "Delete" %} + {% endif %} + {% if view.can_change and not object.is_internal %} + {% trans "Edit" %} + {% endif %} + {% trans "Members" %} {% endblock %} {% block main %} -
- {% render_table table "authentic2/manager/role_permissions_table.html" %} -
- {% if perms.a2_rbac.change_role %} -
- {% csrf_token %} - {{ form }} - -
- {% endif %} +
+ {% render_table table "authentic2/manager/role_permissions_table.html" %} +
+ {% if perms.a2_rbac.change_role %} +
+ {% csrf_token %} + {{ form }} + +
+ {% endif %} {% endblock %} diff --git a/src/authentic2/manager/templates/authentic2/manager/role_permissions_table.html b/src/authentic2/manager/templates/authentic2/manager/role_permissions_table.html index 87b684dfe..62c99860f 100644 --- a/src/authentic2/manager/templates/authentic2/manager/role_permissions_table.html +++ b/src/authentic2/manager/templates/authentic2/manager/role_permissions_table.html @@ -2,9 +2,9 @@ {% load i18n %} - {% block table.head.last.column %} - - {% endblock %} - {% block table.tbody.last.column %} - {% if table.context.view.can_change %}{% endif %} - {% endblock %} +{% block table.head.last.column %} + +{% endblock %} +{% block table.tbody.last.column %} + {% if table.context.view.can_change %}{% endif %} +{% endblock %} diff --git a/src/authentic2/manager/templates/authentic2/manager/role_remove_admin_role.html b/src/authentic2/manager/templates/authentic2/manager/role_remove_admin_role.html index 90c8a3826..3631d5cf9 100644 --- a/src/authentic2/manager/templates/authentic2/manager/role_remove_admin_role.html +++ b/src/authentic2/manager/templates/authentic2/manager/role_remove_admin_role.html @@ -12,7 +12,7 @@ {% csrf_token %}
{% block caption %} -

{% blocktrans %}Do you want to remove admin role {{ child }}?{% endblocktrans %}

+

{% blocktrans %}Do you want to remove admin role {{ child }}?{% endblocktrans %}

{% endblock %}
diff --git a/src/authentic2/manager/templates/authentic2/manager/role_remove_admin_user.html b/src/authentic2/manager/templates/authentic2/manager/role_remove_admin_user.html index 0078ed165..b393fb7d2 100644 --- a/src/authentic2/manager/templates/authentic2/manager/role_remove_admin_user.html +++ b/src/authentic2/manager/templates/authentic2/manager/role_remove_admin_user.html @@ -12,7 +12,7 @@ {% csrf_token %}
{% block caption %} -

{% blocktrans %}Do you want to remove admin user {{ user }}?{% endblocktrans %}

+

{% blocktrans %}Do you want to remove admin user {{ user }}?{% endblocktrans %}

{% endblock %}
diff --git a/src/authentic2/manager/templates/authentic2/manager/roles.html b/src/authentic2/manager/templates/authentic2/manager/roles.html index 9d668bf32..e4e7724da 100644 --- a/src/authentic2/manager/templates/authentic2/manager/roles.html +++ b/src/authentic2/manager/templates/authentic2/manager/roles.html @@ -8,20 +8,20 @@ {% block appbar %} {{ block.super }} - - {% if view.can_add %} - {% trans "Add role" %} - {% else %} - {% trans "Add role" %} - {% endif %} - + {% endblock %} diff --git a/src/authentic2/manager/templates/authentic2/manager/roles_csv_import_form.html b/src/authentic2/manager/templates/authentic2/manager/roles_csv_import_form.html index c86695bf5..83a2d08ff 100644 --- a/src/authentic2/manager/templates/authentic2/manager/roles_csv_import_form.html +++ b/src/authentic2/manager/templates/authentic2/manager/roles_csv_import_form.html @@ -2,15 +2,15 @@ {% load i18n gadjo %} {% block content %} -
-{% csrf_token %} -{{ form|with_template }} -

-{% trans 'Download sample file' %} -

-
- - {% trans 'Cancel' %} -
-
+
+ {% csrf_token %} + {{ form|with_template }} +

+ {% trans 'Download sample file' %} +

+
+ + {% trans 'Cancel' %} +
+
{% endblock %} diff --git a/src/authentic2/manager/templates/authentic2/manager/roles_inheritance.html b/src/authentic2/manager/templates/authentic2/manager/roles_inheritance.html index 7d7d9dd80..9bb7b7c2e 100644 --- a/src/authentic2/manager/templates/authentic2/manager/roles_inheritance.html +++ b/src/authentic2/manager/templates/authentic2/manager/roles_inheritance.html @@ -13,9 +13,9 @@ {% endblock %} {% block main %} - {% with row_link=0 %} - {% render_table table "authentic2/manager/table.html" %} - {% endwith %} + {% with row_link=0 %} + {% render_table table "authentic2/manager/table.html" %} + {% endwith %} {% endblock %} {% block sidebar %} diff --git a/src/authentic2/manager/templates/authentic2/manager/search_form.html b/src/authentic2/manager/templates/authentic2/manager/search_form.html index 4d8d41238..6471024e8 100644 --- a/src/authentic2/manager/templates/authentic2/manager/search_form.html +++ b/src/authentic2/manager/templates/authentic2/manager/search_form.html @@ -1,6 +1,6 @@ {% load gadjo i18n %} -

{% trans "Search" context "title" %}

-
- {{ search_form|with_template }} - -
+

{% trans "Search" context "title" %}

+
+ {{ search_form|with_template }} + +
diff --git a/src/authentic2/manager/templates/authentic2/manager/service.html b/src/authentic2/manager/templates/authentic2/manager/service.html index 609264dc5..0a1599a9c 100644 --- a/src/authentic2/manager/templates/authentic2/manager/service.html +++ b/src/authentic2/manager/templates/authentic2/manager/service.html @@ -4,7 +4,7 @@ {% block page-title %}{% firstof manager_site_title site_title "Authentic2" %} - {{ object }}{% endblock %} {% block breadcrumb %} -{{ block.super }} + {{ block.super }} {% trans 'Services' %} {{ view.service.name }} {% endblock %} @@ -15,52 +15,52 @@ {% block appbar %} {{ block.super }} - {% if view.can_delete %} - {% trans "Delete" %} - {% endif %} - {% trans "Settings" %} + {% if view.can_delete %} + {% trans "Delete" %} + {% endif %} + {% trans "Settings" %} {% endblock %} {% block sidebar %} {% endblock %} {% block main %} -
-

{% trans "Roles of users allowed on this service" %}

-
- {% with row_link=1 %} - {% render_table table "authentic2/manager/service_roles_table.html" %} - {% endwith %} -
- {% csrf_token %} - {{ form }} - -
-
-
- -
-

{% trans "Roles solely visible from this service" %}

-
- {% with row_link=1 table=roles_table %} - {% render_table table "authentic2/manager/table.html" %} - {% endwith %} +
+

{% trans "Roles of users allowed on this service" %}

+
+ {% with row_link=1 %} + {% render_table table "authentic2/manager/service_roles_table.html" %} + {% endwith %} +
+ {% csrf_token %} + {{ form }} + +
+
-
- {% endblock %} +
+

{% trans "Roles solely visible from this service" %}

+
+ {% with row_link=1 table=roles_table %} + {% render_table table "authentic2/manager/table.html" %} + {% endwith %} +
+
+ +{% endblock %} diff --git a/src/authentic2/manager/templates/authentic2/manager/service_roles_table.html b/src/authentic2/manager/templates/authentic2/manager/service_roles_table.html index d59b60d4b..3ebaff12a 100644 --- a/src/authentic2/manager/templates/authentic2/manager/service_roles_table.html +++ b/src/authentic2/manager/templates/authentic2/manager/service_roles_table.html @@ -2,9 +2,9 @@ {% load i18n %} - {% block table.head.last.column %} - - {% endblock %} - {% block table.tbody.last.column %} - {% if table.context.view.can_change %}{% endif %} - {% endblock %} +{% block table.head.last.column %} + +{% endblock %} +{% block table.tbody.last.column %} + {% if table.context.view.can_change %}{% endif %} +{% endblock %} diff --git a/src/authentic2/manager/templates/authentic2/manager/service_settings.html b/src/authentic2/manager/templates/authentic2/manager/service_settings.html index c3c059757..819813e87 100644 --- a/src/authentic2/manager/templates/authentic2/manager/service_settings.html +++ b/src/authentic2/manager/templates/authentic2/manager/service_settings.html @@ -2,7 +2,7 @@ {% load i18n %} {% block breadcrumb %} -{{ block.super }} + {{ block.super }} {{ object.name }} {% endblock %} @@ -12,29 +12,29 @@ {% block appbar %}

{% trans "Settings" %}

- {% if view.can_change %} - {% trans "Edit" %} - {% endif %} + {% if view.can_change %} + {% trans "Edit" %} + {% endif %} {% endblock %} {% block main %} -
- {% for field, value in object_fields_values %} -
-
{{ field|capfirst }}{% trans ":" %}
-
{% if value == True %}{% trans "yes" %} - {% elif value == False %}{% trans "no" %} - {% else %}{{ value|linebreaksbr }} - {% endif %}
+
+ {% for field, value in object_fields_values %} +
+
{{ field|capfirst }}{% trans ":" %}
+
{% if value == True %}{% trans "yes" %} + {% elif value == False %}{% trans "no" %} + {% else %}{{ value|linebreaksbr }} + {% endif %}
+
+ {% endfor %}
- {% endfor %} -
-{% if extra_details_template %} - {% include extra_details_template %} -{% endif %} + {% if extra_details_template %} + {% include extra_details_template %} + {% endif %} {% endblock %} {% block sidebar %} diff --git a/src/authentic2/manager/templates/authentic2/manager/services.html b/src/authentic2/manager/templates/authentic2/manager/services.html index cd98112bd..13124e4fe 100644 --- a/src/authentic2/manager/templates/authentic2/manager/services.html +++ b/src/authentic2/manager/templates/authentic2/manager/services.html @@ -12,7 +12,7 @@ {{ block.super }} {% if view.can_add %} - {% trans "Add OIDC service" %} + {% trans "Add OIDC service" %} {% endif %} {% endblock %} diff --git a/src/authentic2/manager/templates/authentic2/manager/table.html b/src/authentic2/manager/templates/authentic2/manager/table.html index 83fee36e1..f7e8b7256 100644 --- a/src/authentic2/manager/templates/authentic2/manager/table.html +++ b/src/authentic2/manager/templates/authentic2/manager/table.html @@ -3,29 +3,29 @@ {% load django_tables2 %} {% block table.thead %} - + - {% for column in table.columns %} + {% for column in table.columns %} {% if column.orderable %} - {{ column.header }} + {{ column.header }} {% else %} - {{ column.header }} + {{ column.header }} {% endif %} - {% endfor %} - {% block table.head.last.column %} - {% endblock %} + {% endfor %} + {% block table.head.last.column %} + {% endblock %} - + {% endblock table.thead %} {% block table.tbody.row %} - - {% for column, cell in row.items %} - {% if column.localize == None %}{{ cell }}{% else %}{% if column.localize %}{{ cell|localize }}{% else %}{{ cell|unlocalize }}{% endif %}{% endif %} - {% endfor %} - {% block table.tbody.last.column %} - {% endblock %} - + + {% for column, cell in row.items %} + {% if column.localize == None %}{{ cell }}{% else %}{% if column.localize %}{{ cell|localize }}{% else %}{{ cell|unlocalize }}{% endif %}{% endif %} + {% endfor %} + {% block table.tbody.last.column %} + {% endblock %} + {% endblock table.tbody.row %} {% block pagination %} diff --git a/src/authentic2/manager/templates/authentic2/manager/tech_info.html b/src/authentic2/manager/templates/authentic2/manager/tech_info.html index a19f682cd..15c21771c 100644 --- a/src/authentic2/manager/templates/authentic2/manager/tech_info.html +++ b/src/authentic2/manager/templates/authentic2/manager/tech_info.html @@ -7,10 +7,10 @@ {% block content %} {% if ldap_list %} -
- {% for ldap in ldap_list %} - {% include "authentic2/manager/ldap_details.html" with ldap=ldap %} - {% endfor %} -
-{% endif %} +
+ {% for ldap in ldap_list %} + {% include "authentic2/manager/ldap_details.html" with ldap=ldap %} + {% endfor %} +
+ {% endif %} {% endblock %} diff --git a/src/authentic2/manager/templates/authentic2/manager/user_add.html b/src/authentic2/manager/templates/authentic2/manager/user_add.html index df1be0306..450bffc48 100644 --- a/src/authentic2/manager/templates/authentic2/manager/user_add.html +++ b/src/authentic2/manager/templates/authentic2/manager/user_add.html @@ -6,17 +6,17 @@ {% endblock %} {% block beforeform %} -{% if duplicate_users %} - -
-

{% trans "This user may already exist, please check the list below before creating it :" %}

-
    - {% for user in duplicate_users %} - {% include "authentic2/manager/duplicate_user_add.html" with user=user %} - {% endfor %} -
-
-{% endif %} + {% if duplicate_users %} + +
+

{% trans "This user may already exist, please check the list below before creating it :" %}

+
    + {% for user in duplicate_users %} + {% include "authentic2/manager/duplicate_user_add.html" with user=user %} + {% endfor %} +
+
+ {% endif %} {% endblock %} {% block hidden_inputs %} diff --git a/src/authentic2/manager/templates/authentic2/manager/user_authorizations.html b/src/authentic2/manager/templates/authentic2/manager/user_authorizations.html index 9f97102c2..8e588079f 100644 --- a/src/authentic2/manager/templates/authentic2/manager/user_authorizations.html +++ b/src/authentic2/manager/templates/authentic2/manager/user_authorizations.html @@ -4,26 +4,26 @@ {% block page-title %}{{ block.super }} - {% trans "Users" %}{% endblock %} {% block appbar %} -{{ block.super }} + {{ block.super }} {% endblock %} {% block breadcrumb %} -{{ block.super }} + {{ block.super }} {% trans 'Users' %} {% if multiple_ou and object.ou %} - {{ object.ou }} + {{ object.ou }} {% endif %} {{ object }} {% trans "Consent Management" context "manager" %} {% endblock %} {% block sidebar %} - + {% endblock %} {% block main %} -{% with row_link=0 %} -{% render_table table "authentic2/manager/user_authorizations_table.html" %} -{% endwith %} + {% with row_link=0 %} + {% render_table table "authentic2/manager/user_authorizations_table.html" %} + {% endwith %} {% endblock %} diff --git a/src/authentic2/manager/templates/authentic2/manager/user_authorizations_table.html b/src/authentic2/manager/templates/authentic2/manager/user_authorizations_table.html index 24d184738..15f9e08d4 100644 --- a/src/authentic2/manager/templates/authentic2/manager/user_authorizations_table.html +++ b/src/authentic2/manager/templates/authentic2/manager/user_authorizations_table.html @@ -3,16 +3,16 @@ {% load i18n %} {% block table.head.last.column %} - + {% endblock %} {% block table.tbody.last.column %} - - - - - + + + + + {% endblock %} diff --git a/src/authentic2/manager/templates/authentic2/manager/user_change_email.html b/src/authentic2/manager/templates/authentic2/manager/user_change_email.html index 0eec0f284..fda80ef88 100644 --- a/src/authentic2/manager/templates/authentic2/manager/user_change_email.html +++ b/src/authentic2/manager/templates/authentic2/manager/user_change_email.html @@ -3,7 +3,7 @@ {% block beforeform %}

- {% blocktrans %}User's email will not be changed immediately. First an email will be sent to this + {% blocktrans %}User's email will not be changed immediately. First an email will be sent to this new email address containing a link on which the user's will have to click to verify that it owns the email address, then it will be changed.{% endblocktrans %}

diff --git a/src/authentic2/manager/templates/authentic2/manager/user_common_roles.html b/src/authentic2/manager/templates/authentic2/manager/user_common_roles.html index f1078661a..80d520700 100644 --- a/src/authentic2/manager/templates/authentic2/manager/user_common_roles.html +++ b/src/authentic2/manager/templates/authentic2/manager/user_common_roles.html @@ -7,14 +7,14 @@ {{ block.super }} {% trans 'Users' %} {% if multiple_ou and object.ou %} - {{ object.ou }} + {{ object.ou }} {% endif %} {{ object }} {% trans "Roles" %} {% endblock %} {% block page_title %} -{% trans "Edit User Roles" %} + {% trans "Edit User Roles" %} {% endblock %} {% block sidebar %} diff --git a/src/authentic2/manager/templates/authentic2/manager/user_detail.html b/src/authentic2/manager/templates/authentic2/manager/user_detail.html index 400dccb9f..99c261df0 100644 --- a/src/authentic2/manager/templates/authentic2/manager/user_detail.html +++ b/src/authentic2/manager/templates/authentic2/manager/user_detail.html @@ -5,26 +5,26 @@ {% block appbar %}

{{ object }} - {% if not object.is_active %} - {% trans "disabled" %} - {% endif %} + {% if not object.is_active %} + {% trans "disabled" %} + {% endif %}

{% trans "Journal" %} - {% if view.can_change %} - {% trans "Edit" %} - {% else %} - {% trans "Edit" %} - {% endif %} + {% if view.can_change %} + {% trans "Edit" %} + {% else %} + {% trans "Edit" %} + {% endif %} @@ -51,74 +51,74 @@ {% endblock %} {% block sidebar %} - {% endblock %} diff --git a/src/authentic2/manager/templates/authentic2/manager/user_edit.html b/src/authentic2/manager/templates/authentic2/manager/user_edit.html index 2aba9dada..2daec4cf5 100644 --- a/src/authentic2/manager/templates/authentic2/manager/user_edit.html +++ b/src/authentic2/manager/templates/authentic2/manager/user_edit.html @@ -11,6 +11,6 @@ {% endblock %} {% block hidden_inputs %} - {{ block.super }} - {% if next %}{% endif %} + {{ block.super }} + {% if next %}{% endif %} {% endblock %} diff --git a/src/authentic2/manager/templates/authentic2/manager/user_export.html b/src/authentic2/manager/templates/authentic2/manager/user_export.html index 7cbf62001..f8103520d 100644 --- a/src/authentic2/manager/templates/authentic2/manager/user_export.html +++ b/src/authentic2/manager/templates/authentic2/manager/user_export.html @@ -4,7 +4,7 @@ {% block page-title %}{{ block.super }} - {% trans "User export" %}{% endblock %} {% block appbar %} -

Users export

+

Users export

{% endblock %} {% block breadcrumb %} @@ -14,32 +14,32 @@ {% endblock %} {% block main %} -
-
-

{% trans "Preparing CSV export file..." %}

- {% trans "Progress:" %} 0% +
+
+

{% trans "Preparing CSV export file..." %}

+ {% trans "Progress:" %} 0% +
+
+

{% trans "Export completed." %}

+

{% trans "Download CSV" %}

+
-
-

{% trans "Export completed." %}

-

{% trans "Download CSV" %}

-
-
- + $(document).ready(updateStatus); + {% endblock %} diff --git a/src/authentic2/manager/templates/authentic2/manager/user_import.html b/src/authentic2/manager/templates/authentic2/manager/user_import.html index 680aba4da..6eb58a19a 100644 --- a/src/authentic2/manager/templates/authentic2/manager/user_import.html +++ b/src/authentic2/manager/templates/authentic2/manager/user_import.html @@ -4,8 +4,8 @@ {% block page-title %}{{ block.super }} - {% trans "Import Users" %}{% endblock %} {% block css %} -{{ block.super }} - + {{ block.super }} + {% endblock %} {% block page_title %}{% trans "Users Import" %} - {{ user_import.created }} - {{ user_import.user }}{% endblock %} @@ -57,29 +57,29 @@ {% for report in reports %} - - {% include "authentic2/manager/user_import_report_row.html" %} - + + {% include "authentic2/manager/user_import_report_row.html" %} + {% endfor %} {% endblock %} diff --git a/src/authentic2/manager/templates/authentic2/manager/user_import_report.html b/src/authentic2/manager/templates/authentic2/manager/user_import_report.html index 04982a443..ead02cb32 100644 --- a/src/authentic2/manager/templates/authentic2/manager/user_import_report.html +++ b/src/authentic2/manager/templates/authentic2/manager/user_import_report.html @@ -4,8 +4,8 @@ {% block page-title %}{{ block.super }} - {% trans "Import Users" %}{% endblock %} {% block css %} -{{ block.super }} - + {{ block.super }} + {% endblock %} {% block page_title %}{{ report_title }} - {{ report.created }} - {{ report.state_display }}{% endblock %} @@ -60,19 +60,19 @@ {% if report.simulate %} -
- {% csrf_token %} -
- -
-
+
+ {% csrf_token %} +
+ +
+
{% endif %} {% endblock %} {% block main %} {% if report.exception %} -

{% trans "Exception:" %} {{ report.exception}}

+

{% trans "Exception:" %} {{ report.exception}}

{% endif %} {% if report.importer %} {% with importer=report.importer %} @@ -80,7 +80,7 @@

{% trans "Errors" %}

    {% for error in importer.errors %} -
  • {% firstof error.description error.code %}
  • +
  • {% firstof error.description error.code %}
  • {% endfor %}
{% endif %} @@ -91,7 +91,7 @@
  • {% blocktrans count updated=importer.updated %}{{ updated }} user updated{% plural %}{{ updated }} users updated{% endblocktrans %}
  • {% blocktrans count error_rows=importer.rows_with_errors %}{{ error_rows }} row has error{% plural %}{{ error_rows }} rows have errors{% endblocktrans %}
  • {% if importer.missing_roles %} -
  • {% trans "The following roles were missing:" %} {{ importer.missing_roles|join:", " }}
  • +
  • {% trans "The following roles were missing:" %} {{ importer.missing_roles|join:", " }}
  • {% endif %}
  • {% blocktrans with duration=report.duration %}import took {{ duration }}{% endblocktrans %}
  • @@ -99,23 +99,23 @@ {% if importer.rows %} - - - {% for header in importer.headers %} - + {% for header in importer.headers %} + - {% endfor %} - - + {% endif %} + > + {{ header.name }} + {% if header.flags %}
    {% endif %} + {% for flag in header.flags %} + + {% endfor %} + + {% endfor %} + + {% for row in importer.rows %} diff --git a/src/authentic2/manager/templates/authentic2/manager/user_imports.html b/src/authentic2/manager/templates/authentic2/manager/user_imports.html index e2b26c70d..c464a5c89 100644 --- a/src/authentic2/manager/templates/authentic2/manager/user_imports.html +++ b/src/authentic2/manager/templates/authentic2/manager/user_imports.html @@ -56,218 +56,218 @@

    {% trans "Help" %}

    -

    - {% blocktrans trimmed %} - The first line of your CSV file must be a header mapping columns to user's attributes identifier. - Each user attribute name can be followed by flags separated by spaces. - You can also import an external identifier to prevent creating duplicates when doing multiple import from the same source. - {% endblocktrans %} -

    -

    {% trans "Attributes" %}

    -
    {% trans "Line" %} + {% trans "Line" %} - {{ header.name }} - {% if header.flags %}
    {% endif %} - {% for flag in header.flags %} - - {% endfor %} -
    {% trans "Action" %}
    {% trans "Action" %}
    - - - - - - - - {% for column in help_columns %} +

    + {% blocktrans trimmed %} + The first line of your CSV file must be a header mapping columns to user's attributes identifier. + Each user attribute name can be followed by flags separated by spaces. + You can also import an external identifier to prevent creating duplicates when doing multiple import from the same source. + {% endblocktrans %} +

    +

    {% trans "Attributes" %}

    +
    {% trans "Label" %}{% trans "Identifier" %}
    + - - + + - {% endfor %} - -
    {{ column.label }}{{ column.name }}{% trans "Label" %}{% trans "Identifier" %}
    -

    {% trans "Flags" %}

    -

    {% blocktrans trimmed %}Each column can receive flags after its name, separated by spaces. Each modifier can be prefixed by no- to set its value to false.{% endblocktrans %}

    - - - - - - - - - - - - + {% for column in help_columns %} + + + + + {% endfor %} + +
    {% trans "Flag" %}{% trans "Meaning" %}{% trans "Default value" %}
    key - {% blocktrans trimmed %} - The column is an import key, it is used to match the row with an existing user. Only one column can be an import key. + +
    {{ column.label }}{{ column.name }}
    +

    {% trans "Flags" %}

    +

    {% blocktrans trimmed %}Each column can receive flags after its name, separated by spaces. Each modifier can be prefixed by no- to set its value to false.{% endblocktrans %}

    + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - + + + + + - - - - - - - -
    {% trans "Flag" %}{% trans "Meaning" %}{% trans "Default value" %}
    key + {% blocktrans trimmed %} + The column is an import key, it is used to match the row with an existing user. Only one column can be an import key. + {% endblocktrans %} + {% trans "False" %}
    create + {% blocktrans trimmed %} + Values will be used when creating a new user. + {% endblocktrans %} + {% trans "True" %}
    update + {% blocktrans trimmed %} + Values will be used when updating an existing user. + {% endblocktrans %} + {% trans "True" %}
    unique + {% blocktrans trimmed %} + Values must be unique in the target organizational unit. + {% endblocktrans %} + {% trans "False" %} {% blocktrans trimmed %} + (default is True for the email and username columns if they are configured to be unique in the target organizational unit) {% endblocktrans %} - {% trans "False" %}
    create - {% blocktrans trimmed %} - Values will be used when creating a new user. - {% endblocktrans %} - {% trans "True" %}
    update - {% blocktrans trimmed %} - Values will be used when updating an existing user. - {% endblocktrans %} - {% trans "True" %}
    unique - {% blocktrans trimmed %} - Values must be unique in the target organizational unit. - {% endblocktrans %} - {% trans "False" %} {% blocktrans trimmed %} - (default is True for the email and username columns if they are configured to be unique in the target organizational unit) - {% endblocktrans %} -
    globally-unique - {% blocktrans trimmed %} - Values must be unique among all users. - {% endblocktrans %} - {% trans "False" %} {% blocktrans trimmed %} - (default is True for the email and username columns if they are configured to be globally unique) +
    globally-unique + {% blocktrans trimmed %} + Values must be unique among all users. + {% endblocktrans %} + {% trans "False" %} {% blocktrans trimmed %} + (default is True for the email and username columns if they are configured to be globally unique) {% endblocktrans %}
    verified - {% blocktrans trimmed %} - Values are verified. User's attribute will be locked. - {% endblocktrans %} - {% trans "False" %} {% blocktrans %}(default is True for the email column){% endblocktrans %}
    + + + verified + + {% blocktrans trimmed %} + Values are verified. User's attribute will be locked. + {% endblocktrans %} + + {% trans "False" %} {% blocktrans %}(default is True for the email column){% endblocktrans %} + + + -

    {% trans "External identifier" %}

    -

    - {% blocktrans trimmed %} - You can also use two special columns _source_name and - _source_id. _source_name must be the name of the - source directory from which the users are exported, it must not - change between imports. _source_id is the unique identifier - from the source directory from which the users are extracted, it must - not change between imports and should never be reused for different - users. _source_id is automatically the key column, and you - cannot use another key column. - {% endblocktrans %} -

    -

    {% trans "Role operations" %}

    -

    - {% blocktrans trimmed %} - Adding existing roles to users is supported. Use either - _role_name or _role_slug special columns to - specify the names or the slugs that should be added to the user. In - order to add multiple roles, simply add a new line, identical to the - first one, except for the value of the role cell. These columns also - accept special flags, as listed below. - {% endblocktrans %} -

    - - - - - - - - - - - - - - - - - - - - -
    {% trans "Flag" %}{% trans "Meaning" %}{% trans "Default value" %}
    delete - {% blocktrans trimmed %} - Remove role from user instead of adding it. - {% endblocktrans %} - {% trans "False" %}
    clear - {% blocktrans trimmed %} - Clear user roles beforehand, so that they will have no more roles - than those specified in the import file. - {% endblocktrans %} - {% trans "False" %}
    -

    {% trans "Registration options" %}

    -

    - {% blocktrans trimmed %} - When a user is created by the import, they will have to use the "forgotten password" feature - in order to log in for the first time. An alternative is to use the special column - @registration with the value send-email. In this case, newly created - users will receive an email, inviting them to set their password. - {% endblocktrans %} -

    -

    {% trans "Force Password Reset" %}

    -

    - {% blocktrans trimmed %} - If you want to set a default password but make the user change it after next login, you can - add a @force-password-reset column in the CSV. A value of 'true' in this column will - ask the user to change password after the next login. - {% endblocktrans %} -

    -

    {% trans "Examples" %}

    -

    {% blocktrans trimmed %}Importing first and last name of users keyed by email{% endblocktrans %}

    -
    -
    "email key",first_name,last_name
    +      

    {% trans "External identifier" %}

    +

    + {% blocktrans trimmed %} + You can also use two special columns _source_name and + _source_id. _source_name must be the name of the + source directory from which the users are exported, it must not + change between imports. _source_id is the unique identifier + from the source directory from which the users are extracted, it must + not change between imports and should never be reused for different + users. _source_id is automatically the key column, and you + cannot use another key column. + {% endblocktrans %} +

    +

    {% trans "Role operations" %}

    +

    + {% blocktrans trimmed %} + Adding existing roles to users is supported. Use either + _role_name or _role_slug special columns to + specify the names or the slugs that should be added to the user. In + order to add multiple roles, simply add a new line, identical to the + first one, except for the value of the role cell. These columns also + accept special flags, as listed below. + {% endblocktrans %} +

    + + + + + + + + + + + + + + + + + + + + +
    {% trans "Flag" %}{% trans "Meaning" %}{% trans "Default value" %}
    delete + {% blocktrans trimmed %} + Remove role from user instead of adding it. + {% endblocktrans %} + {% trans "False" %}
    clear + {% blocktrans trimmed %} + Clear user roles beforehand, so that they will have no more roles + than those specified in the import file. + {% endblocktrans %} + {% trans "False" %}
    +

    {% trans "Registration options" %}

    +

    + {% blocktrans trimmed %} + When a user is created by the import, they will have to use the "forgotten password" feature + in order to log in for the first time. An alternative is to use the special column + @registration with the value send-email. In this case, newly created + users will receive an email, inviting them to set their password. + {% endblocktrans %} +

    +

    {% trans "Force Password Reset" %}

    +

    + {% blocktrans trimmed %} + If you want to set a default password but make the user change it after next login, you can + add a @force-password-reset column in the CSV. A value of 'true' in this column will + ask the user to change password after the next login. + {% endblocktrans %} +

    +

    {% trans "Examples" %}

    +

    {% blocktrans trimmed %}Importing first and last name of users keyed by email{% endblocktrans %}

    +
    +
    "email key",first_name,last_name
     john.doe@example.com,John,Doe
    -
    -
    -

    {% blocktrans trimmed %}Importing verified first and last name of users keyed by email{% endblocktrans %}

    -
    -
    "email key","first_name verified","last_name verified"
    +        
    +
    +

    {% blocktrans trimmed %}Importing verified first and last name of users keyed by email{% endblocktrans %}

    +
    +
    "email key","first_name verified","last_name verified"
     john.doe@example.com,John,Doe
    -
    -
    -

    {% blocktrans trimmed %}Importing email, family_reference, first and last name of users from application app1, ensuring family_reference is unique.{% endblocktrans %}

    -
    -
    _source_name,_source_id,email,"family_reference unique",first_name,last_name
    +        
    +
    +

    {% blocktrans trimmed %}Importing email, family_reference, first and last name of users from application app1, ensuring family_reference is unique.{% endblocktrans %}

    +
    +
    _source_name,_source_id,email,"family_reference unique",first_name,last_name
     app1,1,john.doe@example.com,1234,John,Doe
    -
    -
    -

    {% blocktrans trimmed %}Importing email, first and last name of users - while adding roles.{% endblocktrans %}

    -
    -
    email key,first_name,last_name,_role_name
    +        
    +
    +

    {% blocktrans trimmed %}Importing email, first and last name of users + while adding roles.{% endblocktrans %}

    +
    +
    email key,first_name,last_name,_role_name
     john.doe@example.com,John,Doe,Role1
     john.doe@example.com,John,Doe,Role2
    -
    -
    -

    {% blocktrans trimmed %}Importing email, first and last name of users - and sending a password reset email to John (only if the account is created - by the import).{% endblocktrans %}

    -
    -
    email key,first_name,last_name,@registration
    +        
    +
    +

    {% blocktrans trimmed %}Importing email, first and last name of users + and sending a password reset email to John (only if the account is created + by the import).{% endblocktrans %}

    +
    +
    email key,first_name,last_name,@registration
     john.doe@example.com,John,Doe,send-email
     jane.doe@example.com,Jane,Doe,
    -
    -
    -

    {% blocktrans trimmed %}Importing email, first and last name of users - and setting a password using hash in standard Django format. Forcing password change for Jane after next login.{% endblocktrans %}

    -
    -
    email key,first_name,last_name,password_hash,@force-password-reset
    +        
    +
    +

    {% blocktrans trimmed %}Importing email, first and last name of users + and setting a password using hash in standard Django format. Forcing password change for Jane after next login.{% endblocktrans %}

    +
    +
    email key,first_name,last_name,password_hash,@force-password-reset
     john.doe@example.com,John,Doe,pbkdf2_sha256$36000$oTHdVaoMjnCp$uTkpF7Ne6KV/L5gAerS7mngXM96DOEaLsLMZ251HJ/M=,
     jane.doe@example.com,Jane,Doe,pbkdf2_sha256$36000$oTHdVaoMjnCp$uTkpF7Ne6KV/L5gAerS7mngXM96DOEaLsLMZ251HJ/M=,true
    -
    -
    -
    + + +
    {% endblock %} diff --git a/src/authentic2/manager/templates/authentic2/manager/user_journal.html b/src/authentic2/manager/templates/authentic2/manager/user_journal.html index e6c26610f..0e168e9db 100644 --- a/src/authentic2/manager/templates/authentic2/manager/user_journal.html +++ b/src/authentic2/manager/templates/authentic2/manager/user_journal.html @@ -4,7 +4,7 @@ {% block breadcrumb-before-title %} {% trans 'Users' %} {% if multiple_ou and object.ou %} - {{ object.ou }} + {{ object.ou }} {% endif %} {{ object }} {% endblock %} diff --git a/src/authentic2/manager/templates/authentic2/manager/user_ou_roles.html b/src/authentic2/manager/templates/authentic2/manager/user_ou_roles.html index f73d20d21..0e3b9f1d5 100644 --- a/src/authentic2/manager/templates/authentic2/manager/user_ou_roles.html +++ b/src/authentic2/manager/templates/authentic2/manager/user_ou_roles.html @@ -7,7 +7,7 @@ {% endblock %} {% block main %} - {% with row_link=0 %} - {% render_table table "authentic2/manager/table.html" %} - {% endwith %} + {% with row_link=0 %} + {% render_table table "authentic2/manager/table.html" %} + {% endwith %} {% endblock %} diff --git a/src/authentic2/manager/templates/authentic2/manager/user_roles.html b/src/authentic2/manager/templates/authentic2/manager/user_roles.html index ae8c7e146..17bad6c1f 100644 --- a/src/authentic2/manager/templates/authentic2/manager/user_roles.html +++ b/src/authentic2/manager/templates/authentic2/manager/user_roles.html @@ -4,24 +4,24 @@ {% block extrascripts %} {{ block.super }} {% endblock %} {% block main %} - {% with row_link=1 %} - {% render_table table "authentic2/manager/user_roles_table.html" %} - {% endwith %} + {% with row_link=1 %} + {% render_table table "authentic2/manager/user_roles_table.html" %} + {% endwith %} - {% if view.can_change %} -
    - {% csrf_token %} - {{ form }} - -
    - {% endif %} + {% if view.can_change %} +
    + {% csrf_token %} + {{ form }} + +
    + {% endif %} {% endblock %} diff --git a/src/authentic2/manager/templates/authentic2/manager/user_roles_table.html b/src/authentic2/manager/templates/authentic2/manager/user_roles_table.html index b090aeeea..6925a3e37 100644 --- a/src/authentic2/manager/templates/authentic2/manager/user_roles_table.html +++ b/src/authentic2/manager/templates/authentic2/manager/user_roles_table.html @@ -2,13 +2,13 @@ {% load i18n %} - {% block table.head.last.column %} - - {% endblock %} - {% block table.tbody.last.column %} +{% block table.head.last.column %} + +{% endblock %} +{% block table.tbody.last.column %} {% if table.context.view.can_change and row.record.member %} {% endif %} - {% endblock %} +{% endblock %} diff --git a/src/authentic2/manager/templates/authentic2/manager/user_su.html b/src/authentic2/manager/templates/authentic2/manager/user_su.html index 8c2889808..641df02b2 100644 --- a/src/authentic2/manager/templates/authentic2/manager/user_su.html +++ b/src/authentic2/manager/templates/authentic2/manager/user_su.html @@ -2,18 +2,18 @@ {% load i18n %} {% block content %} -
    +

    {% blocktrans trimmed %} - To switch to user {{ user }}, open the following link in a private window - (it expires after {{ duration }} seconds). + To switch to user {{ user }}, open the following link in a private window + (it expires after {{ duration }} seconds). {% endblocktrans %}

    - {{ su_url }} + {{ su_url }}

    -
    + {% endblock %} diff --git a/src/authentic2/manager/templates/authentic2/manager/users.html b/src/authentic2/manager/templates/authentic2/manager/users.html index 4bba0eae7..d104308a1 100644 --- a/src/authentic2/manager/templates/authentic2/manager/users.html +++ b/src/authentic2/manager/templates/authentic2/manager/users.html @@ -8,22 +8,22 @@ {% if view.can_add %} - - {% trans "Add user" %} - - {% else %} - {% trans "Add user" %} - {% endif %} - {% if extra_actions %} - - {% endif %} + {% trans "Add user" %} + + {% else %} + {% trans "Add user" %} + {% endif %} + {% if extra_actions %} + + {% endif %} {% endblock %} diff --git a/src/authentic2/saml/templates/admin/saml/libertyprovider/add_from_url.html b/src/authentic2/saml/templates/admin/saml/libertyprovider/add_from_url.html index 1bfdfff06..bd152c856 100644 --- a/src/authentic2/saml/templates/admin/saml/libertyprovider/add_from_url.html +++ b/src/authentic2/saml/templates/admin/saml/libertyprovider/add_from_url.html @@ -2,9 +2,9 @@ {% load i18n admin_modify static admin_urls %} {% block extrahead %}{{ block.super }} -{% url 'admin:jsi18n' as jsi18nurl %} - -{{ media }} + {% url 'admin:jsi18n' as jsi18nurl %} + + {{ media }} {% endblock %} {% block extrastyle %}{{ block.super }}{% endblock %} @@ -14,31 +14,31 @@ {% block bodyclass %}{{ opts.app_label }}-{{ opts.object_name.lower }} change-form{% endblock %} {% block breadcrumbs %}{% if not is_popup %} - + {% endif %}{% endblock %} {% block content %}
    -
    {% csrf_token %} -
    -{% if errors %} -

    - {% blocktrans count errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %} -

    - {{ adminform.form.non_field_errors }} -{% endif %} - - {{ form.as_table }} -
    - + {% csrf_token %} +
    + {% if errors %} +

    + {% blocktrans count errors|length as counter %}Please correct the error below.{% plural %}Please correct the errors below.{% endblocktrans %} +

    + {{ adminform.form.non_field_errors }} + {% endif %} + + {{ form.as_table }} +
    + -
    -
    +
    +
    {% endblock %} diff --git a/src/authentic2/saml/templates/saml/post_form.html b/src/authentic2/saml/templates/saml/post_form.html index 250abd291..4a2008023 100644 --- a/src/authentic2/saml/templates/saml/post_form.html +++ b/src/authentic2/saml/templates/saml/post_form.html @@ -6,23 +6,23 @@ {% endblock %} {% block content %} -
    -

    {{ title }}

    -
    -

    {% trans "You should be automatically redirected." %}

    -

    {% trans "If this page is still visible after a few seconds, press the Send button below." %}

    - - {% if relay_state %} - - {% endif %} - -
    -
    - +
    +

    {{ title }}

    +
    +

    {% trans "You should be automatically redirected." %}

    +

    {% trans "If this page is still visible after a few seconds, press the Send button below." %}

    + + {% if relay_state %} + + {% endif %} + +
    +
    + {% endblock %} diff --git a/src/authentic2/templates/404.html b/src/authentic2/templates/404.html index ae0519e1b..bc19ca949 100644 --- a/src/authentic2/templates/404.html +++ b/src/authentic2/templates/404.html @@ -5,8 +5,8 @@ {% block content %} -

    {% trans "Error: page not found" %}

    +

    {% trans "Error: page not found" %}

    -

    {% trans "The page you requested has not been found on this server." %} +

    {% trans "The page you requested has not been found on this server." %} {% endblock %} diff --git a/src/authentic2/templates/admin/base_site.html b/src/authentic2/templates/admin/base_site.html index 0b0fc60cd..6ca91f3f7 100644 --- a/src/authentic2/templates/admin/base_site.html +++ b/src/authentic2/templates/admin/base_site.html @@ -4,7 +4,7 @@ {% block title %}{{ title }} | {% trans 'Authentic site admin' %}{% endblock %} {% block branding %} -

    {% trans 'Authentic administration' %}

    +

    {% trans 'Authentic administration' %}

    {% endblock %} {% block nav-global %}{% endblock %} diff --git a/src/authentic2/templates/admin/log_view.html b/src/authentic2/templates/admin/log_view.html index c7a58a058..9d7a460e4 100644 --- a/src/authentic2/templates/admin/log_view.html +++ b/src/authentic2/templates/admin/log_view.html @@ -7,39 +7,39 @@ {% block content %} -

    {% trans "Logs page" %}

    +

    {% trans "Logs page" %}

    -{% if not file %} -

    There is no log for the moment.

    -{% else %} -{% for log in logs.object_list %} - {% if "CRITICAL" in log %} + {% if not file %} +

    There is no log for the moment.

    + {% else %} + {% for log in logs.object_list %} + {% if "CRITICAL" in log %}

    {{ log }}

    - {% else %} + {% else %} {% if "ERROR" in log %} -

    {{ log }}

    +

    {{ log }}

    {% else %} -

    {{ log }}

    +

    {{ log }}

    {% endif %} - {% endif %} -{% endfor %} + {% endif %} + {% endfor %} - + {% endif %} {% endblock %} diff --git a/src/authentic2/templates/authentic2/account_delete_notification_body.html b/src/authentic2/templates/authentic2/account_delete_notification_body.html index 5db9ec8bc..6d0649665 100644 --- a/src/authentic2/templates/authentic2/account_delete_notification_body.html +++ b/src/authentic2/templates/authentic2/account_delete_notification_body.html @@ -1,13 +1,13 @@ {% load i18n %} -

    {% blocktrans %}{{ full_name }},{% endblocktrans %}

    -

    -{% blocktrans %} -Your account on {{ site }} has been deleted. -All related data will be deleted today. -You cannot log in with it anymore. -{% endblocktrans %} -

    +

    {% blocktrans %}{{ full_name }},{% endblocktrans %}

    +

    + {% blocktrans %} + Your account on {{ site }} has been deleted. + All related data will be deleted today. + You cannot log in with it anymore. + {% endblocktrans %} +

    diff --git a/src/authentic2/templates/authentic2/account_deletion_code_body.html b/src/authentic2/templates/authentic2/account_deletion_code_body.html index d5b526d85..c2ee2a94b 100644 --- a/src/authentic2/templates/authentic2/account_deletion_code_body.html +++ b/src/authentic2/templates/authentic2/account_deletion_code_body.html @@ -1,15 +1,15 @@ {% load i18n %} -

    {% blocktrans %}{{ full_name }},{% endblocktrans %}

    -

    -{% blocktrans %} -Please click on {{ deletion_url }} -if you want to validate your account deletion request on -{{ site }}. -If so, all related data will be deleted in the next few hours. -You won't be able to log in with this account anymore. -{% endblocktrans %} -

    +

    {% blocktrans %}{{ full_name }},{% endblocktrans %}

    +

    + {% blocktrans %} + Please click on {{ deletion_url }} + if you want to validate your account deletion request on + {{ site }}. + If so, all related data will be deleted in the next few hours. + You won't be able to log in with this account anymore. + {% endblocktrans %} +

    diff --git a/src/authentic2/templates/authentic2/accounts_delete_request.html b/src/authentic2/templates/authentic2/accounts_delete_request.html index 705d9855c..70f349276 100644 --- a/src/authentic2/templates/authentic2/accounts_delete_request.html +++ b/src/authentic2/templates/authentic2/accounts_delete_request.html @@ -13,24 +13,24 @@ {% block content %} -
    - {% csrf_token %} -

    - {% blocktrans trimmed %} - Do you really want to delete your account? - {% endblocktrans %} -

    - {% if user.email_verified %} -

    - {% blocktrans trimmed %} - A validation message will be sent to {{ email }}. You will have to visit the - link in this email in order to complete the deletion process. - {% endblocktrans %} -

    - {% endif %} -
    - - -
    -
    +
    + {% csrf_token %} +

    + {% blocktrans trimmed %} + Do you really want to delete your account? + {% endblocktrans %} +

    + {% if user.email_verified %} +

    + {% blocktrans trimmed %} + A validation message will be sent to {{ email }}. You will have to visit the + link in this email in order to complete the deletion process. + {% endblocktrans %} +

    + {% endif %} +
    + + +
    +
    {% endblock %} diff --git a/src/authentic2/templates/authentic2/accounts_delete_validation.html b/src/authentic2/templates/authentic2/accounts_delete_validation.html index baa898c78..cf750256c 100644 --- a/src/authentic2/templates/authentic2/accounts_delete_validation.html +++ b/src/authentic2/templates/authentic2/accounts_delete_validation.html @@ -13,15 +13,15 @@ {% block content %} -
    - {% csrf_token %} -

    - {% blocktrans %} - You are about to delete the account of {{ user }}. - This will remove all related personal data and you won't be able to log in with this account anymore. - {% endblocktrans %} -

    - - -
    +
    + {% csrf_token %} +

    + {% blocktrans %} + You are about to delete the account of {{ user }}. + This will remove all related personal data and you won't be able to log in with this account anymore. + {% endblocktrans %} +

    + + +
    {% endblock %} diff --git a/src/authentic2/templates/authentic2/accounts_edit.html b/src/authentic2/templates/authentic2/accounts_edit.html index ff0bfb313..29346b422 100644 --- a/src/authentic2/templates/authentic2/accounts_edit.html +++ b/src/authentic2/templates/authentic2/accounts_edit.html @@ -17,12 +17,12 @@ {% csrf_token %} {{ form|with_template }}
    - {% if form.instance and form.instance.id %} - - - {% else %} - - {% endif %} + {% if form.instance and form.instance.id %} + + + {% else %} + + {% endif %}
    {% endblock %} diff --git a/src/authentic2/templates/authentic2/accounts_edit_required.html b/src/authentic2/templates/authentic2/accounts_edit_required.html index 597523d8a..24784a83a 100644 --- a/src/authentic2/templates/authentic2/accounts_edit_required.html +++ b/src/authentic2/templates/authentic2/accounts_edit_required.html @@ -2,9 +2,9 @@ {% load i18n %} {% block content %} -{% block required-attributes-message %} -
    {% trans "The following informations are required if you want to use this service:"%} {% for attribute in view.missing_attributes %}{{ attribute.label }}{% if not forloop.last %}, {% endif %}{% endfor %} -
    -{% endblock %} -{{ block.super }} + {% block required-attributes-message %} +
    {% trans "The following informations are required if you want to use this service:"%} {% for attribute in view.missing_attributes %}{{ attribute.label }}{% if not forloop.last %}, {% endif %}{% endfor %} +
    + {% endblock %} + {{ block.super }} {% endblock %} diff --git a/src/authentic2/templates/authentic2/change_email.html b/src/authentic2/templates/authentic2/change_email.html index 8904c0dd3..c9199beeb 100644 --- a/src/authentic2/templates/authentic2/change_email.html +++ b/src/authentic2/templates/authentic2/change_email.html @@ -6,20 +6,20 @@ {% endblock %} {% block breadcrumb %} - {{ block.super }} - {% trans "Your account" %} - {{ view.title }} + {{ block.super }} + {% trans "Your account" %} + {{ view.title }} {% endblock %} {% block content %}

    {% blocktrans with email=user.email %}Your current email is {{ email }}. - An email will be sent to validate the new one.{% endblocktrans %}

    + An email will be sent to validate the new one.{% endblocktrans %}

    {% csrf_token %} {{ form|with_template }}
    - - + +
    {% endblock %} diff --git a/src/authentic2/templates/authentic2/consents.html b/src/authentic2/templates/authentic2/consents.html index 1f56cfb0d..c7db9ecd2 100644 --- a/src/authentic2/templates/authentic2/consents.html +++ b/src/authentic2/templates/authentic2/consents.html @@ -2,60 +2,60 @@ {% load i18n %} {% block page-title %} -{{ block.super }} - {{ view.title }} + {{ block.super }} - {{ view.title }} {% endblock %} {% block breadcrumb %} -{{ block.super }} -{% trans "Your account" %} -{{ view.title }} + {{ block.super }} + {% trans "Your account" %} + {{ view.title }} {% endblock %} {% block content %} -{% block consents-pre %}{% endblock %} -
    - {% block consents-top %} -

    - {% if consents|length_is:0 %} - {% trans "You have not given any authorization to access your account profile data." %} - {% else %} - {% trans "You have given authorizations to access your account profile data." %} - {% endif %} -

    - {% endblock %} -
      - {% for auth in consents %} -
    • -
      - {% csrf_token %} - {% block consent %} -
      - {% block consent-top %}{% endblock %} - - {{ auth.client }} - - - - {% trans "Allowed since:" %} - {{ auth.created }} - - / - - {% trans "Expire on:" %} - {{ auth.expired }} - - -
      -
      - -
      - {% block consent-bottom %}{% endblock %} - {% endblock %} -
      -
    • - {% endfor %} -
    - {% block consents-bottom %}{% endblock %} -
    -{% block consents-post %}{% endblock %} + {% block consents-pre %}{% endblock %} +
    + {% block consents-top %} +

    + {% if consents|length_is:0 %} + {% trans "You have not given any authorization to access your account profile data." %} + {% else %} + {% trans "You have given authorizations to access your account profile data." %} + {% endif %} +

    + {% endblock %} +
      + {% for auth in consents %} +
    • +
      + {% csrf_token %} + {% block consent %} +
      + {% block consent-top %}{% endblock %} + + {{ auth.client }} + + + + {% trans "Allowed since:" %} + {{ auth.created }} + + / + + {% trans "Expire on:" %} + {{ auth.expired }} + + +
      +
      + +
      + {% block consent-bottom %}{% endblock %} + {% endblock %} +
      +
    • + {% endfor %} +
    + {% block consents-bottom %}{% endblock %} +
    + {% block consents-post %}{% endblock %} {% endblock %} diff --git a/src/authentic2/templates/authentic2/display_message_and_continue.html b/src/authentic2/templates/authentic2/display_message_and_continue.html index 958e719f0..2a94e14d3 100644 --- a/src/authentic2/templates/authentic2/display_message_and_continue.html +++ b/src/authentic2/templates/authentic2/display_message_and_continue.html @@ -7,21 +7,21 @@
    {% if only_info %} {% endif %} {% endblock %} diff --git a/src/authentic2/templates/authentic2/homepage.html b/src/authentic2/templates/authentic2/homepage.html index e4c89a447..3eeaf2d88 100644 --- a/src/authentic2/templates/authentic2/homepage.html +++ b/src/authentic2/templates/authentic2/homepage.html @@ -14,32 +14,32 @@ {% block content %} {% if authorized_services %}
    -

    {% trans "Services" %}

    -
      - {% for service in authorized_services %} - {% if service.actions %} -
    • {% if service.url %}{% endif %}{{ service.name }}{% if service.url %}{% endif %} -
      - {% for action in service.actions %} - {% if action.0 == "template" %} - {% include action.1 %} - {% else %} -
      - {% if action.3 %} - {% for key, value in action.3 %} - - {% endfor %} +

      {% trans "Services" %}

      +
        + {% for service in authorized_services %} + {% if service.actions %} +
      • {% if service.url %}{% endif %}{{ service.name }}{% if service.url %}{% endif %} +
        + {% for action in service.actions %} + {% if action.0 == "template" %} + {% include action.1 %} + {% else %} + + {% if action.3 %} + {% for key, value in action.3 %} + + {% endfor %} + {% endif %} + + + + {% endif %} + {% endfor %} +
        +
      • {% endif %} - - - - {% endif %} - {% endfor %} -
      -
    • - {% endif %} - {% endfor %} -
    + {% endfor %} +
    {% endif %} {% endblock %} diff --git a/src/authentic2/templates/authentic2/login.html b/src/authentic2/templates/authentic2/login.html index f6000e61a..1980626fd 100644 --- a/src/authentic2/templates/authentic2/login.html +++ b/src/authentic2/templates/authentic2/login.html @@ -10,24 +10,24 @@ {% block breadcrumb %}{% endblock %} {% block css %} -{{ block.super }} - + {{ block.super }} + {% endblock %} {% block content %} -{% include "authentic2/service_info_fragment.html" %} + {% include "authentic2/service_info_fragment.html" %}
    {% for id, login_block in blocks.items %} - + {% endfor %} {% if blocks|length != 1 %} {% for id, login_block in blocks.items %} - + {% endfor %} {% endif %} diff --git a/src/authentic2/templates/authentic2/login_password_form.html b/src/authentic2/templates/authentic2/login_password_form.html index 17843418b..cf406dc3e 100644 --- a/src/authentic2/templates/authentic2/login_password_form.html +++ b/src/authentic2/templates/authentic2/login_password_form.html @@ -2,41 +2,41 @@ {% block login %} -{% block form %} -{% if authenticator.button_description %} -

    {{ authenticator.button_description }}

    -{% endif %} + {% block form %} + {% if authenticator.button_description %} +

    {{ authenticator.button_description }}

    + {% endif %} -
    -
    -{% csrf_token %} -{{ form|with_template }} -{% block buttons %} -
    - -{% if cancel %} - -{% endif %} -
    -{% endblock %} -
    -{{ form.media }} -
    -{% endblock %} +
    +
    + {% csrf_token %} + {{ form|with_template }} + {% block buttons %} +
    + + {% if cancel %} + + {% endif %} +
    + {% endblock %} +
    + {{ form.media }} +
    + {% endblock %} -{% block actions %} -{% if can_reset_password or registration_authorized %} - -{% endif %} -{% endblock %} + {% block actions %} + {% if can_reset_password or registration_authorized %} + + {% endif %} + {% endblock %} {% endblock %} diff --git a/src/authentic2/templates/authentic2/login_password_profile.html b/src/authentic2/templates/authentic2/login_password_profile.html index 8b359bae7..eecc96c51 100644 --- a/src/authentic2/templates/authentic2/login_password_profile.html +++ b/src/authentic2/templates/authentic2/login_password_profile.html @@ -1,17 +1,17 @@ {% load i18n %} {% if can_change_password %} -

    {% trans "Password" %}

    +

    {% trans "Password" %}

    -
    -

    - - {% if has_usable_password %} - {% trans "Change your password" %} - {% else %} - {% trans "Set your password" %} - {% endif %} - -

    -
    +
    +

    + + {% if has_usable_password %} + {% trans "Change your password" %} + {% else %} + {% trans "Set your password" %} + {% endif %} + +

    +
    {% endif %} diff --git a/src/authentic2/templates/authentic2/login_password_registration_form.html b/src/authentic2/templates/authentic2/login_password_registration_form.html index 003b87d11..108df7f49 100644 --- a/src/authentic2/templates/authentic2/login_password_registration_form.html +++ b/src/authentic2/templates/authentic2/login_password_registration_form.html @@ -1,11 +1,11 @@ {% load i18n gadjo %} {% block registration %} -
    - {% csrf_token %} - {{ form|with_template }} -
    - -
    -
    +
    + {% csrf_token %} + {{ form|with_template }} +
    + +
    +
    {% endblock %} diff --git a/src/authentic2/templates/authentic2/logout.html b/src/authentic2/templates/authentic2/logout.html index 2ca5dae48..88b0e6124 100644 --- a/src/authentic2/templates/authentic2/logout.html +++ b/src/authentic2/templates/authentic2/logout.html @@ -24,9 +24,9 @@ {% block content %}

    {% trans message %}

      - {% for fragment in logout_list %} - {{ fragment|safe }} - {% endfor %} + {% for fragment in logout_list %} + {{ fragment|safe }} + {% endfor %}