forked from hchapman/WBOR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dj_create_event.html
63 lines (59 loc) · 2.15 KB
/
dj_create_event.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
51
52
53
54
55
56
57
58
59
60
61
62
63
{% extends "base.html" %}
{% block title %}Manage Events{% endblock %}
{% if errors %}
{% block top_row %}
<div class='error'>{{ errors }}</div>
{% endblock %}
{% endif %}
{% block left_column %}
<div id='edit-event'>
<h4>{% if editing %}Edit{% else %}Create{% endif %} Event</h4>
<form {% if editing %}{% else %}action='/dj/event/'{% endif %} method='post'>
{% if editing %}
<input type='hidden' value='{{ event.key }}' name='event_key' />
{% endif %}
<table>
<tr>
<td><label for='title'>Title:</label></td>
<td><input type='text' name='title' id='title' value='{{ event.title }}'></td>
</tr>
<tr>
<td><label for='url'>URL:</label></td>
<td><input type='text' name='url' id='url' value='{{ event.url }}'/></td>
</tr>
<tr>
<td><label for='slug'>Date:</label></td>
<td><input type='text' name='date' id='date' class='datepicker' value='{{ day }}'></td>
</tr>
<tr>
<td><label>Time:</label></td>
<td>
<select name='hour' id='hour'>
{% for v in hours %}
<option value='{{ v }}' {% ifequal v hour %}selected='selected'{% endifequal %}>{{ v }}</option>
{% endfor %}
</select>
<select name='minute' id='minute'>
{% for v in minutes %}
<option value='{{ v }}' {% ifequal v minute %}selected='selected'{% endifequal %}>{{ v }}</option>
{% endfor %}
</select>
</td>
</tr>
<tr>
<td colspan='2'><label for='desc'>Description</label></td>
</tr>
<tr>
<td colspan='2'>
<textarea class='tinymce' name='desc' id='desc'>{{ event.desc|escape }}</textarea>
</td>
</tr>
</table>
<input name='submit' type='submit' {% if editing %}value='Edit Event'{% else %}value='Create Event'{% endif %} />
{% if editing %}<input type='submit' name='submit' value='Delete Event' />{% endif %}
</form>
</div>
{% endblock %}
{% block right_column %}
{% include "last_n_posts.html" %}
{% endblock %}