summaryrefslogtreecommitdiff
path: root/app/templates/modules/settings.html
blob: 392ab47599f6c6d9a4e5caca6794c4f0f46ac6d6 (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
{# -*- mode: web; -*- #}

{% extends "base.html" %}

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

{% block content %}

<p>Welcome, {{ current_user.name_first }} {{ current_user.name_last }}!</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> Last Updated</td>
	    <td>{{ current_user.date_time_updated }}</td>
	</tr>
    </tbody>
</table>
{% endblock %}
Copyright 2019--2024 Marius PETER