Allow to anonymize users

This commit is contained in:
Raphael Michel
2018-11-05 11:11:21 +01:00
parent 0a5347c08b
commit 7039374588
5 changed files with 52 additions and 2 deletions

View File

@@ -0,0 +1,15 @@
{% extends "pretixcontrol/base.html" %}
{% load i18n %}
{% load bootstrap3 %}
{% block title %}{% trans "Anonymize user" %}{% endblock %}
{% block content %}
<h1>{% trans "Anonymize user" %} {{ user.email }}</h1>
<form action="" method="post" class="form-horizontal">
{% csrf_token %}
<div class="form-group submit-group">
<button type="submit" class="btn btn-danger btn-save">
{% trans "Disable and anonymize user" %}
</button>
</div>
</form>
{% endblock %}

View File

@@ -13,6 +13,7 @@
{% csrf_token %}
<button class="btn btn-default">{% trans "Impersonate user" %}</button>
</form>
<a href="{% url "control:users.anonymize" id=user.pk %}" class="btn btn-default">{% trans "Anonymize" %}</a>
</p>
<div class="row">
<div class="col-md-10 col-xs-12">