templates/view_event.html
changeset 26 9d18daf5277f
parent 19 115860e87238
child 34 c12a0b773720
equal deleted inserted replaced
25:17966ca75ca9 26:9d18daf5277f
     1 {% extends "base.html" %}
     1 {% extends "base.html" %}
     2 {% block content %}
     2 {% block content %}
     3 	<h3>{{ event.title }}</h3><br />
     3 	<h3>{{ event.title }}</h3>
     4 	Description:<br />
     4 	<b>Description:</b><br />
     5 	{{event.description|linebreaksbr}}<br />
     5 	{{event.description|linebreaksbr}}<br /><br />
     6 	duration of the workshop: {{event.start_date|date:"d M Y"}} to {{event.stop_date|date:"d M Y"}}<br />
     6 	<b>Duration:</b> {{event.start_date|date:"d M Y"}} to {{event.stop_date|date:"d M Y"}}<br /><br />
     7 	
     7 	
     8 	{% if not is_guest and event.registration_is_open %}
     8 	{% if user.is_authenticated %}
     9 		{% if is_attendee %}
     9 		{% if event.registration_is_open %}
    10 			You have registered for this workshop.
    10 			{% if is_attendee %}
       
    11 				You have registered for this workshop.
       
    12 			{% else %}
       
    13 				<a href="/reg/event/register/{{event.key}}">Register for the workshop.</a><br />
       
    14 			{% endif %}	
    11 		{% else %}
    15 		{% else %}
    12 			<a href="/reg/event/register/{{event.key}}">Click here</a> to register for the workshop.<br />
    16 			Registration for this workshop is not open at this moment.
    13 		{% endif %}
    17 		{% endif %}
       
    18 	{% else %}
       
    19 		You must be a registered user to register for this workshop.
    14 	{% endif %}
    20 	{% endif %}
    15 	
    21 	
    16 	{% if can_submit_feedback %}
    22 	{% if can_submit_feedback %}
    17 		<a href="/feedback/submit/{{event.key}}">Click here</a> to submit feedback for day {{event.feedback_status}}.<br />
    23 		<a href="/feedback/submit/{{event.key}}">Click here</a> to submit feedback for day {{event.feedback_status}}.<br />
    18 	{% endif %}
    24 	{% endif %}
    19 	
    25 	
    20 	{% if is_org %}
    26 	{% if is_org %}
    21 		<a href="/reg/event/attendees/{{event.key}}">Click here</a> to view list of people registered for the workshop. <br />
    27 		<a href="/reg/event/attendees/{{event.key}}">Click here</a> to view list of people registered for the workshop. <br />
    22 		{% if event.registration_is_open %}
    28 		{% if user.is_staff %}
    23 			<a href="/reg/event/registration/close/{{event.key}}">Click here</a> to close the registration.<br />
    29 			{% if event.registration_is_open %}
    24 		{% else %}
    30 				<a href="/reg/event/registration/close/{{event.key}}">Click here</a> to close the registration.<br />
    25 			<a href="/reg/event/registration/open/{{event.key}}">Click here</a> to open the registration.<br />
    31 			{% else %}
       
    32 				<a href="/reg/event/registration/open/{{event.key}}">Click here</a> to open the registration.<br />
       
    33 			{% endif %}
       
    34 			
       
    35 			{% ifequal event.quiz_status "00" %}
       
    36 				<a href="/reg/event/quiz/open/{{event.key}}">Click here</a> to open quiz.<br />
       
    37 			{% else %}
       
    38 				<a href="/reg/event/registration/close/{{event.key}}">Click here</a> to close the registration.<br />
       
    39 			{% endifequal %}
       
    40 			
       
    41 			{% ifequal event.feedback_status "0" %}
       
    42 				<a href="/reg/event/feedback/open/{{event.key}}">Click here</a> to open the feedback.<br />
       
    43 			{% else %}
       
    44 				<a href="/feedback/list/{{event.key}}">Click here</a> to see the feedbacks that we submitted.<br />
       
    45 				<a href="/reg/event/feedback/close/{{event.key}}">Click here</a> to close the feedback for day {{event.feedback_status}}.<br />
       
    46 			{% endifequal %}
    26 		{% endif %}
    47 		{% endif %}
    27 		
       
    28 		{% ifequal event.quiz_status "00" %}
       
    29 			<a href="/reg/event/quiz/open/{{event.key}}">Click here</a> to open quiz.<br />
       
    30 		{% else %}
       
    31 			<a href="/reg/event/registration/close/{{event.key}}">Click here</a> to close the registration.<br />
       
    32 		{% endifequal %}
       
    33 		
       
    34 		{% ifequal event.feedback_status "0" %}
       
    35 			<a href="/reg/event/feedback/open/{{event.key}}">Click here</a> to open the feedback.<br />
       
    36 		{% else %}
       
    37 			<a href="/feedback/list/{{event.key}}">Click here</a> to see the feedbacks that we submitted.<br />
       
    38 			<a href="/reg/event/feedback/close/{{event.key}}">Click here</a> to close the feedback for day {{event.feedback_status}}.<br />
       
    39 		{% endifequal %}
       
    40 	{% endif %}
    48 	{% endif %}
    41 	
    49 	
    42 {% endblock %}
    50 {% endblock %}