diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-03-25 18:43:47 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2016-03-25 18:43:47 +0100 |
commit | 1fe6a52803b4d78f57f52cdbe138010cc4c00f80 (patch) | |
tree | 3eb44592abefec9ab8a2ee0981eba4ada17d9a1a /papillon/templates/editChoicesUser.html | |
parent | 3fcdf69304580650c6244165aae0b1fc46221cff (diff) | |
parent | 525fdda2aaae3adc8534ebda777dedddb17ef25f (diff) | |
download | Papillon-1fe6a52803b4d78f57f52cdbe138010cc4c00f80.tar.bz2 Papillon-1fe6a52803b4d78f57f52cdbe138010cc4c00f80.zip |
Merge branch 'responsive' of https://github.com/Trim/papillon into responsive
Conflicts:
papillon/templates/base.html
Diffstat (limited to 'papillon/templates/editChoicesUser.html')
-rw-r--r-- | papillon/templates/editChoicesUser.html | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/papillon/templates/editChoicesUser.html b/papillon/templates/editChoicesUser.html index 174c02f..958d05a 100644 --- a/papillon/templates/editChoicesUser.html +++ b/papillon/templates/editChoicesUser.html @@ -12,16 +12,20 @@ {% block content %} <p><a href="{% url 'poll' poll.base_url %}">{%trans "Return to the poll"%}</a></p> <h2>{% trans "Choices" %}</h2> -{% if choices %}<table class='new_poll'> - <tr> - <th>{% trans "Label" %}</th> - <th>{% trans "Limit" %}</th> - </tr> - {% for choice in choices %}<tr> - <td>{%if poll.dated_choices%}{{choice.date|date:_("DATETIME_FORMAT")}}{%else%}{{choice.name}}{%endif%}</td> - <td>{% if choice.limit %}{% trans "Limited to"%} {{choice.limit}} {% trans "vote(s)" %}{% endif %}</td> - </tr>{% endfor %} -</table> +{% if choices %} + <div class='new_poll'> + <div class='field_label'>{% trans "Current choices" %}</div> + <table> + <tr> + <th>{% trans "Name" %}</th> + <th>{% trans "Limit" %}</th> + </tr> + {% for choice in choices %}<tr> + <td>{%if poll.dated_choices%}{{choice.date|date:_("DATETIME_FORMAT")}}{%else%}{{choice.name}}{%endif%}</td> + <td>{% if choice.limit %}{% trans "Limited to"%} {{choice.limit}} {% trans "vote(s)" %}{% endif %}</td> + </tr>{% endfor %} + </table> + </div> {% endif %} {% include 'editChoices.html' %} {% endblock %} |