Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

issue 11 print this page for your record

  • Loading branch information...
commit 6199d1a626abd5d6d5fb12a66d388f2700e39045 1 parent cbea4ec
jonathan authored
Showing with 6 additions and 7 deletions.
  1. +3 −7 main.py
  2. +3 −0  templates/confirmation.html
View
10 main.py
@@ -213,13 +213,9 @@ def post(self, id):
log_desc = log_desc + "<strong>Notes:</strong> " + previous_object.notes + " to " + event.notes + "<br />"
event.rooms = self.request.get_all('rooms')
if (previous_object.rooms != event.rooms):
- log_desc = log_desc + "<strong>Rooms changed</strong>" + "<br />"
- log_desc = log_desc + "<strong>Old room</strong>" + "<br />"
- for room in previous_object.rooms:
- log_desc = log_desc + room + ' '
- log_desc = log_desc + "<br /><strong>New room(s)</strong><br />"
- for room in event.rooms:
- log_desc = log_desc + room + ' '
+ log_desc = log_desc + "<strong>Rooms changed</strong><br />"
+ log_desc = log_desc + "<strong>Old room:</strong> " + previous_object.roomlist + "<br />"
+ log_desc = log_desc + "<strong>New room:</strong> " + event.roomlist + "<br />"
event.put()
log = HDLog(event=event,description=log_desc)
log.put()
View
3  templates/confirmation.html
@@ -12,6 +12,7 @@
<div class='b-block'><div class='b-label'>Date:</div><div class='b-data'>{{event.start_time|date:"l, F j Y"}}</div></div>
<div class='b-block'><div class='b-label'>Time:</div><div class='b-data'>{{event.start_time|date:"g:iA"|lower}} to {{event.end_time|date:"g:iA"|lower}}</div></div>
+<div class='b-block'><div class='b-label'>Rooms:</div><div class='b-data'>{{event.roomlist}}</div></div>
<h4>Responsibilities of a Member Who Would Like to Host an Event</h4>
<p>Failure to follow these rules may result in the event no longer being welcome at the dojo and/or suspension of the host's rights to host events.</p>
@@ -30,6 +31,8 @@
<li>Damages - You are held responsible for damages to Dojo facilities and equipment during your event.</li>
</ul>
+<p>Please print this page for your records.</p>
+
</div>
{% endblock %}
Please sign in to comment.
Something went wrong with that request. Please try again.