templates/view_event.html
author nishanth
Fri, 16 Apr 2010 14:47:42 +0530
changeset 68 73720e19d222
parent 57 d321a507fc26
child 75 bda9ee536063
permissions -rw-r--r--
removed extra linebreaks in view event template.

{% extends "base.html" %}
{% block content %}
	<h3>{{ event.title }}</h3>
	<b>Description:</b><br />
	{{event.description|linebreaksbr}}
	<b>Duration:</b> {{event.start_date|date:"d M Y"}} to {{event.stop_date|date:"d M Y"}}<br />
	<b>Venue:</b> {{event.venue}} <br /><br />

	{% if event.registration_is_open %}	
		{% if user.is_authenticated %}
			{% if not is_attendee %}
				<a href="/reg/event/register/{{event.key}}">Register for this workshop.</a><br />
			{% endif %}	
		{% else %}
			<a href="/reg/register/{{event.key}}">Register for this workshop</a>.<br />
		{% endif %}
	{% else %}
		Registration for this workshop is not open at this moment.<br />
	{% endif %}
	
	{% if can_submit_feedback %}
		<a href="/feedback/submit/{{event.key}}">Submit feedback for day {{event.feedback_status}} of {{event.title}}<br />
	{% endif %}
	<br />
	{% if is_org %}
		<a href="/reg/event/attendees/{{event.key}}">View list of people registered for the workshop</a> <br />
		<a href="/feedback/list/{{event.key}}">View submitted feedbacks</a><br />
		<a href="/feedback/report/{{event.key}}">View a report of the workshop</a><br /><br />
		{% if user.is_staff %}
			{% if event.registration_is_open %}
				<a href="/reg/event/registration/close/{{event.key}}">Close registration</a><br />
			{% else %}
				<a href="/reg/event/registration/open/{{event.key}}">Open registration</a><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}}">Open feedback</a><br />
			{% else %}
				<a href="/reg/event/feedback/close/{{event.key}}">Close feedback for day {{event.feedback_status}}</a><br />
			{% endifequal %}
		{% endif %}
	{% endif %}
	
{% endblock %}