Skip to content

Commit 990272e

Browse files
author
Johannes Gijsbers
committed
Add "action" attributes to forms.
1 parent df303ba commit 990272e

File tree

8 files changed

+16
-8
lines changed

8 files changed

+16
-8
lines changed

templates/classic/html/_generic.help.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</tal:block>
1616
</head>
1717
<body class="body" onload="resetList();">
18-
<form name="frm_help" action=""
18+
<form name="frm_help" tal:attributes="action request/base"
1919
tal:define="start python:int(request.form[':startwith'].value);
2020
batch python:utils.Batch(context.list(), 500, start);
2121
props python:request.form['properties'].value.split(',')">

templates/classic/html/_generic.index.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ <h2 tal:content="python:context._classname.capitalize()+' editing'"></h2>
3131
them to the table - put an X in the id column.
3232
</p>
3333

34-
<form onSubmit="return submit_once()" method="POST">
34+
<form onSubmit="return submit_once()" method="POST"
35+
tal:attributes="action context/designator">
3536
<textarea rows="15" cols="60" name="rows" tal:content="context/csv"></textarea>
3637
<br>
3738
<input type="hidden" name=":action" value="editCSV">

templates/classic/html/_generic.item.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ <h2 tal:content="python:context._classname.capitalize()+' editing'"></h2>
1111
</span>
1212

1313
<form method="POST" onSubmit="return submit_once()"
14-
enctype="multipart/form-data" tal:condition="context/is_edit_ok">
14+
enctype="multipart/form-data" tal:condition="context/is_edit_ok"
15+
tal:attributes="action context/designator">
1516

1617
<input type="hidden" name=":template" value="item">
1718
<input type="hidden" name=":required" value="title">

templates/classic/html/file.item.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ <h2>File display</h2>
1111
</span>
1212

1313
<form method="POST" onSubmit="return submit_once()"
14-
enctype="multipart/form-data" tal:condition="context/is_edit_ok">
14+
enctype="multipart/form-data" tal:condition="context/is_edit_ok"
15+
tal:attributes="action context/designator">
1516

1617
<table class="form">
1718
<tr>

templates/classic/html/keyword.item.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ <h2>Keyword editing</h2>
2929
</p>
3030

3131
<form method="POST" onSubmit="return submit_once()"
32-
enctype="multipart/form-data">
32+
enctype="multipart/form-data"
33+
tal:attributes="action context/designator">
3334

3435
<table class="form">
3536
<tr>

templates/classic/html/user.forgotten.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ <h2>Password reset request</h2>
99
<p>You have two options if you have forgotten your password. If you
1010
know the email address you registered with, enter it below.</p>
1111

12-
<form method="POST" onSubmit="return submit_once()">
12+
<form method="POST" onSubmit="return submit_once()"
13+
tal:attributes="action context/designator">
1314
<table class="form">
1415
<tr>
1516
<th>Email Address:</th>

templates/classic/html/user.item.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ <h2>
1919
</span>
2020

2121
<form method="POST" onSubmit="return submit_once()"
22-
enctype="multipart/form-data" tal:condition="context/is_edit_ok">
22+
enctype="multipart/form-data" tal:condition="context/is_edit_ok"
23+
tal:attributes="action context/designator">
2324

2425
<table class="form">
2526
<tr>

templates/classic/html/user.register.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ <h2 tal:content="string:Registering with ${db/config/TRACKER_NAME}"></h2>
1515
</span>
1616

1717
<tal:block tal:condition="editok">
18-
<form method="POST" onSubmit="return submit_once()" enctype="multipart/form-data">
18+
<form method="POST" onSubmit="return submit_once()"
19+
enctype="multipart/form-data"
20+
tal:attributes="action context/designator">
1921

2022
<table class="form">
2123
<tr>

0 commit comments

Comments
 (0)