forked from danatierney/hd-events
/
new.html
144 lines (132 loc) · 6.15 KB
/
new.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
{% extends 'base.html' %}
{% block content %}
<script type="text/javascript" src="/static/js/new.js"></script>
<div id="primary">
<h3>New Event</h3>
<div id="warn" style="margin:4px; margin-bottom:1.5em; padding:8px; border:1px solid #ffe7af; -webkit-border-radius: 6px; -moz-border-radius: 6px; border-radius: 6px; background:#fffaed"><b>{{human}}</b> will be held personally responsible for this event. You must show up and ensure the rules below are followed. Failure to make a good faith effort will result in suspension of event hosting privileges for 45 days.</div>
<div style="margin:4px; margin-bottom:1.5em; padding:8px; color: black; display:none; border:1px solid red; background:#fee; " id="error"></div>
<div style="width: 46%; float: right; font-size: smaller; padding: 8px; -moz-border-radius: 8px; -webkit-border-radius: 8px; background: #eee; line-height: normal;" id="terms">
{{rules}}
</div>
<form method="post" style="width: 49%;">
<h4>Event Name</h4>
<input type="text" name="name" style="width: 300px; margin-left: 4px;" />
<h4>When</h4>
<table style="margin: 0px;">
<tr>
<td class="first"><label for="date">Date:</label>
<input name="date" id="datepicker" readonly="readonly"/></td>
<td><label for="start_time">Start Time:</label>
<select name="start_time_hour">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
<option>11</option>
<option>12</option>
</select>:
<select name="start_time_minute">
<option>00</option>
<option>15</option>
<option>30</option>
<option>45</option>
</select>
<select name="start_time_ampm">
<option>pm</option>
<option>am</option>
</select>
</td>
</tr>
<tr>
<td> </td>
<td><label for="end_time">End Time:</label>
<select name="end_time_hour">
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
<option>5</option>
<option>6</option>
<option>7</option>
<option>8</option>
<option>9</option>
<option>10</option>
<option>11</option>
<option>12</option>
</select>:
<select name="end_time_minute">
<option>00</option>
<option>15</option>
<option>30</option>
<option>45</option>
</select>
<select name="end_time_ampm">
<option>pm</option>
<option>am</option>
</select>
</td>
</tr>
</table>
<h4>Type of Event</h4>
<table style="margin: 0px;"><tr>
<td class="first"><label for="type">Category:</label>
<select name="type" id="type-select" onchange="if(this.value=='Other...'){showOther();$('#type-text').focus()}">
<option>Meetup</option>
<option>Hackathon</option>
<option>Conference</option>
<option>Workshop</option>
<option>Lecture</option>
<option>Social</option>
<option>Setup Time</option>
<option>Dojo Admin</option>
<option>Other...</option>
</select>
<input type="text" id="type-text" onblur="$('#type-select').append('<option>'+this.value+'</option>');$('#type-select').val(this.value);hideOther();" style="display: none;" size="15"></td>
<td><label for="estimated_size">Expected Size:</label>
<input type="text" name="estimated_size" size="4" style="text-align: right;" /> <span>people</span></td>
</tr></table>
<h4>External Contact (if applicable)</h4>
<table style="margin: 0px;"><tr>
<td class="first"><label for="contact_name">Name:</label>
<input type="text" name="contact_name" size="16" /></td>
<td><label for="contact_phone">Phone Number:</label>
<input type="text" name="contact_phone" size="16" /></td>
</tr></table>
<h4>More Info (optional)</h4>
<table style="margin: 0px;">
<tr><td><label for="details">Event details:</label>
<textarea rows="5" style="width: 300px;" name="details"></textarea></td></tr>
<tr><td><label for="url">Event URL:</label>
<input type="text" name="url" style="width: 300px;" /></td></tr>
<tr><td><label for="fee">Entry Fee:</label>
<input type="text" name="fee" size="8"/> <span style="color: gray; font-size: x-small;">Leave blank if free</span></td></tr>
<tr><td><label for="details">Requested Rooms:</label>
<span style="font-size:10;">(Capacity in parentheses)</span><br />
{% for room in rooms %}
<nobr><input type="checkbox" id="room-{{room.0|strip_spaces}}" name="rooms" value="{{room.0}}" /><label for="room-{{room.0}}">{{room.0|title}} ({{room.1}})</label></nobr>{% endfor %}
</td></tr>
<tr><td style="padding-top: 8px;"><label for="details">Special notes:</label>
<textarea rows="3" style="width: 300px;" name="notes"></textarea></td></tr>
</tr></table>
<p style="font-size:smaller;">You have 30 days for approval before your event application expires. The primary bottleneck to quick approval is getting staff to opt in. You will be notified either way.</p>
<p style="font-size:smaller; font-weight: bold;">By submitting this event, you agree to the responsibilities listed to the right.</p>
<input type="submit" value="I agree, submit event for approval" style="font-size: larger; margin: 5px;" />
</form>
</div>
<script>
$('#room-FrontArea').click(function() {
var answer = confirm("The front lobby can only be reserved for events related to Hacker Dojo, such as official meetings, Happy Hour, and such. Please confirm this event is for Official Hacker Dojo Business only.");
if(answer){
$('#room-FrontArea').attr('checked', true);
} else {
$('#room-FrontArea').removeAttr('checked');
}
});
</script>
{% endblock %}