diff -r 17966ca75ca9 -r 9d18daf5277f templates/view_event.html
--- a/templates/view_event.html Tue Apr 13 14:29:00 2010 +0530
+++ b/templates/view_event.html Tue Apr 13 14:50:48 2010 +0530
@@ -1,16 +1,22 @@
{% extends "base.html" %}
{% block content %}
-
{{ event.title }}
- Description:
- {{event.description|linebreaksbr}}
- duration of the workshop: {{event.start_date|date:"d M Y"}} to {{event.stop_date|date:"d M Y"}}
+ {{ event.title }}
+ Description:
+ {{event.description|linebreaksbr}}
+ Duration: {{event.start_date|date:"d M Y"}} to {{event.stop_date|date:"d M Y"}}
- {% if not is_guest and event.registration_is_open %}
- {% if is_attendee %}
- You have registered for this workshop.
+ {% if user.is_authenticated %}
+ {% if event.registration_is_open %}
+ {% if is_attendee %}
+ You have registered for this workshop.
+ {% else %}
+ Register for the workshop.
+ {% endif %}
{% else %}
- Click here to register for the workshop.
+ Registration for this workshop is not open at this moment.
{% endif %}
+ {% else %}
+ You must be a registered user to register for this workshop.
{% endif %}
{% if can_submit_feedback %}
@@ -19,24 +25,26 @@
{% if is_org %}
Click here to view list of people registered for the workshop.
- {% if event.registration_is_open %}
- Click here to close the registration.
- {% else %}
- Click here to open the registration.
+ {% if user.is_staff %}
+ {% if event.registration_is_open %}
+ Click here to close the registration.
+ {% else %}
+ Click here to open the registration.
+ {% endif %}
+
+ {% ifequal event.quiz_status "00" %}
+ Click here to open quiz.
+ {% else %}
+ Click here to close the registration.
+ {% endifequal %}
+
+ {% ifequal event.feedback_status "0" %}
+ Click here to open the feedback.
+ {% else %}
+ Click here to see the feedbacks that we submitted.
+ Click here to close the feedback for day {{event.feedback_status}}.
+ {% endifequal %}
{% endif %}
-
- {% ifequal event.quiz_status "00" %}
- Click here to open quiz.
- {% else %}
- Click here to close the registration.
- {% endifequal %}
-
- {% ifequal event.feedback_status "0" %}
- Click here to open the feedback.
- {% else %}
- Click here to see the feedbacks that we submitted.
- Click here to close the feedback for day {{event.feedback_status}}.
- {% endifequal %}
{% endif %}
{% endblock %}