templates/list_events.html
changeset 18 7dae32a2439b
child 19 115860e87238
equal deleted inserted replaced
17:125b6fc8f20b 18:7dae32a2439b
       
     1 {% extends "base.html" %}
       
     2 {% block content %}
       
     3 	{% if ongoing_events %}
       
     4 		Ongoing Workshops:
       
     5 		<table cellspacing=5 cellpadding=5>
       
     6 		{% for event in ongoing_events %}
       
     7 			<tr>
       
     8 				<td><a href="/reg/event/view/{{event.key}}">{{event.title}}</a></td>
       
     9 				<td>{{event.start_date|date:"d M Y"}} - {{event.stop_date|date:"d M Y"}}</td>
       
    10 			</tr>
       
    11 		{% endfor %}
       
    12 		</table>
       
    13 	{% endif %}
       
    14 	
       
    15 	{% if upcoming_events %}
       
    16 		Upcoming Workshops:
       
    17 		<table cellspacing=5 cellpadding=5>
       
    18 		{% for event in upcoming_events %}
       
    19 			<tr>
       
    20 				<td><a href="/reg/event/view/{{event.key}}">{{event.title}}</a></td>
       
    21 				<td>{{event.start_date|date:"d M Y"}} - {{event.stop_date|date:"d M Y"}}</td>
       
    22 			</tr>
       
    23 		{% endfor %}
       
    24 		</table>
       
    25 	{% endif %}
       
    26 	
       
    27 	<br />
       
    28 	
       
    29 	{% if previous_events %}
       
    30 		Previous Workshops:
       
    31 		<table cellspacing=5 cellpadding=5>
       
    32 		{% for event in previous_events %}
       
    33 			<tr>
       
    34 				<td><a href="/reg/event/view/{{event.key}}">{{event.title}}</a></td>
       
    35 				<td>{{event.start_date|date:"d M Y"}} - {{event.stop_date|date:"d M Y"}}</td>
       
    36 			</tr>
       
    37 		{% endfor %}
       
    38 		</table>
       
    39 	{% endif %}
       
    40 
       
    41 {% endblock %}
       
    42