templates/list_attendees.html
author nishanth
Tue, 13 Apr 2010 16:32:13 +0530
changeset 37 981c3eb98e0e
parent 23 42e2a810e1c8
child 75 bda9ee536063
permissions -rw-r--r--
days are now calucated from dates given for the event .
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
19
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
     1
{% extends "base.html" %}
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
     2
{% block content %}
23
42e2a810e1c8 modified seed_db and view_event template .
nishanth
parents: 19
diff changeset
     3
	List of people registered for <a href="/reg/event/view/{{event.key}}">{{event.title}}</a><br /><br />
19
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
     4
	<table cellspacing=5 cellpadding=5>
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
     5
	<tr>
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
     6
		<td>Name</td>
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
     7
		<td>Gender</td>
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
     8
		<td>Profession</td>
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
     9
		<td>College/Company</td>
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    10
		<td>Interests</td>
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    11
	</tr>
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    12
	{% for a_user in attendees %}
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    13
		<tr>
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    14
			<td>{{a_user.get_full_name}}</td>
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    15
			<td>{{a_user.get_profile.gender}}</td>
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    16
			<td>{% ifequal a_user.get_profile.profession "S" %}
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    17
				Student
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    18
				{% else %}
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    19
					{% ifequal a_user.get_profile.profession "F" %}
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    20
						Faculty
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    21
					{% else %}
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    22
						Professional
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    23
					{% endifequal %}
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    24
				{% endifequal %}
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    25
			</td>
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    26
			<td>{{a_user.get_profile.interests}}</td>
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    27
		</tr>
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    28
	{% endfor %}
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    29
	</table>
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    30
{% endblock %}