Implementation translation realms

This commit is contained in:
Götz 2019-05-18 02:32:21 +02:00
parent 6ecc2be7d7
commit 93fb17877c
12 changed files with 437 additions and 158 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-05-17 22:54+0000\n" "POT-Creation-Date: 2019-05-18 00:28+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -55,7 +55,7 @@ msgstr ""
msgid "DjangoAdminArea" msgid "DjangoAdminArea"
msgstr "" msgstr ""
#: templates/base_admin.jinja2:14 #: templates/base_admin.jinja2:14 templates/realm/realm_home.jinja2:6
msgid "Realms" msgid "Realms"
msgstr "" msgstr ""
@ -63,7 +63,7 @@ msgstr ""
msgid "RealmOverview" msgid "RealmOverview"
msgstr "" msgstr ""
#: templates/base_admin.jinja2:27 #: templates/base_admin.jinja2:27 templates/realm/realm_detailed.jinja2:5
msgid "Realm" msgid "Realm"
msgstr "" msgstr ""
@ -71,18 +71,87 @@ msgstr ""
msgid "RealmInformation" msgid "RealmInformation"
msgstr "" msgstr ""
#: templates/base_admin.jinja2:34 #: templates/base_admin.jinja2:34 templates/realm/realm_user.jinja2:5
msgid "User" msgid "User"
msgstr "" msgstr ""
#: templates/base_admin.jinja2:37 #: templates/base_admin.jinja2:37 templates/realm/realm_groups.jinja2:4
msgid "Groups" msgid "Groups"
msgstr "" msgstr ""
#: templates/base_admin.jinja2:46 #: templates/base_admin.jinja2:46 templates/realm/realm_home.jinja2:11
msgid "RealmAdd" msgid "RealmAdd"
msgstr "" msgstr ""
#: templates/macros/form_macros.jinja2:309
#: templates/macros/utils_macros.jinja2:33
msgid "Username"
msgstr ""
#: templates/macros/form_macros.jinja2:310
#: templates/macros/utils_macros.jinja2:34
#: templates/realm/realm_detailed.jinja2:28
msgid "Email"
msgstr ""
#: templates/macros/form_macros.jinja2:311
#: templates/macros/utils_macros.jinja2:35
msgid "FirstName"
msgstr ""
#: templates/macros/form_macros.jinja2:312
#: templates/macros/utils_macros.jinja2:36
msgid "LastName"
msgstr ""
#: templates/macros/form_macros.jinja2:314
#: templates/macros/utils_macros.jinja2:38
msgid "LastLogin"
msgstr ""
#: templates/macros/utils_macros.jinja2:28
#: templates/macros/utils_macros.jinja2:77
#: templates/realm/realm_user_multiple_delete.jinja2:26
#: templates/realm/realm_user_multiple_delete_confirm.jinja2:11
msgid "Search"
msgstr ""
#: templates/macros/utils_macros.jinja2:37
msgid "Active"
msgstr ""
#: templates/macros/utils_macros.jinja2:39
msgid "DeletionDate"
msgstr ""
#: templates/macros/utils_macros.jinja2:82
msgid "RealmName"
msgstr ""
#: templates/macros/utils_macros.jinja2:83
msgid "LdapBaseDN"
msgstr ""
#: templates/macros/utils_macros.jinja2:84
msgid "MailAddress"
msgstr ""
#: templates/macros/utils_macros.jinja2:85
msgid "AdminGroup"
msgstr ""
#: templates/macros/utils_macros.jinja2:86
msgid "DefaultGroup"
msgstr ""
#: templates/macros/utils_macros.jinja2:87
msgid "UserCount"
msgstr ""
#: templates/macros/utils_macros.jinja2:88
msgid "GroupCount"
msgstr ""
#. Translators: Is the Headline of the create new realm view #. Translators: Is the Headline of the create new realm view
#: templates/realm/realm_add.jinja2:10 #: templates/realm/realm_add.jinja2:10
msgid "CreateNewRealm" msgid "CreateNewRealm"
@ -118,6 +187,91 @@ msgstr ""
msgid "RealmDeleteAgree" msgid "RealmDeleteAgree"
msgstr "" msgstr ""
#: templates/realm/realm_detailed.jinja2:10
msgid "RealmDetailRemoveRealm"
msgstr ""
#: templates/realm/realm_detailed.jinja2:19
msgid "RealmDetailLdapOU"
msgstr ""
#: templates/realm/realm_detailed.jinja2:20
msgid "RealmDetailUserCount"
msgstr ""
#: templates/realm/realm_detailed.jinja2:25
msgid "RealmDetailRemoveInactiveUser"
msgstr ""
#: templates/realm/realm_detailed.jinja2:30
#: templates/realm/realm_detailed.jinja2:37
#: templates/realm/realm_detailed.jinja2:45
msgid "RealmDetailStillPending"
msgstr ""
#: templates/realm/realm_detailed.jinja2:32
msgid "RealmDetailAdminGroup"
msgstr ""
#: templates/realm/realm_detailed.jinja2:40
msgid "RealmDetailDefaultGroup"
msgstr ""
#: templates/realm/realm_detailed.jinja2:52
msgid "RealmDetailChangeRealmInfo"
msgstr ""
#: templates/realm/realm_detailed.jinja2:56
msgid "RealmDetailTestMail"
msgstr ""
#: templates/realm/realm_groups.jinja2:8
msgid "Name"
msgstr ""
#: templates/realm/realm_groups.jinja2:9
msgid "Description"
msgstr ""
#: templates/realm/realm_groups.jinja2:10
msgid "MemberCount"
msgstr ""
#: templates/realm/realm_groups.jinja2:31
msgid "AddGroups"
msgstr ""
#: templates/realm/realm_update.jinja2:14
msgid "Save"
msgstr ""
#: templates/realm/realm_update.jinja2:16
#: templates/realm/realm_user_multiple_delete.jinja2:34
#: templates/realm/realm_user_multiple_delete_confirm.jinja2:19
msgid "Cancel"
msgstr ""
#: templates/realm/realm_user.jinja2:8
msgid "AddUser"
msgstr ""
#: templates/realm/realm_user.jinja2:10
msgid "RemoveMultipleUser"
msgstr ""
#: templates/realm/realm_user_multiple_delete.jinja2:6
msgid "DeleteUser"
msgstr ""
#: templates/realm/realm_user_multiple_delete.jinja2:10
msgid "MultipleUserDeleteError"
msgstr ""
#: templates/realm/realm_user_multiple_delete.jinja2:32
#: templates/realm/realm_user_multiple_delete_confirm.jinja2:17
msgid "Execute"
msgstr ""
#: templates/user/realm_user_detail.jinja2:22 #: templates/user/realm_user_detail.jinja2:22
msgid "Anzeigename:" msgid "Anzeigename:"
msgstr "" msgstr ""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-05-17 22:48+0000\n" "POT-Creation-Date: 2019-05-18 00:28+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"
@ -28,7 +28,7 @@ msgstr ""
msgid "English" msgid "English"
msgstr "" msgstr ""
#: core/docker_settings.py:197 #: core/docker_settings.py:197 core/docker_settings.py:198
msgid "Deutsch" msgid "Deutsch"
msgstr "" msgstr ""
@ -56,7 +56,7 @@ msgstr "Über"
msgid "DjangoAdminArea" msgid "DjangoAdminArea"
msgstr "Django Adminbereich" msgstr "Django Adminbereich"
#: templates/base_admin.jinja2:14 #: templates/base_admin.jinja2:14 templates/realm/realm_home.jinja2:6
msgid "Realms" msgid "Realms"
msgstr "Bereiche" msgstr "Bereiche"
@ -64,7 +64,7 @@ msgstr "Bereiche"
msgid "RealmOverview" msgid "RealmOverview"
msgstr "Bereichsübersicht" msgstr "Bereichsübersicht"
#: templates/base_admin.jinja2:27 #: templates/base_admin.jinja2:27 templates/realm/realm_detailed.jinja2:5
msgid "Realm" msgid "Realm"
msgstr "Bereich" msgstr "Bereich"
@ -72,18 +72,87 @@ msgstr "Bereich"
msgid "RealmInformation" msgid "RealmInformation"
msgstr "Bereichsinformationen" msgstr "Bereichsinformationen"
#: templates/base_admin.jinja2:34 #: templates/base_admin.jinja2:34 templates/realm/realm_user.jinja2:5
msgid "User" msgid "User"
msgstr "Nutzer" msgstr "Nutzer"
#: templates/base_admin.jinja2:37 #: templates/base_admin.jinja2:37 templates/realm/realm_groups.jinja2:4
msgid "Groups" msgid "Groups"
msgstr "Gruppen" msgstr "Gruppen"
#: templates/base_admin.jinja2:46 #: templates/base_admin.jinja2:46 templates/realm/realm_home.jinja2:11
msgid "RealmAdd" msgid "RealmAdd"
msgstr "Bereich hinzufügen" msgstr "Bereich hinzufügen"
#: templates/macros/form_macros.jinja2:309
#: templates/macros/utils_macros.jinja2:33
msgid "Username"
msgstr "Nutzername"
#: templates/macros/form_macros.jinja2:310
#: templates/macros/utils_macros.jinja2:34
#: templates/realm/realm_detailed.jinja2:28
msgid "Email"
msgstr "E-Mail"
#: templates/macros/form_macros.jinja2:311
#: templates/macros/utils_macros.jinja2:35
msgid "FirstName"
msgstr "Vorname"
#: templates/macros/form_macros.jinja2:312
#: templates/macros/utils_macros.jinja2:36
msgid "LastName"
msgstr "Nachname"
#: templates/macros/form_macros.jinja2:314
#: templates/macros/utils_macros.jinja2:38
msgid "LastLogin"
msgstr "Letzter Login"
#: templates/macros/utils_macros.jinja2:28
#: templates/macros/utils_macros.jinja2:77
#: templates/realm/realm_user_multiple_delete.jinja2:26
#: templates/realm/realm_user_multiple_delete_confirm.jinja2:11
msgid "Search"
msgstr "Suche"
#: templates/macros/utils_macros.jinja2:37
msgid "Active"
msgstr "Aktiv"
#: templates/macros/utils_macros.jinja2:39
msgid "DeletionDate"
msgstr "Löschdatum"
#: templates/macros/utils_macros.jinja2:82
msgid "RealmName"
msgstr "Bereichsname"
#: templates/macros/utils_macros.jinja2:83
msgid "LdapBaseDN"
msgstr "Ldap Basis DN"
#: templates/macros/utils_macros.jinja2:84
msgid "MailAddress"
msgstr "Mailadresse"
#: templates/macros/utils_macros.jinja2:85
msgid "AdminGroup"
msgstr "Admingruppe"
#: templates/macros/utils_macros.jinja2:86
msgid "DefaultGroup"
msgstr "Defaultgruppe"
#: templates/macros/utils_macros.jinja2:87
msgid "UserCount"
msgstr "Nutzeranzahl"
#: templates/macros/utils_macros.jinja2:88
msgid "GroupCount"
msgstr "Gruppenanzahl"
#. Translators: Is the Headline of the create new realm view #. Translators: Is the Headline of the create new realm view
#: templates/realm/realm_add.jinja2:10 #: templates/realm/realm_add.jinja2:10
msgid "CreateNewRealm" msgid "CreateNewRealm"
@ -119,20 +188,108 @@ msgstr "Abbrechen"
msgid "RealmDeleteAgree" msgid "RealmDeleteAgree"
msgstr "Bereich löschen" msgstr "Bereich löschen"
#: templates/realm/realm_detailed.jinja2:10
msgid "RealmDetailRemoveRealm"
msgstr "Bereich löschen"
#: templates/realm/realm_detailed.jinja2:19
msgid "RealmDetailLdapOU"
msgstr "LDAP Organisationseinheit"
#: templates/realm/realm_detailed.jinja2:20
msgid "RealmDetailUserCount"
msgstr "Nutzeranzahl (Aktive/Inaktive)"
#: templates/realm/realm_detailed.jinja2:25
msgid "RealmDetailRemoveInactiveUser"
msgstr "Inaktive Nutzer löschen"
#: templates/realm/realm_detailed.jinja2:30
#: templates/realm/realm_detailed.jinja2:37
#: templates/realm/realm_detailed.jinja2:45
msgid "RealmDetailStillPending"
msgstr "Noch ausstehend"
#: templates/realm/realm_detailed.jinja2:32
msgid "RealmDetailAdminGroup"
msgstr "Admin Gruppe"
#: templates/realm/realm_detailed.jinja2:40
msgid "RealmDetailDefaultGroup"
msgstr "Default Gruppe"
#: templates/realm/realm_detailed.jinja2:52
msgid "RealmDetailChangeRealmInfo"
msgstr "Bereichsinformationen anpassen"
#: templates/realm/realm_detailed.jinja2:56
msgid "RealmDetailTestMail"
msgstr "Test Mail senden"
#: templates/realm/realm_groups.jinja2:8
msgid "Name"
msgstr "Name"
#: templates/realm/realm_groups.jinja2:9
msgid "Description"
msgstr "Beschreibung"
#: templates/realm/realm_groups.jinja2:10
msgid "MemberCount"
msgstr "Mitgliederanzahl"
#: templates/realm/realm_groups.jinja2:31
msgid "AddGroups"
msgstr "Gruppen hinzufügen"
#: templates/realm/realm_update.jinja2:14
msgid "Save"
msgstr "Sichern"
#: templates/realm/realm_update.jinja2:16
#: templates/realm/realm_user_multiple_delete.jinja2:34
#: templates/realm/realm_user_multiple_delete_confirm.jinja2:19
msgid "Cancel"
msgstr "Abbrechen"
#: templates/realm/realm_user.jinja2:8
msgid "AddUser"
msgstr "Nutzer hinzufügen"
#: templates/realm/realm_user.jinja2:10
msgid "RemoveMultipleUser"
msgstr "Mehrere Nutzer löschen"
#: templates/realm/realm_user_multiple_delete.jinja2:6
msgid "DeleteUser"
msgstr "Nutzer löschen"
#: templates/realm/realm_user_multiple_delete.jinja2:10
msgid "MultipleUserDeleteError"
msgstr ""
" <h3>Admin User festgestellt</h3>"
"<p>Die folgenden Nutzer können nicht gelöscht werden, da Sie noch Mitglieder von ein oder mehreren Admin"
"Gruppen sind. Bitte tragen Sie diese vorher aus den Admin Gruppen.</p>"
#: templates/realm/realm_user_multiple_delete.jinja2:32
#: templates/realm/realm_user_multiple_delete_confirm.jinja2:17
msgid "Execute"
msgstr "Ausführen"
#: templates/user/realm_user_detail.jinja2:22 #: templates/user/realm_user_detail.jinja2:22
msgid "Anzeigename:" msgid "Anzeigename:"
msgstr "" msgstr ""
#: templates/realm/realm_confirm_delete.jinja2:29 #~ msgid "RealmDeleteInformation %(realm)s %(realm_ldap_base_dn)"
#, python-format #~ msgstr ""
msgid "RealmDeleteInformation %(realm)s %(realm_ldap_base_dn)" #~ "<p>Achtung! Sie sind gerade dabei den Bereich <span class='text-uppercase "
msgstr "" #~ "font-weight-bold'>%(realm)s</span> zu löschen.</p><p>Falls Sie sich "
"<p>Achtung! Sie sind gerade dabei den Bereich <span class='text-uppercase font-weight-bold'>%(realm)s</span> zu löschen.</p>" #~ "sicher sind, dass Sie diesen Bereich löschen wollen, klicken Sie bitte "
"<p>Falls Sie sich sicher sind, dass Sie diesen Bereich löschen wollen, klicken Sie bitte auf \"Bereich löschen\"." #~ "auf \"Bereich löschen\".<p>Hierdurch werden <strong>Alle</strong> Nutzer "
"<p>Hierdurch werden <strong>Alle</strong> Nutzer und Gruppen gelöscht, die unter der Ldap Basis" #~ "und Gruppen gelöscht, die unter der Ldap BasisDN %(realm_ldap_base_dn)s "
"DN %(realm_ldap_base_dn)s eingetragen sind. Die Ldap Basis DN mit Ihren Organisationseinheiten " #~ "eingetragen sind. Die Ldap Basis DN mit Ihren Organisationseinheiten "
"\"groups\" und \"people\" bleiben bestehen.</p>" #~ "\"groups\" und \"people\" bleiben bestehen.</p><p>Bitte beachten Sie, "
"<p>Bitte beachten Sie, dass die Daten der Nutzer, die in den Diensten hochgeladen wurden, weiterhin bestehen bleiben. " #~ "dass die Daten der Nutzer, die in den Diensten hochgeladen wurden, "
"Diese Daten müssen vom Systemadministrator seperat gelöscht werden. </p>" #~ "weiterhin bestehen bleiben. Diese Daten müssen vom Systemadministrator "
"<p>Möchten Sie das Löschen der Accountdaten verhindern, klicken Sie auf \"Abbrechen\"</p>" #~ "seperat gelöscht werden. </p><p>Möchten Sie das Löschen der Accountdaten "
#~ "verhindern, klicken Sie auf \"Abbrechen\"</p>"

