diff options
author | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2011-03-15 00:11:54 +0100 |
---|---|---|
committer | Matthias Andreas Benkard <code@mail.matthias.benkard.de> | 2011-03-15 00:11:54 +0100 |
commit | cf2b6c8b3e50e4d68c6bc7f0abdb820882e1d741 (patch) | |
tree | 51e2f99e2c207c43f472bf5a6f2a42e8b59991d3 /templates | |
parent | 8a1ee16835571d4a590cd66f6ce21926ff02a875 (diff) |
Support comment submission.
Diffstat (limited to 'templates')
-rw-r--r-- | templates/article.html | 8 | ||||
-rw-r--r-- | templates/journal_page.html | 10 |
2 files changed, 14 insertions, 4 deletions
diff --git a/templates/article.html b/templates/article.html index 25013d6..c4ebff4 100644 --- a/templates/article.html +++ b/templates/article.html @@ -61,8 +61,9 @@ <form action="{action|html-attr-value}" accept-charset="UTF-8" enctype="application/x-www-form-urlencoded" method="post"> <div style="display: none"> - <input name="id" type="hidden" value="{article-id|html-attr-value}" /> - <input name="action" type="hidden" value="post-comment" /> + <input name="article" type="hidden" value="{article-id|html-attr-value}" /> + <input name="revision" type="hidden" value="{revision|html-attr-value}" /> + <input name="post-comment" type="hidden" /> </div> <div class="comment-form-table"> {.repeated section fields} @@ -83,8 +84,7 @@ </div> <div class="comment-form-input"> <textarea id="comment-body" cols="60" rows="15" - name="comment-body"> - </textarea> + name="body"></textarea> </div> </div> </div> diff --git a/templates/journal_page.html b/templates/journal_page.html index d9646f3..2e0ed61 100644 --- a/templates/journal_page.html +++ b/templates/journal_page.html @@ -10,6 +10,16 @@ <h1 id="main-title">{site-name|html}</h1> <div id="main-subtitle">{site-subtitle|html}</div> + {.section warnings} + <div id="warnings"> + {.repeated section @} + <div class="journal-warning"> + {@} + </div> + {.end} + </div> + {.end} + <div id="articles"> {.repeated section articles} {@|article-html} |