Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 62b999a7fe
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (28 sloc) 0.628 kB
<!DOCTYPE html>
<html>
<body>
<h1>Example app</h1>
{% load url from future %}
{% for talk in talks %}
{% if forloop.first %}
<h2>{{ talks_count }} talks</h2>
{% endif %}
<div>
<p><strong>{{ talk.topic }}</strong>
&ndash; {{ talk.when|date:"j F Y" }}<br>
Duration: {{ talk.duration }}h<br>
Tags: {{ talk.tags|join:", " }}<br>
<a href="{% url 'delete_talk' talk.pk %}">delete</a>
</p>
</div>
{% empty %}
<p><em>No talks added yet</em></p>
{% endfor %}
<hr>
<form action="." method="post">
{% csrf_token %}
{{ form.as_p }}
<input type="submit" value="+ Add talk">
</form>
</body>
</html>
Jump to Line
Something went wrong with that request. Please try again.