View File

@ -299,16 +299,19 @@
id="delete-all-checkbox" id="delete-all-checkbox"
> >
<label class=" <label class="
{% if checkbox_label_classes %}{{ checkbox_label_classes }}{% else %}table-checkbox-control-label table-checkbox-control-label-add{% endif %}" {% if checkbox_label_classes %}
for="delete-all-checkbox"></label> {{ checkbox_label_classes }}
{% else %}
table-checkbox-control-label table-checkbox-control-label-add
{% endif %}" for="delete-all-checkbox"></label>
{% endif %} {% endif %}
</th> </th>
<th scope="col">Nutzername</th> <th scope="col">{{ _('Username') }}</th>
<th scope="col">E-Mail</th> <th scope="col">{{ _('Email') }}</th>
<th scope="col">Vorname</th> <th scope="col">{{ _('FirstName') }}</th>
<th scope="col">Nachname</th> <th scope="col">{{ _('LastName') }}</th>
{% if show_lastlogin %} {% if show_lastlogin %}
<th scope="col">Letzter Login</th> <th scope="col">{{ _('LastLogin') }}</th>
{% endif %} {% endif %}
</tr> </tr>
</thead> </thead>
@ -325,27 +328,11 @@
{% if field and field.value() and user.username in field.value() %}checked{% endif %} {% if field and field.value() and user.username in field.value() %}checked{% endif %}
> >
<label class=" <label class="
{% if checkbox_label_classes %}
{{ checkbox_label_classes }}
{% else %}
table-checkbox-control-label table-checkbox-control-label-add
{% endif %}" for="{{ user.username }}_{{ loop.index }}">
{% if checkbox_label_classes %}{{ checkbox_label_classes }}{% else %}table-checkbox-control-label table-checkbox-control-label-add{% endif %}"
for="{{ user.username }}_{{ loop.index }}">
</label> </label>
</td> </td>
<td>{{ user.username }}</td> <td>{{ user.username }}</td>

