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/edit.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/edit.html')
-rw-r--r-- | papillon/templates/edit.html | 84 |
1 files changed, 43 insertions, 41 deletions
diff --git a/papillon/templates/edit.html b/papillon/templates/edit.html index 647700d..5a33ebd 100644 --- a/papillon/templates/edit.html +++ b/papillon/templates/edit.html @@ -11,47 +11,49 @@ {% block content %} <h2>{% trans "Edit poll" %}</h2> -<form action="." method="post"> -<table class='new_poll'> - <tr> - <td><label>{% trans "Poll url" %}</label></td> - <td> -<a href="{% url 'poll' poll.base_url %}">{{ base_url }}</a> - </td> - <td class='form_description'><p> -{% trans "Copy this address and send it to voters who want to participate to this poll" %} - </p></td> - </tr> - <tr> - <td><label>{% trans "Administration url" %}</label></td> - <td> -<a href="{% url 'edit' poll.admin_url %}">{{ edit_url }}</a> - </td> - <td class='form_description'><p> - {% trans "Address to modify the current poll" %} - </p></td> - </tr> - <tr> - <td><label>{% trans "Choices administration url" %}</label></td> - <td> -<a href="{% url 'edit_choices_admin' poll.admin_url %}">{{choices_url }}</a> - </td> - <td class='form_description'><p> - {% trans "Address to modify choices of the current poll." %} - </p></td> - </tr> - {% for field in form %} - {% if field.is_hidden %} - {{field}} - {% else %} - <tr><td colspan='3'>{{field.errors}}</td></tr> - <tr> - <td>{{field.label_tag}}</td> - <td>{{field}}</td> - {% if field.help_text %}<td class='form_description'>{{field.help_text|markdown}}</td>{%endif%} - </tr> - {% endif %} - {% endfor %} +<form class='new_poll' action="." method="post"> + {% csrf_token %} + + <div class="field_label"> + <label id="">{% trans "Poll url" %}</label> + <span class="help_button" title='{% trans "Copy this address and send it to voters who want to participate to this poll" %}'>?</span> + </div> + <input type="text" readonly value='{{ base_url }}'> + + <div class="field_label"> + <label id="">{% trans "Administration url" %}</label> + <span class="help_button" title='{% trans "Address to modify the current poll" %}'>?</span> + </div> + <input type="text" readonly value='{{ edit_url }}'> + + <div class="field_label"> + <label id="">{% trans "Choices administration url" %}</label> + <span class="help_button" title='{% trans "Address to modify choices of the current poll." %}'>?</span> + </div> + <input type="text" readonly value='{{choices_url }}'> + + {% for field in form %} + {% if field.is_hidden %} + {{field}} + {% else %} + + <div class="field_label"> + {{field.label_tag}} + <span class="help_button" title="{{field.help_text}}">?</span> + </div> + <div class="field_errors"> + {% if field.errors %} + Error(s) : + <ol class="errorlist"> + {% for error in field.errors %} + <li>{{ error|escape }}</li> + {% endfor %} + </ol> + {% endif %} + </div> + {{field}} + {% endif %} + {% endfor %} <tr> <td></td> <td><input type='submit' value='{% trans "Edit" %}' class='submit'/></td> |