templates/list_attendees.html
author nishanth
Tue, 29 Jun 2010 16:12:29 +0530
changeset 103 ee9261c5ba18
parent 91 d5ae97aaa24d
permissions -rw-r--r--
the list_attendees page looks better now
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 %}
75
bda9ee536063 changed the urls to /workshop/registration/.. from /reg/.. in all the templates
nishanth
parents: 23
diff changeset
     3
	List of people registered for <a href="/workshop/registration/event/view/{{event.key}}">{{event.title}}</a><br /><br />
103
ee9261c5ba18 the list_attendees page looks better now
nishanth
parents: 91
diff changeset
     4
	<table cellspacing=4 cellpadding=3>
19
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
     5
	<tr>
103
ee9261c5ba18 the list_attendees page looks better now
nishanth
parents: 91
diff changeset
     6
                <td>S.No</td>
19
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
     7
		<td>Name</td>
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
     8
		<td>Gender</td>
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
     9
		<td>Profession</td>
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    10
		<td>College/Company</td>
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    11
		<td>Interests</td>
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    12
	</tr>
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    13
	{% for a_user in attendees %}
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    14
		<tr>
103
ee9261c5ba18 the list_attendees page looks better now
nishanth
parents: 91
diff changeset
    15
                        <td>{{forloop.counter}}</td>
19
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    16
			<td>{{a_user.get_full_name}}</td>
91
d5ae97aaa24d fixed another typo
nishanth
parents: 90
diff changeset
    17
			<td>{% ifequal a_user.get_profile.gender "M" %}Male{% else %}Female{%endifequal%}</td>
19
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    18
			<td>{% ifequal a_user.get_profile.profession "S" %}
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    19
				Student
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    20
				{% else %}
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    21
					{% ifequal a_user.get_profile.profession "F" %}
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    22
						Faculty
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    23
					{% else %}
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    24
						Professional
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    25
					{% endifequal %}
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    26
				{% endifequal %}
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    27
			</td>
89
9ab7fca05f38 fixed another typo
nishanth
parents: 88
diff changeset
    28
			<td>{{a_user.get_profile.affiliated_to}}</td>
19
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    29
			<td>{{a_user.get_profile.interests}}</td>
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    30
		</tr>
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    31
	{% endfor %}
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    32
	</table>
115860e87238 implemented list people functionality .
nishanth
parents:
diff changeset
    33
{% endblock %}