View File

@ -25,18 +25,18 @@
<input type="text" <input type="text"
class="form-control" class="form-control"
id="data-table-search-input"> id="data-table-search-input">
<label for="data-table-search-input">Suche</label> <label for="data-table-search-input">{{ _('Search') }}</label>
</div> </div>
<table class="table table-hover table-striped table-inverse table-bordered data-table"> <table class="table table-hover table-striped table-inverse table-bordered data-table">
<thead> <thead>
<tr> <tr>
<th scope="col">Nutzername</th> <th scope="col">{{ _('Username') }}</th>
<th scope="col">E-Mail</th> <th scope="col">{{ _('Email') }}</th>
<th scope="col">Vorname</th> <th scope="col">{{ _('FirstName') }}</th>
<th scope="col">Nachname</th> <th scope="col">{{ _('LastName') }}</th>
<th scope="col">Aktiv</th> <th scope="col">{{ _('Active') }}</th>
<th scope="col">Letzer Login</th> <th scope="col">{{ _('LastLogin') }}</th>
<th scope="col">Löschdatum</th> <th scope="col">{{ _('DeletionDate') }}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -74,18 +74,18 @@
<input type="text" <input type="text"
class="form-control" class="form-control"
id="data-table-search-input"> id="data-table-search-input">
<label for="data-table-search-input">Suche</label> <label for="data-table-search-input">{{ _('Search') }}</label>
</div> </div>
<table class="table table-hover table-striped table-inverse table-bordered data-table text-center"> <table class="table table-hover table-striped table-inverse table-bordered data-table text-center">
<thead> <thead>
<tr> <tr>
<th scope="col">Bereichsname</th> <th scope="col">{{ _('RealmName') }}</th>
<th scope="col">Ldap Basis DN</th> <th scope="col">{{ _('LdapBaseDN') }}</th>
<th scope="col">Mailadresse</th> <th scope="col">{{ _('MailAddress') }}</th>
<th scope="col">Admingruppe</th> <th scope="col">{{ _('AdminGroup') }}</th>
<th scope="col">Defaultgruppe</th> <th scope="col">{{ _('DefaultGroup') }}</th>
<th scope="col">Nutzeranzahl</th> <th scope="col">{{ _('UserCount') }}</th>
<th scope="col">Gruppenanzahl</th> <th scope="col">{{ _('GroupCount') }}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -119,7 +119,6 @@
<td>{{ realm_wrapper.user_count }}</td> <td>{{ realm_wrapper.user_count }}</td>
<td>{{ realm_wrapper.group_count }}</td> <td>{{ realm_wrapper.group_count }}</td>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>

