summaryrefslogtreecommitdiff
path: root/templates/main.html
blob: 6c1e09da4a9cc7d4dd59f6337689172fc4133f98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{% extends "base.html" %}
{% load i18n %}

{% block content %}
{% if error %}<p class='error'>{{error}}</p>{%endif%}
<h2><a href='edit/0'>{%trans "Create a poll"%}</a></h2>
<p>{% trans "Create a new sondage for take a decision, find a date for a meeting, etc." %} <a href='edit/0'>{% trans "Create it!" %}</a></p>

{% if polls %}<h2>{%trans "Polls"%}</h2>{%endif%}
{% for poll in polls %}
<div class='poll-description'>
 <p><a href='/papillon/poll/{{poll.base_url}}'>{{poll.name}}</a></p>
 <p>{{poll.description}}</p>
</div>
{% endfor %}

{% if categories %}<h2>{%trans "Categories"%}</h2>{% endif %}
{% for category in categories %}
<h3><a href='category/{{category.id}}'>{{category.name}}</a></h3>
{% endfor %}

{% endblock %}