templates/view_event.html
author nishanth
Mon, 12 Apr 2010 18:15:21 +0530
changeset 18 7dae32a2439b
parent 14 cd6911eaac2c
child 19 115860e87238
permissions -rw-r--r--
prettified the home page and moved workshops to another page called workshops.

{% extends "base.html" %}
{% block content %}
	<h3>{{ event.title }}</h3><br />
	Description:<br />
	{{event.description|linebreaksbr}}<br />
	duration of the workshop: {{event.start_date}} to {{event.stop_date}}<br />
	
	{% if not is_guest and event.registration_is_open %}
		{% if is_attendee %}
			You have registered for this workshop.
		{% else %}
			<a href="/reg/event/register/{{event.key}}">Click here</a> to register for the workshop.<br />
		{% endif %}
	{% endif %}
	
	{% if can_submit_feedback %}
		<a href="/feedback/submit/{{event.key}}">Click here</a> to submit feedback for day {{event.feedback_status}}.<br />
	{% endif %}
	
	{% if is_org %}
		{% if event.registration_is_open %}
			<a href="/reg/event/registration/close/{{event.key}}">Click here</a> to close the registration.<br />
		{% else %}
			<a href="/reg/event/registration/open/{{event.key}}">Click here</a> to open the registration.<br />
		{% endif %}
		
		{% ifequal event.quiz_status "00" %}
			<a href="/reg/event/quiz/open/{{event.key}}">Click here</a> to open quiz.<br />
		{% else %}
			<a href="/reg/event/registration/close/{{event.key}}">Click here</a> to close the registration.<br />
		{% endifequal %}
		
		{% ifequal event.feedback_status "0" %}
			<a href="/reg/event/feedback/open/{{event.key}}">Click here</a> to open the feedback.<br />
		{% else %}
			<a href="/feedback/list/{{event.key}}">Click here</a> to see the feedbacks that we submitted.<br />
			<a href="/reg/event/feedback/close/{{event.key}}">Click here</a> to close the feedback for day {{event.feedback_status}}.<br />
		{% endifequal %}
	{% endif %}
	
{% endblock %}