30 lines
1.3 KiB
HTML
30 lines
1.3 KiB
HTML
|
<?xml version = "1.0"?>
|
||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
|
||
|
<head>
|
||
|
<meta charset="utf-8" />
|
||
|
<link rel="stylesheet" type="text/css" href="{{ url_for('static', filename='css/main.css') }}" />
|
||
|
<title>Users</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<form action="/users/modify" method="POST">
|
||
|
{% for user in users %}
|
||
|
<input type="radio" name="uuid" value="{{user.uuid}}">
|
||
|
{{ user.id }}, {{ user.uuid }}, {{ user.first_name | safe }}, {{ user.last_name | safe }}, {{ user.role }}
|
||
|
</input> <br>
|
||
|
{% endfor %}
|
||
|
<input type="text", name="first_name", placeholder="First Name" />
|
||
|
<input type="text", name="last_name", placeholder="Last Name" /><br>
|
||
|
<input type="text", name="new_uuid", placeholder="0000000000" /><br>
|
||
|
<select name='role'>
|
||
|
<option value='Student'>Student</option>
|
||
|
<option value='Mentor'>Mentor</option>
|
||
|
</select><br>
|
||
|
<button type="submit", name="action", value="set_name">Change Name</button>
|
||
|
<button type="submit", name="action", value="set_uid">Change ID</button>
|
||
|
<button type="submit", name="action", value="new_user">New User</button>
|
||
|
<button type="submit", name="action", value="delete">Delete</button><br>
|
||
|
</form>
|
||
|
</body>
|
||
|
</html>
|