Skip to content

Commit 8ecd48c

Browse files
committed
Upgrade to current classic _generic.index.html. Add anti-csrf
protection. Include docs on how to restore an item.
1 parent 72636a7 commit 8ecd48c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

website/issues/html/_generic.index.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
<!-- dollarId: issue.index,v 1.2 2001/07/29 04:07:37 richard Exp dollar-->
2+
13
<tal:block metal:use-macro="templates/page/macros/icing">
24
<title metal:fill-slot="head_title" i18n:translate=""
35
><span tal:replace="python:context._classname.capitalize()"
@@ -37,13 +39,16 @@
3739

3840
<p class="form-help">
3941
Remove entries by deleting their line. Add new entries by appending
40-
them to the table - put an X in the id column.
42+
them to the table - put an X in the id column. If you wish to restore a
43+
removed item and you know its id then just put that id in the id column.
4144
</p>
4245
</tal:block>
4346
<form onSubmit="return submit_once()" method="POST"
4447
tal:attributes="action context/designator">
4548
<textarea rows="15" style="width:90%" name="rows" tal:content="context/csv"></textarea>
4649
<br>
50+
<input name="@csrf" type="hidden"
51+
tal:attributes="value python:utils.anti_csrf_nonce()">
4752
<input type="hidden" name="@action" value="editCSV">
4853
<input type="submit" value="Edit Items" i18n:attributes="value">
4954
</form>

0 commit comments

Comments
 (0)