templates/view_event.html
author nishanth
Thu, 15 Apr 2010 12:38:29 +0530
changeset 40 c1fff32eb494
parent 38 b63b78017225
child 41 ab0a8a72b069
permissions -rw-r--r--
included the link to view report of workshop in view event page
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
14
cd6911eaac2c moved templates into templates directory and added user in context .
nishanth
parents:
diff changeset
     1
{% extends "base.html" %}
cd6911eaac2c moved templates into templates directory and added user in context .
nishanth
parents:
diff changeset
     2
{% block content %}
26
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
     3
	<h3>{{ event.title }}</h3>
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
     4
	<b>Description:</b><br />
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
     5
	{{event.description|linebreaksbr}}<br /><br />
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
     6
	<b>Duration:</b> {{event.start_date|date:"d M Y"}} to {{event.stop_date|date:"d M Y"}}<br /><br />
18
7dae32a2439b prettified the home page and moved workshops to another page called workshops.
nishanth
parents: 14
diff changeset
     7
	
26
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
     8
	{% if user.is_authenticated %}
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
     9
		{% if event.registration_is_open %}
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
    10
			{% if is_attendee %}
34
c12a0b773720 prettifying the view event page .
nishanth
parents: 26
diff changeset
    11
				You have registered for this workshop.<br />
26
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
    12
			{% else %}
34
c12a0b773720 prettifying the view event page .
nishanth
parents: 26
diff changeset
    13
				<a href="/reg/event/register/{{event.key}}">Register for this workshop.</a><br />
26
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
    14
			{% endif %}	
14
cd6911eaac2c moved templates into templates directory and added user in context .
nishanth
parents:
diff changeset
    15
		{% else %}
34
c12a0b773720 prettifying the view event page .
nishanth
parents: 26
diff changeset
    16
			Registration for this workshop is not open at this moment.<br />
14
cd6911eaac2c moved templates into templates directory and added user in context .
nishanth
parents:
diff changeset
    17
		{% endif %}
26
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
    18
	{% else %}
34
c12a0b773720 prettifying the view event page .
nishanth
parents: 26
diff changeset
    19
		You must be a registered user to register for this workshop.<br />
14
cd6911eaac2c moved templates into templates directory and added user in context .
nishanth
parents:
diff changeset
    20
	{% endif %}
cd6911eaac2c moved templates into templates directory and added user in context .
nishanth
parents:
diff changeset
    21
	
cd6911eaac2c moved templates into templates directory and added user in context .
nishanth
parents:
diff changeset
    22
	{% if can_submit_feedback %}
38
b63b78017225 added date tags in view event template and open_feedback template is now a lil better .
nishanth
parents: 36
diff changeset
    23
		<a href="/feedback/submit/{{event.key}}">Submit feedback for day {{event.feedback_status}} of {{event.title}}<br />
14
cd6911eaac2c moved templates into templates directory and added user in context .
nishanth
parents:
diff changeset
    24
	{% endif %}
38
b63b78017225 added date tags in view event template and open_feedback template is now a lil better .
nishanth
parents: 36
diff changeset
    25
	<br />
14
cd6911eaac2c moved templates into templates directory and added user in context .
nishanth
parents:
diff changeset
    26
	{% if is_org %}
36
cd0f61fa31f1 removed quiz links from view event template .
nishanth
parents: 34
diff changeset
    27
		<a href="/reg/event/attendees/{{event.key}}">View list of people registered for the workshop</a> <br />
cd0f61fa31f1 removed quiz links from view event template .
nishanth
parents: 34
diff changeset
    28
		<a href="/feedback/list/{{event.key}}">View submitted feedbacks</a><br /><br />
40
c1fff32eb494 included the link to view report of workshop in view event page
nishanth
parents: 38
diff changeset
    29
		<a href="/feedback/report/{{event.key}}">View a report of the workshop</a>
26
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
    30
		{% if user.is_staff %}
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
    31
			{% if event.registration_is_open %}
36
cd0f61fa31f1 removed quiz links from view event template .
nishanth
parents: 34
diff changeset
    32
				<a href="/reg/event/registration/close/{{event.key}}">Close the registration</a><br />
26
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
    33
			{% else %}
36
cd0f61fa31f1 removed quiz links from view event template .
nishanth
parents: 34
diff changeset
    34
				<a href="/reg/event/registration/open/{{event.key}}">Open the registration</a><br />
26
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
    35
			{% endif %}
36
cd0f61fa31f1 removed quiz links from view event template .
nishanth
parents: 34
diff changeset
    36
<!--			
26
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
    37
			{% ifequal event.quiz_status "00" %}
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
    38
				<a href="/reg/event/quiz/open/{{event.key}}">Click here</a> to open quiz.<br />
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
    39
			{% else %}
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
    40
				<a href="/reg/event/registration/close/{{event.key}}">Click here</a> to close the registration.<br />
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
    41
			{% endifequal %}
36
cd0f61fa31f1 removed quiz links from view event template .
nishanth
parents: 34
diff changeset
    42
	-->		
26
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
    43
			{% ifequal event.feedback_status "0" %}
36
cd0f61fa31f1 removed quiz links from view event template .
nishanth
parents: 34
diff changeset
    44
				<a href="/reg/event/feedback/open/{{event.key}}">Open feedback</a><br />
26
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
    45
			{% else %}
36
cd0f61fa31f1 removed quiz links from view event template .
nishanth
parents: 34
diff changeset
    46
				<a href="/reg/event/feedback/close/{{event.key}}">Close the feedback for day {{event.feedback_status}}</a><br />
26
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
    47
			{% endifequal %}
14
cd6911eaac2c moved templates into templates directory and added user in context .
nishanth
parents:
diff changeset
    48
		{% endif %}
cd6911eaac2c moved templates into templates directory and added user in context .
nishanth
parents:
diff changeset
    49
	{% endif %}
cd6911eaac2c moved templates into templates directory and added user in context .
nishanth
parents:
diff changeset
    50
	
cd6911eaac2c moved templates into templates directory and added user in context .
nishanth
parents:
diff changeset
    51
{% endblock %}