summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authoretienne2008-12-07 20:53:20 +0000
committeretienne2008-12-07 20:53:20 +0000
commita0e093c353140308fc2fac24f1ec179e304ab3ba (patch)
tree7171188f2b9d4004d9346b313a02852b3c82eaff /templates
parentbe9608d21e785ac9e2096f3753ebadbdbfa8f780 (diff)
Comments
Diffstat (limited to 'templates')
-rw-r--r--templates/createOrEdit.html8
-rw-r--r--templates/vote.html25
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