Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

patches requested #29

Closed
wants to merge 4 commits into from

1 participant

@mdks

hi all, sorry for the breakage here. hope this helps. tested on my dev machine.

thanks,
j

@mdks mdks closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 12, 2011
  1. patches requested to log

    jonathan authored
Commits on Apr 13, 2011
  1. remove cubby 3 from event system

    jonathan authored
  2. patch for github issue #18... warn user who is trying to register the…

    jonathan authored
    … front area
This page is out of date. Refresh to see the latest.
Showing with 17 additions and 2 deletions.
  1. +0 −1  models.py
  2. +4 −0 templatefilters.py
  3. +13 −1 templates/new.html
View
1  models.py
@@ -12,7 +12,6 @@
('140b', 129),
('Cubby 1', 2),
('Cubby 2', 2),
- ('Cubby 3', 2),
('Upstairs Office', 2),
('Front Area', 20))
# GUESTS_PER_STAFF = 25
View
4 templatefilters.py
@@ -2,6 +2,10 @@
register = webapp.template.create_template_register()
@register.filter
+def strip_spaces(string):
+ return string.replace(" ", "")
+
+@register.filter
def american_date(element):
return element.strftime('%m/%d/%Y')
View
14 templates/new.html
@@ -116,7 +116,7 @@
<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}}" name="rooms" value="{{room.0}}" /><label for="room-{{room.0}}">{{room.0|title}} ({{room.1}})</label></nobr>{% endfor %}
+ <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>
@@ -129,4 +129,16 @@
</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 %}
Something went wrong with that request. Please try again.