View File

@ -8,18 +8,19 @@
<span class="text-uppercase font-weight-bold">{{ realm.name }}</span></h1> <span class="text-uppercase font-weight-bold">{{ realm.name }}</span></h1>
<div class="alert alert-warning" role="alert"> <div class="alert alert-warning" role="alert">
{# Translators: The Application Name: default LAMa #} {# Translators: The Application Name: default LAMa #}
{{ gettext('RealmDeleteInformation %(realm)s %(realm_ldap_base_dn)')|safe|format(realm=realm, realm_ldap_base_dn=realm.ldap_base_dn) }} {# {{ gettext('RealmDeleteInformation %(realm)s %(realm_ldap_base_dn)')|safe|format(realm=realm, realm_ldap_base_dn=realm.ldap_base_dn) }}#}
{# <p>Achtung! Sie sind gerade dabei den Bereich <span class="text-uppercase font-weight-bold">{{ realm }}</span> zu löschen.</p>#} <p>Achtung! Sie sind gerade dabei den Bereich <span
{# <p>Falls Sie sich sicher sind, dass Sie diesen Bereich löschen wollen, klicken Sie bitte auf#} class="text-uppercase font-weight-bold">{{ realm }}</span> zu löschen.</p>
{# "Bereich löschen".#} <p>Falls Sie sich sicher sind, dass Sie diesen Bereich löschen wollen, klicken Sie bitte auf
{# <p>Hierdurch werden <strong>Alle</strong> Nutzer und Gruppen gelöscht, die unter der Ldap Basis#} "Bereich löschen".
{# DN {{ realm.ldap_base_dn }} eingetragen sind. Die Ldap Basis DN mit Ihren#} <p>Hierdurch werden <strong>Alle</strong> Nutzer und Gruppen gelöscht, die unter der Ldap Basis
{# Organisationseinheiten#} DN {{ realm.ldap_base_dn }} eingetragen sind. Die Ldap Basis DN mit Ihren
{# "groups" und "people" bleiben bestehen.</p>#} Organisationseinheiten
{# <p>Bitte beachten Sie, dass die Daten der Nutzer, die in den#} "groups" und "people" bleiben bestehen.</p>
{# Diensten hochgeladen wurden, weiterhin bestehen bleiben. Diese Daten müssen vom#} <p>Bitte beachten Sie, dass die Daten der Nutzer, die in den
{# Systemadministrator seperat gelöscht werden. </p>#} Diensten hochgeladen wurden, weiterhin bestehen bleiben. Diese Daten müssen vom
{# <p>Möchten Sie das Löschen der Accountdaten verhindern, klicken Sie auf "Abbrechen"</p>#} Systemadministrator seperat gelöscht werden. </p>
<p>Möchten Sie das Löschen der Accountdaten verhindern, klicken Sie auf "Abbrechen"</p>
</div> </div>
<div class="d-flex"> <div class="d-flex">
<a href="{{ url('realm-detail', args = [realm.id]) }}" <a href="{{ url('realm-detail', args = [realm.id]) }}"

View File

@ -2,83 +2,62 @@
{% block admin_content %} {% block admin_content %}
<div class="row "> <div class="row ">
<div class="col-12 p-3"> <div class="col-12 p-3">
<h1>Bereich <span style="text-transform: uppercase">{{ realm.name }}</span> <h1> {{ _('Realm') }} <span style="text-transform: uppercase">{{ realm.name }}</span>
<small> <small>
{% if request.user.is_superuser %} {% if request.user.is_superuser %}
<a href="{{ url('realm-delete-confirm', args=[realm.id]) }}" <a href="{{ url('realm-delete-confirm', args=[realm.id]) }}"
class="h5 realm-delete-link"><i class="fas fa-dumpster"></i> <span class="h5 realm-delete-link"><i class="fas fa-dumpster"></i> <span
class="d-none d-md-inline-block">Bereich löschen</span></a> class="d-none d-md-inline-block"> {{ _('RealmDetailRemoveRealm') }}</span></a>
{% endif %} {% endif %}
</small> </small>
</h1> </h1>
{% if notice %} {% if notice %}<p style="color: green">{{ notice }}</p>{% endif %}
<p style="color: green">{{ notice }}</p> {% if error %}<p style="color: darkred">{{ error }}</p>{% endif %}
{% endif %}
{% if error %}
<p style="color: darkred">{{ error }}</p>
{% endif %}
{% block detail_content %} {% block detail_content %}
<ul class="list-group list-group-flush w-100"> <ul class="list-group list-group-flush w-100">
<li class="list-group-item">LDAP Organisationseinheit: {{ realm.ldap_base_dn }}</li> <li class="list-group-item"> {{ _('RealmDetailLdapOU') }}: {{ realm.ldap_base_dn }}</li>
<li class="list-group-item">Nutzeranzahl (Aktive/Inaktive): {{ users_count }} <li class="list-group-item"> {{ _('RealmDetailUserCount') }}: {{ users_count }}
({{ users_count-inactive_user_count }}/{{ inactive_user_count }}) ({{ users_count-inactive_user_count }}/{{ inactive_user_count }})
<a <a
href="{{ url('realm-multiple-user-delete-inactive', args=[realm.id]) }}" href="{{ url('realm-multiple-user-delete-inactive', args=[realm.id]) }}"
class="float-right"> class="float-right">
Inaktive Nutzer löschen {{ _('RealmDetailRemoveInactiveUser') }}
</a> </a>
</li> </li>
{% if realm.email %} <li class="list-group-item">{{ _('Email') }}:
<li class="list-group-item">Email: {{ realm.email }}</li> {% if realm.email %}{{ realm.email }}{% else %}
{% else %} <span class="text-danger">{{ _('RealmDetailStillPending') }}</span>{% endif %}
<li class="list-group-item">Email: <span class="text-danger">Noch ausstehend</span></li> </li>
{% endif %} <li class="list-group-item">{{ _('RealmDetailAdminGroup') }}:
{% if realm.admin_group %} {% if realm.admin_group %}
<li class="list-group-item">Admin Gruppe: <a <a href="{{ url('realm-group-detail', args=[realm.id, ldap_admin_group.dn]) }}"
href="{{ url('realm-group-detail', args=[realm.id, ldap_admin_group.dn]) }}" class="badge badge-primary p-2">{{ realm.admin_group }}</a>
class="badge badge-primary p-2">
{{ realm.admin_group }}</a></li>
{% else %} {% else %}
<li class="list-group-item">Admin Gruppe: <span class="text-warning">Noch ausstehend</span></li> <span class="text-warning">{{ _('RealmDetailStillPending') }}</span>
{% endif %} {% endif %}
</li>
<li class="list-group-item">{{ _('RealmDetailDefaultGroup') }}:
{% if realm.default_group %} {% if realm.default_group %}
<li class="list-group-item">Default Gruppe: <a <a href="{{ url('realm-group-detail', args=[realm.id, ldap_default_group.dn]) }}"
href="{{ url('realm-group-detail', args=[realm.id, ldap_default_group.dn]) }}" class="badge badge-secondary p-2">{{ realm.default_group }}</a>
class="badge badge-secondary p-2">
{{ realm.default_group }}</a>
</li>
{% else %} {% else %}
<li class="list-group-item">Default Gruppe: <span class="text-warning">Noch ausstehend</span> <span class="text-warning">{{ _('RealmDetailStillPending') }}</span>
</li>
{% endif %} {% endif %}
</li>
</ul> </ul>
<div class="d-flex mt-3"> <div class="d-flex mt-3">
{% if request.user.is_superuser %} {% if request.user.is_superuser %}
<a href="{{ url('realm-update', args=[realm.id]) }}" class="btn btn-primary mr-auto p-2"><i <a href="{{ url('realm-update', args=[realm.id]) }}" class="btn btn-primary mr-auto p-2"><i
class="fas fa-info-circle"></i> Bereichsinformationen class="fas fa-info-circle"></i> {{ _('RealmDetailChangeRealmInfo') }}</a>
anpassen</a>
{% if realm.email %} {% if realm.email %}
<a href="{{ url('realm-mail-test', args=[realm.id]) }}" class="btn btn-secondary p-2"><i <a href="{{ url('realm-mail-test', args=[realm.id]) }}" class="btn btn-secondary p-2"><i
class="fas fa-paper-plane"></i> Test Mail</a> class="fas fa-paper-plane"></i> {{ _('RealmDetailTestMail') }}</a>
{% endif %} {% endif %}
{% endif %} {% endif %}
</div> </div>
{% block realm_form %}
{% endblock %} {% endblock %}
{% endblock %}
{# <h2><a href="{{ url('realm-user-add', args=[realm.id]) }}">Nutzer hinzufügen</a></h2>#}
{# {% block user_content %}#}
{# <h2><a href="{{ url('realm-user-list', args=[realm.id]) }}">Nutzer</a></h2>#}
{# {% endblock %}#}
{# <h2><a href="{{ url('realm-group-add', args=[realm.id]) }}">Gruppen hinzufügen</a></h2>#}
{# {% block groups_content %}#}
{# <h2><a href="{{ url('realm-group-list', args=[realm.id]) }}">Gruppen</a></h2>#}
{# {% endblock %}#}
{# {% block extra_content %}#}
{# {% endblock %}#}
</div> </div>
</div> </div>
{% endblock %} {% endblock %}

View File

@ -1,13 +1,13 @@
{% extends 'realm/realm_detailed.jinja2' %} {% extends 'realm/realm_detailed.jinja2' %}
{% block detail_content %} {% block detail_content %}
<h3>Gruppen</h3> <h3>{{ _('Groups') }}</h3>
<table class="table"> <table class="table">
<thead> <thead>
<tr> <tr>
<th scope="col">Name</th> <th scope="col">{{ _('Name') }}</th>
<th scope="col">Ldap Domain</th> <th scope="col">{{ _('Description') }}</th>
<th scope="col">Mitgliederanzahl</th> <th scope="col">{{ _('MemberCount') }}</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -19,12 +19,14 @@
title="{{ group.description }}" title="{{ group.description }}"
>{{ group.name }}</a> >{{ group.name }}</a>
</td> </td>
<td>{{ group.dn }}</td> <td data-toggle="tooltip"
data-placement="right"
title="{{ group.description }}">{{ group.description|truncate(100) }}</td>
<td>{{ group.members|length }}</td> <td>{{ group.members|length }}</td>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
<a href="{{ url('realm-group-add', args=[realm.id]) }}" class="btn btn-primary"><i class="far fa-plus-square"></i> <a href="{{ url('realm-group-add', args=[realm.id]) }}" class="btn btn-primary"><i class="far fa-plus-square"></i>
Gruppen hinzufügen</a> {{ _('AddGroups') }}</a>
{% endblock %} {% endblock %}

View File

@ -3,12 +3,12 @@
{% import 'macros/utils_macros.jinja2' as mutils %} {% import 'macros/utils_macros.jinja2' as mutils %}
{% block admin_content %} {% block admin_content %}
<h2>Bereiche</h2> <h2>{{ _('Realms') }}</h2>
{{ mutils.get_realm_table(realm_wrappers) }} {{ mutils.get_realm_table(realm_wrappers) }}
{% if request.user.is_superuser %} {% if request.user.is_superuser %}
<div class="row justify-content-center justify-content-sm-center"> <div class="row justify-content-center justify-content-sm-center">
<div class="col-12 col-sm-8 col-md-8 col-lg-6 col-xl-5 bg-white text-dark p-3 mt-5"> <div class="col-12 col-sm-8 col-md-8 col-lg-6 col-xl-5 bg-white text-dark p-3 mt-5">
<a href="{{ url('realm-add') }}" class="btn btn-primary w-100">Bereich hinzufügen</a> <a href="{{ url('realm-add') }}" class="btn btn-primary w-100">{{ _('RealmAdd') }}</a>
</div> </div>
</div> </div>
{% endif %} {% endif %}

View File

@ -11,9 +11,9 @@
{{ mform.select_input(form.admin_group) }} {{ mform.select_input(form.admin_group) }}
{{ mform.select_input(form.default_group) }} {{ mform.select_input(form.default_group) }}
<div class="d-flex mt-4"> <div class="d-flex mt-4">
<button type="submit" class="btn btn-primary mr-auto p-2">Speichern</button> <button type="submit" class="btn btn-primary mr-auto p-2">{{ _('Save') }}</button>
<a href="{{ url('realm-detail', args = [realm.id]) }}" <a href="{{ url('realm-detail', args = [realm.id]) }}"
class="btn btn-secondary p-2">Abbrechen</a> class="btn btn-secondary p-2">{{ _('Cancel') }}</a>
</div> </div>
</form> </form>
{% endif %} {% endif %}

View File

@ -2,11 +2,10 @@
{% import 'macros/utils_macros.jinja2' as mutils %} {% import 'macros/utils_macros.jinja2' as mutils %}
{% block detail_content %} {% block detail_content %}
<h2>Nutzer </h2> <h2>{{ _('User') }}</h2>
{{ mutils.get_user_table(realm, realm_user) }} {{ mutils.get_user_table(realm, realm_user) }}
<a href="{{ url('realm-user-add', args=[realm.id]) }}" class="btn btn-primary"><i class="fas fa-user-plus"></i> <a href="{{ url('realm-user-add', args=[realm.id]) }}" class="btn btn-primary"><i class="fas fa-user-plus"></i>
Nutzer hinzufügen</a> {{ _('AddUser') }}</a>
<a href="{{ url('realm-multiple-user-delete-confirm', args=[realm.id]) }}" class="btn btn-danger float-right"><i <a href="{{ url('realm-multiple-user-delete-confirm', args=[realm.id]) }}" class="btn btn-danger float-right"><i
class="fas fa-trash"></i> Mehrere Nutzer class="fas fa-trash"></i> {{ _('RemoveMultipleUser') }}</a>
Löschen</a>
{% endblock %} {% endblock %}

View File

@ -3,13 +3,14 @@
{% import 'macros/utils_macros.jinja2' as mutils %} {% import 'macros/utils_macros.jinja2' as mutils %}
{% block detail_content %} {% block detail_content %}
<h2>Nutzer löschen</h2> <h2>{{ _('DeleteUser') }}</h2>
{{ mutils.get_warning_box(extra_errors) }} {{ mutils.get_warning_box(extra_errors) }}
{% if blocked_users %} {% if blocked_users %}
<div class="alert alert-warning"> <div class="alert alert-warning">
<h3>Admin User festgestellt</h3> {{ _('MultipleUserDeleteError')|safe }}
<p>Die folgenden Nutzer können nicht gelöscht werden, da Sie noch Mitglieder von ein oder mehreren Admin {# <h3>Admin User festgestellt</h3>#}
Gruppen sind. Bitte tragen Sie diese vorher aus den Admin Gruppen.</p> {# <p>Die folgenden Nutzer können nicht gelöscht werden, da Sie noch Mitglieder von ein oder mehreren Admin#}
{# Gruppen sind. Bitte tragen Sie diese vorher aus den Admin Gruppen.</p>#}
<ul> <ul>
{% for blocked_user in blocked_users %} {% for blocked_user in blocked_users %}
<li>{{ blocked_user.username }}</li> <li>{{ blocked_user.username }}</li>
@ -22,15 +23,15 @@
class="form-control" class="form-control"
placeholder="Personen Suche" placeholder="Personen Suche"
id="data-table-search-input"> id="data-table-search-input">
<label for="data-table-search-input">Suche</label> <label for="data-table-search-input">{{ _('Search') }}Suche</label>
</div> </div>
<form action="{{ url('realm-multiple-user-delete', args=[realm.id]) }}" method="post"> <form action="{{ url('realm-multiple-user-delete', args=[realm.id]) }}" method="post">
<input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}"> <input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}">
{{ mform.user_select_table_input(users=[], deletable_users=deletable_users, blocked_users=blocked_users, name="ldap_users",css_classes='',show_lastlogin=True, checkbox_label_classes='table-checkbox-control-label') }} {{ mform.user_select_table_input(users=[], deletable_users=deletable_users, blocked_users=blocked_users, name="ldap_users",css_classes='',show_lastlogin=True, checkbox_label_classes='table-checkbox-control-label') }}
<div class="d-flex mt-4"> <div class="d-flex mt-4">
<button type="submit" class="btn btn-danger mr-auto p-2">Ausführen</button> <button type="submit" class="btn btn-danger mr-auto p-2">{{ _('Execute') }}</button>
<a href="{{ url('realm-user-list', args = [realm.id]) }}" <a href="{{ url('realm-user-list', args = [realm.id]) }}"
class="btn btn-secondary p-2">Abbrechen</a> class="btn btn-secondary p-2">{{ _('Cancel') }}</a>
</div> </div>
</form> </form>
{% endblock %} {% endblock %}

View File

@ -2,21 +2,21 @@
{% import 'macros/form_macros.jinja2' as mform %} {% import 'macros/form_macros.jinja2' as mform %}
{% block detail_content %} {% block detail_content %}
<h2>Nutzer löschen</h2> <h2>{{ _('DeleteUser') }}</h2>
<div class="form-group w-25 float-right"> <div class="form-group w-25 float-right">
<input type="text" <input type="text"
class="form-control" class="form-control"
placeholder="Personen Suche" placeholder="Personen Suche"
id="data-table-search-input"> id="data-table-search-input">
<label for="data-table-search-input">Suche</label> <label for="data-table-search-input">{{ _('Search') }}</label>
</div> </div>
<form action="{{ url('realm-multiple-user-delete-confirm', args=[realm.id]) }}" method="post"> <form action="{{ url('realm-multiple-user-delete-confirm', args=[realm.id]) }}" method="post">
<input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}"> <input type="hidden" name="csrfmiddlewaretoken" value="{{ csrf_token }}">
{{ mform.user_select_table_input(users, name="ldap_users",css_classes='',show_lastlogin=True, checkbox_label_classes='table-checkbox-control-label') }} {{ mform.user_select_table_input(users, name="ldap_users",css_classes='',show_lastlogin=True, checkbox_label_classes='table-checkbox-control-label') }}
<div class="d-flex mt-4"> <div class="d-flex mt-4">
<button type="submit" class="btn btn-danger mr-auto p-2">Ausführen</button> <button type="submit" class="btn btn-danger mr-auto p-2">{{ _('Execute') }}</button>
<a href="{{ url('realm-user-list', args = [realm.id]) }}" <a href="{{ url('realm-user-list', args = [realm.id]) }}"
class="btn btn-secondary p-2">Abbrechen</a> class="btn btn-secondary p-2">{{ _('Cancel') }}</a>
</div> </div>
</form> </form>
{% endblock %} {% endblock %}