-
Notifications
You must be signed in to change notification settings - Fork 2
/
dj_manage_djs.html
50 lines (38 loc) · 1.56 KB
/
dj_manage_djs.html
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
{% extends "base.html" %}
{% block left_column %}
<div id='edit-dj' align='center'>
<h4>{% if dj %}Edit{% else %}Add{% endif %} DJ</h4>
<div id='edit-dj-form'>
<form action='/dj/djs/{% if dj %}{{ dj.key }}/{% endif %}' method='post'>
<label for='email'>Email: </label>
<input id='email' type='text' name='email' value='{{ dj.email|escape }}'/><br />
<label for='fullname'>Full Name: </label>
<input id='fullname' type='text' name='fullname' value='{{ dj.fullname|escape }}' /><br />
<label for='username'>Username: </label>
<input id='username' name='username' type='text' value='{{ dj.username|escape }}'/><br />
<label for='password'>Change Password: </label>
<input id='password' name='password' type='password'/><br />
<label for='confirm'>Confirm Change Password: </label>
<input id='confirm' name='confirm' type='password'/><br />
<input type='submit' name='submit' value="{% if dj %}Edit{% else %}Add{% endif %} DJ" />
{% if dj %}
<input id='delete-button' type='submit' name='submit' value="Delete DJ" />
{% endif %}
</form>
</div>
</div>
<div id='current-djs'>
<h4>Current DJs</h4>
<ul>
{% for dj in dj_list %}
<li><a href='/dj/djs/{{ dj.key }}'>{{ dj.fullname }}</a></li>
{% endfor %}
</ul>
</div>
{% endblock %}
{% block right_column %}
<div>
<a href='/dj/'>Return to main index</a>
</div>
{% include "last_n_posts.html" %}
{% endblock %}