templates/view_event.html
changeset 57 d321a507fc26
parent 46 ff5f34e42aec
child 68 73720e19d222
equal deleted inserted replaced
56:3858a9d0f376 57:d321a507fc26
     3 	<h3>{{ event.title }}</h3>
     3 	<h3>{{ event.title }}</h3>
     4 	<b>Description:</b><br />
     4 	<b>Description:</b><br />
     5 	{{event.description|linebreaksbr}}<br /><br />
     5 	{{event.description|linebreaksbr}}<br /><br />
     6 	<b>Duration:</b> {{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 />
     7 	<b>Venue:</b> {{event.venue}} <br /><br />
     7 	<b>Venue:</b> {{event.venue}} <br /><br />
     8 	
     8 
     9 	{% if user.is_authenticated %}
     9 	{% if event.registration_is_open %}	
    10 		{% if event.registration_is_open %}
    10 		{% if user.is_authenticated %}
    11 			{% if is_attendee %}
    11 			{% if not is_attendee %}
    12 				You have registered for this workshop.<br />
       
    13 			{% else %}
       
    14 				<a href="/reg/event/register/{{event.key}}">Register for this workshop.</a><br />
    12 				<a href="/reg/event/register/{{event.key}}">Register for this workshop.</a><br />
    15 			{% endif %}	
    13 			{% endif %}	
    16 		{% else %}
    14 		{% else %}
    17 			Registration for this workshop is not open at this moment.<br />
    15 			<a href="/reg/register/{{event.key}}">Register for this workshop</a>.<br />
    18 		{% endif %}
    16 		{% endif %}
    19 	{% else %}
    17 	{% else %}
    20 		<a href="/reg/register/{{event.key}}">Register for this workshop</a>.<br />
    18 		Registration for this workshop is not open at this moment.<br />
    21 	{% endif %}
    19 	{% endif %}
    22 	
    20 	
    23 	{% if can_submit_feedback %}
    21 	{% if can_submit_feedback %}
    24 		<a href="/feedback/submit/{{event.key}}">Submit feedback for day {{event.feedback_status}} of {{event.title}}<br />
    22 		<a href="/feedback/submit/{{event.key}}">Submit feedback for day {{event.feedback_status}} of {{event.title}}<br />
    25 	{% endif %}
    23 	{% endif %}