diff options
Diffstat (limited to 'templates')
| -rw-r--r-- | templates/createOrEdit.html | 8 | ||||
| -rw-r--r-- | templates/vote.html | 25 |
2 files changed, 27 insertions, 6 deletions
diff --git a/templates/createOrEdit.html b/templates/createOrEdit.html index e4d9639..2158527 100644 --- a/templates/createOrEdit.html +++ b/templates/createOrEdit.html @@ -91,9 +91,9 @@ <tr> <td></td> <td>{% if new %}<input type='hidden' name='new' value='1'/> - <input type='submit' value='{% trans "Create" %}' /> + <input type='submit' value='{% trans "Create" %}' class='submit'/> {% else %}<input type='hidden' name='edit' value='1'/> - <input type='submit' value='{% trans "Edit" %}' /> + <input type='submit' value='{% trans "Edit" %}' class='submit'/> {% endif %}</td> </tr> @@ -112,7 +112,7 @@ <tr> <td></td> <td><input type='hidden' name='edit' value='1'/> - <input type='submit' value='{% trans "Edit" %}' /></td> + <input type='submit' value='{% trans "Edit" %}' class='submit'/></td> </tr> </form>{% endif %} @@ -120,7 +120,7 @@ <tr><td><label>{% trans "New choice" %}</label></td><td><input type='text' name='new_choice'/></td><td>{%trans "Limited to"%} <input type='text' name='limit' class='limit'/> {%trans "vote(s)"%}</td><td class='form_description'>{% trans "Setting a new choice. Optionally you can set a limit of vote for this choice. This limit is usefull for limited resources allocation." %}</td></tr> <tr> <td></td> - <td><input type='hidden' name='add' value='1'/> <input type='submit' value='{% trans "Add" %}' /></td> + <td><input type='hidden' name='add' value='1'/> <input type='submit' value='{% trans "Add" %}' class='submit'/></td> </tr> </form> </table> diff --git a/templates/vote.html b/templates/vote.html index b9cfa98..3deacf5 100644 --- a/templates/vote.html +++ b/templates/vote.html @@ -82,7 +82,7 @@ </tr>{%endif%} </table> {% if poll.open %} - <input type='submit' value='{%if current_voter_id%}{% trans "Edit" %}{%else%}{% trans "Participate" %}{%endif%}'/> + <input type='submit' value='{%if current_voter_id%}{% trans "Edit" %}{%else%}{% trans "Participate" %}{%endif%}' class='submit'/> {% endif %} </div> <hr class='spacer'/> @@ -91,4 +91,25 @@ {%if hide_vote%}<p>{% trans "You have already vote? You are enough wise not to be influenced by other votes? You can display result by clicking" %} <a href='?display_result=1'>{% trans "here" %}</a>.</p>{%else%} <p>{% trans "Remain informed of poll evolution:" %} <a href="http://{{root_url}}feeds/poll/{{poll.base_url}}/">{%trans "Syndication"%}</a></p>{%endif%} </div> -{% endblock %} +{%if not hide_vote%} +<h3>{%trans "Comments"%}</h3> +<div class='comments'> + {%if poll.open%}<form method='post' action='{{base_url}}'> + <table class='comment'> + <tr> + <td><label for='comment_author'>{% trans "Author name" %}</label></td> + <td><input type='text' name='comment_author'/></td> + </tr> + <tr> + <td><label for='comment'>{% trans "Comment"%}</label></td> + <td><textarea name='comment'></textarea></td> + </tr> + <tr><td colspan='2' id='tdsubmit'><input type='submit' class='submit' value='{% trans "Send" %}'/></td></tr> + </table> +</form>{%endif%} + <ul>{%for comment in comments%} + <li><p class='author'>{{comment.author_name}}, {{comment.date|date:_("DATETIME_FORMAT")}} :</p> + <pre>{{comment.text}}</pre>{%endfor%} + </dl> +</div>{%endif%} +{% endblock %}
\ No newline at end of file |
