Mercurial > p > roundup > code
changeset 5285:dc91567358f8
Upgrade to current classic _generic.index.html. Add anti-csrf
protection. Include docs on how to restore an item.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Sun, 24 Sep 2017 19:08:47 -0400 |
| parents | 58c52057418d |
| children | 578b5294e888 |
| files | website/issues/html/_generic.index.html |
| diffstat | 1 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/website/issues/html/_generic.index.html Sun Sep 24 19:05:56 2017 -0400 +++ b/website/issues/html/_generic.index.html Sun Sep 24 19:08:47 2017 -0400 @@ -1,3 +1,5 @@ +<!-- dollarId: issue.index,v 1.2 2001/07/29 04:07:37 richard Exp dollar--> + <tal:block metal:use-macro="templates/page/macros/icing"> <title metal:fill-slot="head_title" i18n:translate="" ><span tal:replace="python:context._classname.capitalize()" @@ -37,13 +39,16 @@ <p class="form-help"> Remove entries by deleting their line. Add new entries by appending - them to the table - put an X in the id column. + them to the table - put an X in the id column. If you wish to restore a + removed item and you know its id then just put that id in the id column. </p> </tal:block> <form onSubmit="return submit_once()" method="POST" tal:attributes="action context/designator"> <textarea rows="15" style="width:90%" name="rows" tal:content="context/csv"></textarea> <br> +<input name="@csrf" type="hidden" + tal:attributes="value python:utils.anti_csrf_nonce()"> <input type="hidden" name="@action" value="editCSV"> <input type="submit" value="Edit Items" i18n:attributes="value"> </form>
