templates/view_event.html
author nishanth
Thu, 15 Apr 2010 12:36:21 +0530
changeset 39 61d558a69b0d
parent 38 b63b78017225
child 40 c1fff32eb494
permissions -rw-r--r--
implemented listing of feedbacks.

{% extends "base.html" %}
{% block content %}
	<h3>{{ event.title }}</h3>
	<b>Description:</b><br />
	{{event.description|linebreaksbr}}<br /><br />
	<b>Duration:</b> {{event.start_date|date:"d M Y"}} to {{event.stop_date|date:"d M Y"}}<br /><br />
	
	{% if user.is_authenticated %}
		{% if event.registration_is_open %}
			{% if is_attendee %}
				You have registered for this workshop.<br />
			{% else %}
				<a href="/reg/event/register/{{event.key}}">Register for this workshop.</a><br />
			{% endif %}	
		{% else %}
			Registration for this workshop is not open at this moment.<br />
		{% endif %}
	{% else %}
		You must be a registered user to register for this workshop.<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 /><br />
		{% if user.is_staff %}
			{% if event.registration_is_open %}
				<a href="/reg/event/registration/close/{{event.key}}">Close the registration</a><br />
			{% else %}
				<a href="/reg/event/registration/open/{{event.key}}">Open the 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 the feedback for day {{event.feedback_status}}</a><br />
			{% endifequal %}
		{% endif %}
	{% endif %}
	
{% endblock %}