feat: Add link to 2fa options
This commit is contained in:
@@ -30,77 +30,83 @@
|
|||||||
<div class="block">
|
<div class="block">
|
||||||
<div class="field is-grouped is-grouped-multiline">
|
<div class="field is-grouped is-grouped-multiline">
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<a class="button is-warning"
|
<a class="button is-warning"
|
||||||
href="{% url 'account_change_password' %}">{% translate "Passwort ändern" %}</a>
|
href="{% url 'account_change_password' %}">{% translate "Passwort ändern" %}</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<a class="button is-warning"
|
<a class="button is-warning"
|
||||||
href="{% url 'account_email' %}">
|
href="{% url 'account_email' %}">
|
||||||
{% translate "E-Mail Adresse ändern" %}
|
{% translate "E-Mail Adresse ändern" %}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<a class="button is-info" href="{% url 'user-me-export' %}">
|
<a class="button is-warning"
|
||||||
{% translate "Daten exportieren" %}
|
href="{% url 'mfa_index' %}">
|
||||||
</a>
|
{% translate "2-Faktor Authentifizierung" %}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="control">
|
||||||
|
<a class="button is-info" href="{% url 'user-me-export' %}">
|
||||||
|
{% translate "Daten exportieren" %}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
{% if user.id is request.user.id %}
|
{% if user.id is request.user.id %}
|
||||||
<div class="block">
|
<div class="block">
|
||||||
<h2 class="title is-2">{% trans 'Einstellungen' %}</h2>
|
<h2 class="title is-2">{% trans 'Einstellungen' %}</h2>
|
||||||
<form class="block" action="" method="POST">
|
<form class="block" action="" method="POST">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{% if user.email_notifications %}
|
{% if user.email_notifications %}
|
||||||
<label class="toggle">
|
<label class="toggle">
|
||||||
<input type="submit" class="toggle-checkbox checked" name="toggle_email_notifications">
|
<input type="submit" class="toggle-checkbox checked" name="toggle_email_notifications">
|
||||||
<div class="toggle-switch round "></div>
|
<div class="toggle-switch round "></div>
|
||||||
<span class="slider-label">
|
<span class="slider-label">
|
||||||
{% translate 'E-Mail Benachrichtigungen' %}
|
{% translate 'E-Mail Benachrichtigungen' %}
|
||||||
</span>
|
</span>
|
||||||
</label>
|
</label>
|
||||||
{% else %}
|
|
||||||
<label class="toggle">
|
|
||||||
<input type="submit" class="toggle-checkbox" name="toggle_email_notifications">
|
|
||||||
<div class="toggle-switch round"></div>
|
|
||||||
<span class="slider-label">
|
|
||||||
{% translate 'E-Mail Benachrichtigungen' %}
|
|
||||||
</span>
|
|
||||||
</label>
|
|
||||||
{% endif %}
|
|
||||||
</form>
|
|
||||||
<details>
|
|
||||||
<summary><strong>{% trans 'Erweiterte Einstellungen' %}</strong></summary>
|
|
||||||
<div class="block">
|
|
||||||
{% if token %}
|
|
||||||
<form action="" method="POST">
|
|
||||||
{% csrf_token %}
|
|
||||||
<p class="text-muted"><strong>{% translate "API token:" %}</strong> {{ token }}</p>
|
|
||||||
<input class="button is-danger" type="submit" name="delete_token"
|
|
||||||
value={% translate "Delete API token" %}>
|
|
||||||
</form>
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<p>{% translate "Kein API-Token vorhanden." %}</p>
|
<label class="toggle">
|
||||||
<form action="" method="POST">
|
<input type="submit" class="toggle-checkbox" name="toggle_email_notifications">
|
||||||
{% csrf_token %}
|
<div class="toggle-switch round"></div>
|
||||||
<input class="button is-primary" type="submit" name="create_token"
|
<span class="slider-label">
|
||||||
value={% translate "Create API token" %}>
|
{% translate 'E-Mail Benachrichtigungen' %}
|
||||||
</form>
|
</span>
|
||||||
|
</label>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</form>
|
||||||
</details>
|
<details>
|
||||||
|
<summary><strong>{% trans 'Erweiterte Einstellungen' %}</strong></summary>
|
||||||
|
<div class="block">
|
||||||
|
{% if token %}
|
||||||
|
<form action="" method="POST">
|
||||||
|
{% csrf_token %}
|
||||||
|
<p class="text-muted"><strong>{% translate "API token:" %}</strong> {{ token }}</p>
|
||||||
|
<input class="button is-danger" type="submit" name="delete_token"
|
||||||
|
value={% translate "Delete API token" %}>
|
||||||
|
</form>
|
||||||
|
{% else %}
|
||||||
|
<p>{% translate "Kein API-Token vorhanden." %}</p>
|
||||||
|
<form action="" method="POST">
|
||||||
|
{% csrf_token %}
|
||||||
|
<input class="button is-primary" type="submit" name="create_token"
|
||||||
|
value={% translate "Create API token" %}>
|
||||||
|
</form>
|
||||||
|
{% endif %}
|
||||||
|
</div>
|
||||||
|
</details>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<h2 class="title is-2">{% translate 'Benachrichtigungen' %}</h2>
|
<h2 class="title is-2">{% translate 'Benachrichtigungen' %}</h2>
|
||||||
{% include "fellchensammlung/lists/list-notifications.html" %}
|
{% include "fellchensammlung/lists/list-notifications.html" %}
|
||||||
|
|
||||||
<h2 class="title is-2">{% translate 'Abonnierte Suchen' %}</h2>
|
<h2 class="title is-2">{% translate 'Abonnierte Suchen' %}</h2>
|
||||||
{% include "fellchensammlung/lists/list-search-subscriptions.html" %}
|
{% include "fellchensammlung/lists/list-search-subscriptions.html" %}
|
||||||
|
|
||||||
<h2 class="title is-2">{% translate 'Meine Vermittlungen' %}</h2>
|
<h2 class="title is-2">{% translate 'Meine Vermittlungen' %}</h2>
|
||||||
{% include "fellchensammlung/lists/list-adoption-notices.html" %}
|
{% include "fellchensammlung/lists/list-adoption-notices.html" %}
|
||||||
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
Reference in New Issue
Block a user