Skip to content

Commit 7acf551

Browse files
Tracker: Following upgrading docs for the "retire" and "remove" buttons.
1 parent 92add08 commit 7acf551

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

website/issues/html/issue.item.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@
215215
tal:attributes="href string:file${file/id}">edit</a>
216216
</td>
217217
<td>
218-
<form style="padding:0" tal:condition="file/is_edit_ok"
218+
<form style="padding:0" method="POST" tal:condition="file/is_edit_ok"
219219
tal:attributes="action string:issue${context/id}">
220220
<input type="hidden" name="@remove@files" tal:attributes="value file/id">
221221
<input type="hidden" name="@action" value="edit">
@@ -236,7 +236,7 @@
236236
<th i18n:translate="">Date: <tal:x replace="python:msg.date.pretty('%Y-%m-%d %H:%M')"
237237
i18n:name="date" /></th>
238238
<th>
239-
<form style="padding:0" tal:condition="msg/is_edit_ok"
239+
<form style="padding:0" method="POST" tal:condition="msg/is_edit_ok"
240240
tal:attributes="action string:issue${context/id}">
241241
<input type="hidden" name="@remove@messages" tal:attributes="value msg/id">
242242
<input type="hidden" name="@action" value="edit">

website/issues/html/user.index.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,12 @@
6363
<td tal:content="python:user.address.email() or default">&nbsp;</td>
6464
<td tal:content="python:user.phone.plain() or default">&nbsp;</td>
6565
<td tal:condition="context/is_edit_ok">
66-
<a tal:attributes="href string:user${user/id}?@action=retire&@template=index"
67-
i18n:translate="">retire</a>
66+
<form style="padding:0" method="POST"
67+
tal:attributes="action string:user${user/id}">
68+
<input type="hidden" name="@template" value="index">
69+
<input type="hidden" name="@action" value="retire">
70+
<input type="submit" value="retire" i18n:attributes="value">
71+
</form>
6872
</td>
6973
</tr>
7074
</tal:block>

0 commit comments

Comments
 (0)