diff options
author | Adrien Dorsaz <adrien@adorsaz.ch> | 2013-08-09 00:37:52 +0200 |
---|---|---|
committer | Adrien Dorsaz <adrien@adorsaz.ch> | 2013-08-09 00:37:52 +0200 |
commit | df9b2f33da2f17bd82dbc627ae9b25d295820aed (patch) | |
tree | 9b330a615698be3f8f6d71d01fecf8b92c689ac6 | |
parent | 893bd76849960af8e65842689bb901a5d0d5bbea (diff) | |
download | Papillon-df9b2f33da2f17bd82dbc627ae9b25d295820aed.tar.bz2 Papillon-df9b2f33da2f17bd82dbc627ae9b25d295820aed.zip |
Indent and update design for editChoiceUser
-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 %} |