projects
/
matthijs
/
projects
/
xerxes.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add hidden "next" fields to the comment forms.
[matthijs/projects/xerxes.git]
/
templates
/
influences
/
influence_comments_block.html
diff --git
a/templates/influences/influence_comments_block.html
b/templates/influences/influence_comments_block.html
index 19695917e4363b80a8b1011d22c7c1b7e21fbb09..430ed7135cb11bdb6a0b7bff29fbd64fcf702062 100644
(file)
--- a/
templates/influences/influence_comments_block.html
+++ b/
templates/influences/influence_comments_block.html
@@
-28,7
+28,11
@@
<table>
{{ comment.reply_form.as_table }}
</table>
<table>
{{ comment.reply_form.as_table }}
</table>
- <div><input type="submit" value="{% trans "Reply to this comment" %}" /></div>
+ <div>
+ <input type="hidden" name="next" value="{{ request.path }}" />
+ <input type="submit" value="{% trans "Reply to this comment" %}" />
+ <input type="submit" name="preview" value="{% trans "Preview" %}" />
+ </div>
</form>
</div>
</div>
</form>
</div>
</div>
@@
-46,7
+50,10
@@
<table>
{{ comment_form.as_table }}
</table>
<table>
{{ comment_form.as_table }}
</table>
- <div><input type="submit" value="{% trans "Add comment" %}" /></div>
- {# <input type="submit" name="preview" value="{% trans "Preview comment" %}" /></li> #}
+ <div>
+ <input type="hidden" name="next" value="{{ request.path }}" />
+ <input type="submit" value="{% trans "Add comment" %}" />
+ <input type="submit" name="preview" value="{% trans "Preview" %}" />
+ </div>
</form>
</div>
</form>
</div>