Change deletion message
This commit is contained in:
parent
00cea530ab
commit
c2955968bc
@ -20,6 +20,8 @@ from account_manager.main_views import is_realm_admin
|
||||
from account_manager.models import LdapUser, LdapGroup
|
||||
from account_manager.utils.mail_utils import send_welcome_mail, send_deletion_mail
|
||||
|
||||
from django.conf import settings
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@ -216,7 +218,8 @@ def realm_user_delete_confirm(request, realm_id, user_dn):
|
||||
deletion_link = {'name': 'realm-user-delete', 'args': [realm.id, ldap_user.dn]}
|
||||
cancel_link = {'name': 'realm-user-detail', 'args': [realm.id, ldap_user.dn]}
|
||||
return render(request, 'user/user_confirm_delete.jinja2',
|
||||
{'realm': realm, 'user': ldap_user, 'deletion_link': deletion_link, 'cancel_link': cancel_link})
|
||||
{'realm': realm, 'user': ldap_user, 'deletion_link': deletion_link, 'cancel_link': cancel_link,
|
||||
'deletion_wait_days': settings.DELETION_WAIT_DAYS})
|
||||
|
||||
|
||||
@login_required
|
||||
|
||||
@ -20,6 +20,7 @@ SITE_NAME = os.environ['SITE_NAME']
|
||||
SECRET_KEY = os.environ['SECRET_KEY']
|
||||
DEBUG = os.environ.get('DEBUG', 'False') == 'True'
|
||||
ALLOWED_HOSTS = os.environ['ALLOWED_HOSTS'].split()
|
||||
DELETION_WAIT_DAYS = os.environ.get('DELETION_WAIT_DAYS', 14)
|
||||
|
||||
# Application definition
|
||||
INSTALLED_APPS = [
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
<div class="row justify-content-center justify-content-sm-center">
|
||||
<div class="col-12 col-sm-8 col-md-7 col-lg-5 col-xl-4 bg-white text-dark p-3 mt-5">
|
||||
<div class="alert alert-warning" role="alert">
|
||||
<p>Achtung! Sie sind gerade dabei den Account von <strong>{{ user.username }}</strong> zu schließen.
|
||||
<p><strong>Achtung!</strong> Sie sind gerade dabei den Account von <strong>{{ user.username }}</strong> zu schließen.
|
||||
</p>
|
||||
<p>Falls Sie sich sicher sind, dass Sie diesen Nutzer löschen wollen, klicken Sie bitte auf "Nutzer
|
||||
löschen".
|
||||
@ -15,6 +15,9 @@
|
||||
Diensten hochgeladen wurden, weiterhin bestehen bleiben.</p>
|
||||
<p>Um auch diese zu löschen müssen Sie zuvor Ihre Daten entsprechend löschen. </p>
|
||||
<p>Möchten Sie das Löschen der Accountdaten verhindern, klicken Sie auf "Abbrechen"</p>
|
||||
<p>Der Nutzer wird automatisch über die Löschung informiert.</p>
|
||||
<p><strong>Der Account bleibt noch {{ deletion_wait_days }} Tage (vom heutigen Tag aus) bis zur geplanten Löschung
|
||||
bestehen.</strong></p>
|
||||
</div>
|
||||
<div class="d-flex">
|
||||
<a href="{{ url(cancel_link.name, args = cancel_link.args) }}"
|
||||
|
||||
Reference in New Issue
Block a user