templates/view_event.html
author nishanth
Tue, 13 Apr 2010 14:50:48 +0530
changeset 26 9d18daf5277f
parent 19 115860e87238
child 34 c12a0b773720
permissions -rw-r--r--
now the "you must register" link appears on view event page .

{% 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.
			{% else %}
				<a href="/reg/event/register/{{event.key}}">Register for the workshop.</a><br />
			{% endif %}	
		{% else %}
			Registration for this workshop is not open at this moment.
		{% endif %}
	{% else %}
		You must be a registered user to register for this workshop.
	{% 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 %}
		<a href="/reg/event/attendees/{{event.key}}">Click here</a> to view list of people registered for the workshop. <br />
		{% if user.is_staff %}
			{% 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 %}
	{% endif %}
	
{% endblock %}