templates/view_event.html
author nishanth
Fri, 23 Apr 2010 16:35:42 +0530
changeset 98 1af134a1e53d
parent 83 b8f6bc32d8f7
permissions -rw-r--r--
now an email will be sent to user after he resets his password.

{% extends "base.html" %}
{% block content %}
	<h3>{{ event.title }}</h3>
	<b>Description:</b><br />
	{{event.description|linebreaksbr}}
	<br />
	<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="/workshop/registration/event/register/{{event.key}}">Register for this workshop.</a><br />
			{% endif %}	
		{% else %}
			<a href="/workshop/registration/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="/workshop/feedback/submit/{{event.key}}">Submit feedback for day {{event.feedback_status}} of {{event.title}}<br />
	{% endif %}
	<br />
	{% if is_org %}
		<a href="/workshop/registration/event/attendees/{{event.key}}">View list of people registered for the workshop</a> <br />
		<a href="/workshop/feedback/list/{{event.key}}">View submitted feedbacks</a><br />
		<a href="/workshop/feedback/report/{{event.key}}">View a report of the workshop</a><br /><br />
		{% if user.is_staff %}
			{% if event.registration_is_open %}
				<a href="/workshop/registration/event/registration/close/{{event.key}}">Close registration</a><br />
			{% else %}
				<a href="/workshop/registration/event/registration/open/{{event.key}}">Open registration</a><br />
			{% endif %}
<!--			
			{% ifequal event.quiz_status "00" %}
				<a href="/workshop/registration/event/quiz/open/{{event.key}}">Click here</a> to open quiz.<br />
			{% else %}
				<a href="/workshop/registration/event/registration/close/{{event.key}}">Click here</a> to close the registration.<br />
			{% endifequal %}
	-->		
			{% ifequal event.feedback_status "0" %}
				<a href="/workshop/registration/event/feedback/open/{{event.key}}">Open feedback</a><br />
			{% else %}
				<a href="/workshop/registration/event/feedback/close/{{event.key}}">Close feedback for day {{event.feedback_status}}</a><br />
			{% endifequal %}
		{% endif %}
	{% endif %}
	
{% endblock %}