summaryrefslogtreecommitdiff
path: root/app/templates/modules/settings.html
blob: af0cf98905f30d4c47ed88b28591fd9e9f7de13a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{# -*- mode: web; -*- #}

{% extends "base.html" %}

{% block title %}
Settings for user {{ current_user.username }}
{% endblock %}

{% block content %}

<p>Welcome, {{ current_user.username }}!</p>

<h2>User profile</h2>

<form method="post" action="{{ url_for('common.edit_item', module='settings', pk=current_user.primary_key, table='User' ) }}">
    <button>edit</button>
</form>

<table>
    <thead>
	<tr>
	    <th>Field</th>
	    <th>Value</th>
	</tr>
    </thead>
    <tbody>
	<tr>
	    <td>Username</td>
	    <td>{{ current_user.username }}</td>
	</tr>
	<tr>
	    <td>First Name</td>
	    <td>{{ current_user.name_first }}</td>
	</tr>
	<tr>
	    <td>Last Name</td>
	    <td>{{ current_user.name_last }}</td>
	</tr>
	<tr>
	    <td>E-mail</td>
	    <td>{{ current_user.email }}</td>
	</tr>
	<tr>
	    <td>Phone (mobile)</td>
	    <td>{{ current_user.phone_mobile }}</td>
	</tr>
	<tr>
	    <td>Phone (alt)</td>
	    <td>{{ current_user.phone_alternative }}</td>
	</tr>
	<tr>
	    <td> Last Updated</td>
	    <td>{{ current_user.date_time_updated }}</td>
	</tr>
    </tbody>
</table>
{% endblock %}
Copyright 2019--2024 Marius PETER