templates/view_event.html
author nishanth
Thu, 15 Apr 2010 14:50:47 +0530
changeset 44 7d748db0c7c3
parent 43 757d1da69255
child 46 ff5f34e42aec
permissions -rw-r--r--
now show report page does not show report if there are no feedbacks .
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 />
43
757d1da69255 added venue field in event model and corresponding forms and views.
nishanth
parents: 41
diff changeset
     6
	<b>Duration:</b> {{event.start_date|date:"d M Y"}} to {{event.stop_date|date:"d M Y"}}<br />
757d1da69255 added venue field in event model and corresponding forms and views.
nishanth
parents: 41
diff changeset
     7
	<b>Venue:</b> {{event.venue}} <br /><br />
18
7dae32a2439b prettified the home page and moved workshops to another page called workshops.
nishanth
parents: 14
diff changeset
     8
	
26
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
     9
	{% if user.is_authenticated %}
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
    10
		{% if event.registration_is_open %}
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
    11
			{% if is_attendee %}
34
c12a0b773720 prettifying the view event page .
nishanth
parents: 26
diff changeset
    12
				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
    13
			{% else %}
34
c12a0b773720 prettifying the view event page .
nishanth
parents: 26
diff changeset
    14
				<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
    15
			{% endif %}	
14
cd6911eaac2c moved templates into templates directory and added user in context .
nishanth
parents:
diff changeset
    16
		{% else %}
34
c12a0b773720 prettifying the view event page .
nishanth
parents: 26
diff changeset
    17
			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
    18
		{% endif %}
26
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
    19
	{% else %}
34
c12a0b773720 prettifying the view event page .
nishanth
parents: 26
diff changeset
    20
		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
    21
	{% endif %}
cd6911eaac2c moved templates into templates directory and added user in context .
nishanth
parents:
diff changeset
    22
	
cd6911eaac2c moved templates into templates directory and added user in context .
nishanth
parents:
diff changeset
    23
	{% 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
    24
		<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
    25
	{% endif %}
38
b63b78017225 added date tags in view event template and open_feedback template is now a lil better .
nishanth
parents: 36
diff changeset
    26
	<br />
14
cd6911eaac2c moved templates into templates directory and added user in context .
nishanth
parents:
diff changeset
    27
	{% if is_org %}
36
cd0f61fa31f1 removed quiz links from view event template .
nishanth
parents: 34
diff changeset
    28
		<a href="/reg/event/attendees/{{event.key}}">View list of people registered for the workshop</a> <br />
41
ab0a8a72b069 added view report functionality. have to make it look better.
nishanth
parents: 40
diff changeset
    29
		<a href="/feedback/list/{{event.key}}">View submitted feedbacks</a><br />
ab0a8a72b069 added view report functionality. have to make it look better.
nishanth
parents: 40
diff changeset
    30
		<a href="/feedback/report/{{event.key}}">View a report of the workshop</a><br /><br />
26
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
    31
		{% if user.is_staff %}
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
    32
			{% if event.registration_is_open %}
44
7d748db0c7c3 now show report page does not show report if there are no feedbacks .
nishanth
parents: 43
diff changeset
    33
				<a href="/reg/event/registration/close/{{event.key}}">Close registration</a><br />
26
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
    34
			{% else %}
44
7d748db0c7c3 now show report page does not show report if there are no feedbacks .
nishanth
parents: 43
diff changeset
    35
				<a href="/reg/event/registration/open/{{event.key}}">Open registration</a><br />
26
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
    36
			{% endif %}
36
cd0f61fa31f1 removed quiz links from view event template .
nishanth
parents: 34
diff changeset
    37
<!--			
26
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
    38
			{% ifequal event.quiz_status "00" %}
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
    39
				<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
    40
			{% else %}
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
    41
				<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
    42
			{% endifequal %}
36
cd0f61fa31f1 removed quiz links from view event template .
nishanth
parents: 34
diff changeset
    43
	-->		
26
9d18daf5277f now the "you must register" link appears on view event page .
nishanth
parents: 19
diff changeset
    44
			{% ifequal event.feedback_status "0" %}
36
cd0f61fa31f1 removed quiz links from view event template .
nishanth
parents: 34
diff changeset
    45
				<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
    46
			{% else %}
44
7d748db0c7c3 now show report page does not show report if there are no feedbacks .
nishanth
parents: 43
diff changeset
    47
				<a href="/reg/event/feedback/close/{{event.key}}">Close 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
    48
			{% endifequal %}
14
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
	{% endif %}
cd6911eaac2c moved templates into templates directory and added user in context .
nishanth
parents:
diff changeset
    51
	
cd6911eaac2c moved templates into templates directory and added user in context .
nishanth
parents:
diff changeset
    52
{% endblock %}