Permalink
Browse files

FIX: applying a first set of HTML fixes (as reported from w3c validat…

…or).
  • Loading branch information...
1 parent d2c9903 commit 307ee3cb1b96814f9c3f5b2c49b353a754529beb @dockimbel committed Mar 28, 2013
Showing with 78 additions and 77 deletions.
  1. +4 −4 attached.rsp
  2. +2 −2 changelog.rsp
  3. +2 −2 comments.rsp
  4. +4 −4 edit-ticket.rsp
  5. +1 −0 head.rsp
  6. +43 −43 index.rsp
  7. +2 −2 manage/edit-project.rsp
  8. +2 −2 manage/user.rsp
  9. +2 −2 navigate-tickets.rsp
  10. +4 −4 private/helper.r
  11. +3 −3 profile.rsp
  12. +3 −3 register.rsp
  13. +1 −1 reset-pass.rsp
  14. +5 −5 view-tickets.rsp
View
@@ -87,7 +87,7 @@
factor = $('#up_progress').css('width');
factor = parseInt(factor.slice(0,factor.length - 2)) / 100;
token = $.ajax({url: '/upload/get-id', async: false}).responseText;
- $('#attfrm').attr('action', 'upload.rsp?id=<%=params/id%>&token=' + token);
+ $('#attfrm').attr('action', 'upload.rsp?id=<%=params/id%>&amp;token=' + token);
$('.hideable').show();
timer = setTimeout(onTimer, 250);
ref_time = getMilliSeconds();
@@ -101,7 +101,7 @@
drop: function(event, ui) {
var name = $('#' + ui.draggable.attr('id') + ' img').attr('title');
if (confirm('#[Do you really want to delete file] [' + name + '] ?')) {
- $.get('remove-file.rsp?id=<%=params/id%>&file=' + ui.draggable.attr('id'));
+ $.get('remove-file.rsp?id=<%=params/id%>&amp;file=' + ui.draggable.attr('id'));
ui.draggable.empty();
ui.draggable.remove();
setTrashcanState();
@@ -115,7 +115,7 @@
<table class="cmt">
<tr><th colspan="2" align="left"><a name="files">#[Attached Files]</a></th></tr>
<tr><%if allow-modify? [%>
- <form method="POST" id="attfrm" enctype="multipart/form-data" target="fileframe">
+ <form method="POST" id="attfrm" enctype="multipart/form-data" target="fileframe" action="attached.rsp">
<%]%>
<th align="center" width="120"></th>
<td>
@@ -129,7 +129,7 @@
file-id: head clear find copy file/2 #"."
%>
<div class="attached-doc" id="<%=file-id%>">
- <a href="get-file.rsp?id=<%=file-id%>&file=<%=url-encode/all file/1%>" target="_blank">
+ <a href="get-file.rsp?id=<%=file-id%>&amp;file=<%=url-encode/all file/1%>" target="_blank">
<img <%=any [class ""]%> src="<%=small%>" title="<%=html-encode file/1%>">
</a>
</div>
View
@@ -19,7 +19,7 @@
include %head.rsp
%>
<div align="center" style="padding-top:20px;">
- <form method="POST" id="selver">
+ <form method="POST" id="selver" action="changelog.rsp">
#[Fixed tickets in version] :
<%either empty? list-ver: enum-versions [%>
n/a
@@ -33,7 +33,7 @@
</select>
<%]%>
</form>
-<%if vid [%>
+<%if vid [%>
<table class="changelog">
<tr><th colspan="2" align="left">#[Version] <%=vlabel%></th></tr><%
foreach ticket list-fixed-tickets vid [%>
View
@@ -50,7 +50,7 @@
<input type="hidden" name="action" value="edit-cmt">
</form>
</td><td>
- <form method="POST">
+ <form method="POST" action="<%=join request/parsed/url "#comments"%>">
<input type="submit" value="#[Delete]" class="midsz">
<input type="hidden" name="cid" value="<%=id%>">
<input type="hidden" name="action" value="del-cmt">
@@ -61,7 +61,7 @@
</td>
<td valign="top">
<%either all [edit-cmt id = params/cid][%>
- <form method="POST">
+ <form method="POST" action="<%=join request/parsed/url "#comments"%>">
<input type="hidden" name="cid" value="<%=id%>">
<input type="hidden" name="action" value="upd-cmt">
<textarea name="cmt" cols="60" rows="10"><%=cmt%></textarea><br>
View
@@ -100,7 +100,7 @@
if changed? [update-ticket params]
response/redirect rejoin [
"ticket.rsp?id=" params/id
- either params/cursor [join "&cursor=" params/cursor][""]
+ either params/cursor [join "&amp;cursor=" params/cursor][""]
]
]
]
@@ -137,7 +137,7 @@
edit?: yes
include %navigate-tickets.rsp
%>
-<script>
+<script type="text/javascript">
function MoveSubmit() {
var warn = "\n\nWatch out, following fields will be reset:\n - Category\n - Version\n - Fixed In";
var res = confirm("<%= join say "Do you really want to move ticket #" params/id%> ?" + warn);
@@ -155,7 +155,7 @@
<a href="feed.rsp?tid=<%=id%>"><img src="img/rss.gif" border="0"></a><br>
</div>
<div align="center" style="margin-top:10px;">
- <form method="POST" name="ticket">
+ <form method="POST" name="ticket" action="<%=join request/parsed/url "#comments"%>">
<table class="tbl" width="90%">
<tr>
<th width="120">#[Type]</th>
@@ -266,7 +266,7 @@
session/content/user-role = 'admin
session/content/user-id = ticket/17
][%>
- <script>
+ <script type="text/javascript">
function DeleteSubmit() {
var res = confirm("<%= join say "Do you really want to delete ticket #" params/id%> ?");
if (res) document.forms.ticket.action.value = 'delete';
View
@@ -3,6 +3,7 @@
<head>
<title><%=title%></title>
<link href="<%=request/web-app%>/curecode.css" type="text/css" rel="stylesheet">
+ <meta http-equiv="content-type" content="text/html; charset=iso-8859-1">
</head>
<body>
<form method="POST" action="<%=request/web-app%>/set-project.rsp" name="selprj">
View
@@ -99,12 +99,12 @@
chart: join chart-url [
"chtt=" utf8-encode say "Tickets Overview"
- "&chs=295x180"
- "&chd=t:" chart-form/with extract/index list 2 2 #"," total
- "&chco=ff9700,4e71bc,429120"
- "&cht=p"
- "&chp=-1.57"
- "&chl=" chart-form extract list 2 #"|"
+ "&amp;chs=295x180"
+ "&amp;chd=t:" chart-form/with extract/index list 2 2 #"," total
+ "&amp;chco=ff9700,4e71bc,429120"
+ "&amp;cht=p"
+ "&amp;chp=-1.57"
+ "&amp;chl=" chart-form extract list 2 #"|"
]
%><img src="<%=chart%>">
</td>
@@ -120,15 +120,15 @@
chart: join chart-url [
"chtt=" utf8-encode say "Stockpile (6 months)"
- "&chs=400x180"
- "&chd=t:" chart-form stock/2 #","
- "&chds=0," stock/3
- "&chxr=0,0," stock/3 #"," stock/4
- "&chxt=y"
- "&chbh=50"
- "&chco=ffc850"
- "&cht=bvg"
- "&chl=" chart-form stock/1 #"|"
+ "&amp;chs=400x180"
+ "&amp;chd=t:" chart-form stock/2 #","
+ "&amp;chds=0," stock/3
+ "&amp;chxr=0,0," stock/3 #"," stock/4
+ "&amp;chxt=y"
+ "&amp;chbh=50"
+ "&amp;chco=ffc850"
+ "&amp;cht=bvg"
+ "&amp;chl=" chart-form stock/1 #"|"
]
%><img src="<%=chart%>">
</td>
@@ -138,16 +138,16 @@
chart: join chart-url [
"chtt=" utf8-encode say "Stockpile evolution (6 months)"
- "&chs=434x180"
- "&chd=t2:" chart-form stock/2 #","
+ "&amp;chs=434x180"
+ "&amp;chd=t2:" chart-form stock/2 #","
"|" chart-form stock/3 #","
- "&chdl=New|Closed"
- "&chds=0," stock/4 ",0," stock/4
- "&chxr=0,0," stock/4 #"," stock/5
- "&chxt=y"
- "&chco=ffa0a0,cceedd"
- "&cht=bvg"
- "&chl=" chart-form stock/1 #"|"
+ "&amp;chdl=New|Closed"
+ "&amp;chds=0," stock/4 ",0," stock/4
+ "&amp;chxr=0,0," stock/4 #"," stock/5
+ "&amp;chxt=y"
+ "&amp;chco=ffa0a0,cceedd"
+ "&amp;cht=bvg"
+ "&amp;chl=" chart-form stock/1 #"|"
]
%><img src="<%=chart%>">
</td>
@@ -168,12 +168,12 @@
chart: join chart-url [
"chtt=" utf8-encode say "Open and Waiting By Status"
- "&chs=268x180"
- "&chd=t:" data/1
- "&chco=" data/2
- "&cht=p"
- "&chp=-1.57"
- "&chl=" data/3
+ "&amp;chs=268x180"
+ "&amp;chd=t:" data/1
+ "&amp;chco=" data/2
+ "&amp;cht=p"
+ "&amp;chp=-1.57"
+ "&amp;chl=" data/3
]
%><img src="<%=chart%>">
</td>
@@ -188,12 +188,12 @@
chart: join chart-url [
"chtt=" utf8-encode say "All by Priority"
- "&chs=268x180"
- "&chd=t:" data/1
- "&chco=" data/2
- "&cht=p"
- "&chp=2.356"
- "&chl=" data/3
+ "&amp;chs=268x180"
+ "&amp;chd=t:" data/1
+ "&amp;chco=" data/2
+ "&amp;cht=p"
+ "&amp;chp=2.356"
+ "&amp;chl=" data/3
]
%><img src="<%=chart%>">
</td>
@@ -208,12 +208,12 @@
chart: join chart-url [
"chtt=" utf8-encode say "All by Severity"
- "&chs=268x180"
- "&chd=t:" data/1
- "&chco=" data/2
- "&cht=p"
- "&chp=2.356"
- "&chl=" data/3
+ "&amp;chs=268x180"
+ "&amp;chd=t:" data/1
+ "&amp;chco=" data/2
+ "&amp;cht=p"
+ "&amp;chp=2.356"
+ "&amp;chl=" data/3
]
%><img src="<%=chart%>">
</td>
@@ -250,7 +250,7 @@
</div>
<div align="center" style="height:400px;">
<br>
- <form method="POST">
+ <form method="POST" action="index.rsp">
<%if err? [%>
<font color="red"><b>#[Error: Missing fields or incorrect values]</b></font>
<%]%>
View
@@ -125,7 +125,7 @@
<table width="600" align="center"><tr><td valign="top">
<div>
<h4>#[Versions]</h4>
- <form method="POST">
+ <form method="POST" action="edit-project.rsp?id=<%=param/id%>">
<table class="tbl">
<tr>
<th>#[Version]</th>
@@ -154,7 +154,7 @@
</div>
</td><td valign="top">
<div>
- <script>
+ <script type="text/javascript">
function SetArgs(dir) {
document.forms.catform.action.value='swap';
document.forms.catform.dir.value=dir;
View
@@ -49,7 +49,7 @@
</script>
<br><br>
<div align="center">
- <form method="POST" name="profile">
+ <form method="POST" name="profile" action="user.rsp">
<table class="tbl">
<tr>
<th>#[Login ID]</th>
@@ -88,7 +88,7 @@
][%>
<div align="center">
<h4>#[Private Projects Rights]</h4>
- <form method="POST">
+ <form method="POST" action="user.rsp">
<table class="tbl">
<tr>
<th>#[Project Name]</th>
View
@@ -14,13 +14,13 @@
<input
type="button"
value="&nbsp;&lt;&nbsp;"
- onclick="window.location='<%=pick ["edit-" ""] edit?%>ticket.rsp?id=<%=list/1%>&cursor=<%=cid - 1%>';"
+ onclick="window.location='<%=pick ["edit-" ""] edit?%>ticket.rsp?id=<%=list/1%>&amp;cursor=<%=cid - 1%>';"
<%if not list/1 [prin "disabled"]%>
>
<input
type="button"
value="&nbsp;&gt;&nbsp;"
- onclick="window.location='<%=pick ["edit-" ""] edit?%>ticket.rsp?id=<%=list/3%>&cursor=<%=cid + 1%>';"
+ onclick="window.location='<%=pick ["edit-" ""] edit?%>ticket.rsp?id=<%=list/3%>&amp;cursor=<%=cid + 1%>';"
<%if not list/3 [prin "disabled"]%>
>
#[Next]
View
@@ -306,10 +306,10 @@ apply-filter: func [spec [block!] /local filter][
recaptcha-verify: func [spec [block!] /local data res][
data: rejoin [
- "privatekey=" recaptcha/private-key
- "&remoteip=" request/client-ip
- "&challenge=" spec/recaptcha_challenge_field
- "&response=" spec/recaptcha_response_field
+ "privatekey=" recaptcha/private-key
+ "&amp;remoteip=" request/client-ip
+ "&amp;challenge=" spec/recaptcha_challenge_field
+ "&&amp;response=" spec/recaptcha_response_field
]
res: attempt [
read/custom http://api-verify.recaptcha.net/verify reduce ['POST data]
View
@@ -43,7 +43,7 @@
<td><%=any [user/5 ""]%></td>
</tr>
</table>
- <form method="POST">
+ <form method="POST" action="profile.rsp">
<table style="margin-top:20px;">
<tr>
<th>#[New Password]</th>
@@ -60,7 +60,7 @@
</tr>
</table>
</form>
- <form method="POST">
+ <form method="POST" action="profile.rsp">
<table style="margin-top:40px;">
<tr>
<td colspan="2" align="right">
@@ -77,7 +77,7 @@
<%if not empty? projects: enum-projects/priv [%>
<div align="center">
<h4>#[Private Projects Rights]</h4>
- <form method="POST">
+ <form method="POST" action="profile.rsp">
<table class="tbl" width="300">
<tr>
<th>#[Private Project Name]</th>
View
@@ -101,7 +101,7 @@
instead of creating a new one. You just need to sign in using the instance name
of your current account (http://curecode.org/&lt;instance name&gt;).]
</div>
- <form method="POST">
+ <form method="POST" action="register.rsp">
<%
import?: params/action = 'identify
if all [err? import?][%>
@@ -140,7 +140,7 @@ of your current account (http://curecode.org/&lt;instance name&gt;).]
</div>
<div style="float:left;width:45%;">
<h2>#[Create a new account]</h2>
- <form method="POST">
+ <form method="POST" action="register.rsp">
<%
register?: params/action = 'register
if all [err? register?][%>
@@ -177,7 +177,7 @@ of your current account (http://curecode.org/&lt;instance name&gt;).]
<tr>
<td colspan="2" align="center">
<br>
- <script>
+ <script type="text/javascript">
var RecaptchaOptions = {
theme : 'white',
lang : 'fr'
View
@@ -47,7 +47,7 @@
</div>
<%][%>
<div align="center" style="padding-top:40px">
- <form method="POST">
+ <form method="POST" action="reset-pass.rsp">
<%if err? [%>
<font color="red"><b>#[Error: Missing fields or incorrect values]</b></font>
<%]%>
Oops, something went wrong.

0 comments on commit 307ee3c

Please sign in to comment.