User menu

* adds user notifications and management
This commit is contained in:
mipel
2021-07-08 17:23:06 +02:00
parent 41fff3a687
commit 1ced6fdadd
14 changed files with 377 additions and 29 deletions

View File

@@ -1,22 +1,60 @@
{% extends 'base.html' %}
{% load i18n %}
{% load i18n fontawesome_5 %}
{% block body %}
<div class="row">
<div class="col-md-3 border">
<table class="table">
<tr>
<th>{% trans 'Username' %}</th>
<th scope="row">{% trans 'Username' %}</th>
<td>{{user.username}}</td>
</tr>
<tr>
<th>{% trans 'Name' %}</th>
<th scope="row">{% trans 'Name' %}</th>
<td>{{user.first_name}} {{user.last_name}}</td>
</tr>
<tr>
<th scope="row">{% trans 'E-Mail' %}</th>
<td>{{user.email}}</td>
</tr>
<tr>
<th scope="row">{% trans 'Groups' %}</th>
<td>
{% for group in user.groups.all %}
<span class="badge badge-pill rlp-r">{% trans group.name %}</span>
{% endfor %}
</td>
</tr>
</table>
</div>
<div class="col-md">
<h4>{% trans 'Settings' %}</h4>
<article>
<small>
{% blocktrans %}
Please note: Personal data can only be edited in the login portal. The settings in here are KSP specific.
{% endblocktrans %}
</small>
</article>
<hr>
<div class="col-sm">
<div class="row mb-2">
<a href="{% url 'user:index' %}" title="{% trans 'Change default configuration for your KSP map' %}">
<button class="btn btn-default">
{% fa5_icon 'layer-group' %}
<span>{% trans 'Map settings' %}</span>
</button>
</a>
</div>
<div class="row mb-2">
<a href="{% url 'user:notifications' %}" title="{% trans 'Change notification configurations' %}">
<button class="btn btn-default">
{% fa5_icon 'bell' %}
<span>{% trans 'Notification settings' %}</span>
</button>
</a>
</div>
</div>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,5 @@
{% extends 'base.html' %}
{% block body %}
{% include 'generic_table_form.html' %}
{% endblock %}