-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathprofile.html
More file actions
44 lines (44 loc) · 1.88 KB
/
profile.html
File metadata and controls
44 lines (44 loc) · 1.88 KB
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
{% extends "base.html" %}
{% set tab = 'profile' %}
{% block title %}Gamenight host profile{% endblock %}
{% block content %}
<form method="post">
<div class="row-fluid">
<div class="span6">
<fieldset>
<legend>Profile{% if user.superuser %}: {{ profile.key.id() }}{% endif %}</legend>
<label for="name">Name</label>
<input id="name" name="name" type="text" value="{{ profile.name }}" />
<label for="location">Default location</label>
<input id="location" name="location" type="text" value="{{ profile.location }}" />
<label for="location">Get email if gamenight needs scheduling?</label>
<input type="checkbox" name="nag" id="nag" {% if profile.nag %} checked="checked" {% endif %} />
Get nag email
</label>
<br />
{% if user.superuser %}
<input type="hidden" id="pid" name="pid" value="{{ profile.key.id() }}" />
<label>
<input type="checkbox" name="admin" id="admin" {% if profile.superuser %} checked="checked" {% endif %} />
Admin
</label>
{% endif %}
<button type="submit" class="btn">Save</button>
</fieldset>
</div>
<div class="span6">
{% if user.superuser %}
<legend>Users:</legend>
<ul>
{% for u in users %}
<li>{{ u.key.id() }}: {{ u.name }}
<button type="submit" class="close" id="edit" name="edit" value="{{ u.key.id() }}">edit</button>
</li>
{% endfor %}
</ul>
{% endif %}
</div>
</div>
</form>
{% endblock %}
{# vim: set ts=4 sts=4 sw=4 et: #}