Skip to content

Commit ad254cd

Browse files
author
Johannes Gijsbers
committed
First steps towards HTML4.01 Strict validation.
1 parent 908ae04 commit ad254cd

File tree

5 files changed

+14
-8
lines changed

5 files changed

+14
-8
lines changed

roundup/cgi/templating.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1680,7 +1680,7 @@ def indexargs_url(self, url, args):
16801680

16811681
def base_javascript(self):
16821682
return '''
1683-
<script language="javascript">
1683+
<script type="text/javascript">
16841684
submitted = false;
16851685
function submit_once() {
16861686
if (submitted) {

templates/classic/html/_generic.help.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
//--></script>
1515
</tal:block>
1616
</head>
17-
<body class="body" marginwidth="0" marginheight="0" onload="resetList();">
17+
<body class="body" onload="resetList();">
1818
<form name="frm_help" action=""
1919
tal:define="start python:int(request.form[':startwith'].value);
2020
batch python:utils.Batch(context.list(), 500, start);

templates/classic/html/issue.index.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ <h2>List of issues</h2>
8282
</table>
8383

8484
<form method="GET" tal:attributes="action request/classname">
85-
<tal:block tal:replace="structure python:request.indexargs_form(sort=0, group=0)" />
85+
8686
<table class="form">
8787
<tr tal:condition="batch">
8888
<th>Sort on:</th>
@@ -116,7 +116,11 @@ <h2>List of issues</h2>
116116
tal:attributes="checked python:request.group[0] == '-'">
117117
</td>
118118
</tr>
119-
<tr><td colspan="4"><input type="submit" value="Redisplay"></td></tr>
119+
<tr><td colspan="4">
120+
<input type="submit" value="Redisplay">
121+
<tal:block tal:replace="structure
122+
python:request.indexargs_form(sort=0, group=0)" />
123+
</td></tr>
120124
</table>
121125
</form>
122126

templates/classic/html/page.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
</script>
1313

1414
</head>
15-
<body class="body" marginwidth="0" marginheight="0">
15+
<body class="body">
1616

1717
<table class="body">
1818

@@ -22,7 +22,7 @@
2222
</tr>
2323

2424
<tr>
25-
<td rowspan="2" valign="top" nowrap class="sidebar">
25+
<td rowspan="2" valign="top" class="sidebar">
2626
<p class="classblock" tal:condition="request/user/queries">
2727
<b>Your Queries</b><br>
2828
<tal:block tal:repeat="qs request/user/queries">
@@ -31,7 +31,7 @@
3131
</tal:block>
3232
</p>
3333

34-
<form method="POST">
34+
<form method="POST" action=".">
3535
<p class="classblock"
3636
tal:condition="python:request.user.hasPermission('View', 'issue')">
3737
<b>Issues</b><br>
@@ -69,7 +69,7 @@
6969
href="user?:template=item">Add User</a>
7070
</p>
7171

72-
<form method="POST" action="">
72+
<form method="POST" action=".">
7373
<p class="userblock" tal:condition="python:request.user.username=='anonymous'">
7474
<b>Login</b><br>
7575
<input size="10" name="__login_name"><br>

templates/classic/html/style.css

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
body.body {
33
font-family: sans-serif, Arial, Helvetica;
44
color: #333333;
5+
margin: 0px 0px 0px 0px;
56
}
67
a[href]:hover { color:blue; text-decoration: underline; }
78
a[href]:link { color:blue; text-decoration: none; }
@@ -26,6 +27,7 @@ td.page-header-top {
2627

2728
td.sidebar {
2829
padding: 1 0 0 1;
30+
white-space: nowrap;
2931
}
3032
td.sidebar form {
3133
margin: 0 0 0 0;

0 commit comments

Comments
 (0)