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

{% extends "base.html" %}
{% block content %}
	List of people registered for <a href="/workshop/registration/event/view/{{event.key}}">{{event.title}}</a><br /><br />
	<table cellspacing=4 cellpadding=3>
	<tr>
                <td>S.No</td>
		<td>Name</td>
		<td>Gender</td>
		<td>Profession</td>
		<td>College/Company</td>
		<td>Interests</td>
	</tr>
	{% for a_user in attendees %}
		<tr>
                        <td>{{forloop.counter}}</td>
			<td>{{a_user.get_full_name}}</td>
			<td>{% ifequal a_user.get_profile.gender "M" %}Male{% else %}Female{%endifequal%}</td>
			<td>{% ifequal a_user.get_profile.profession "S" %}
				Student
				{% else %}
					{% ifequal a_user.get_profile.profession "F" %}
						Faculty
					{% else %}
						Professional
					{% endifequal %}
				{% endifequal %}
			</td>
			<td>{{a_user.get_profile.affiliated_to}}</td>
			<td>{{a_user.get_profile.interests}}</td>
		</tr>
	{% endfor %}
	</table>
{% endblock %}