Skip to content

Commit

Permalink
FIX: applying a first set of HTML fixes (as reported from w3c validat…
Browse files Browse the repository at this point in the history
…or).
  • Loading branch information
dockimbel committed Mar 28, 2013
1 parent d2c9903 commit 307ee3c
Show file tree
Hide file tree
Showing 14 changed files with 78 additions and 77 deletions.
8 changes: 4 additions & 4 deletions attached.rsp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand All @@ -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();
Expand All @@ -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>
Expand All @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions changelog.rsp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 [%>
Expand Down
4 changes: 2 additions & 2 deletions comments.rsp
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand All @@ -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>
Expand Down
8 changes: 4 additions & 4 deletions edit-ticket.rsp
Original file line number Diff line number Diff line change
Expand Up @@ -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][""]
]
]
]
Expand Down Expand Up @@ -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);
Expand All @@ -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>
Expand Down Expand Up @@ -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';
Expand Down
1 change: 1 addition & 0 deletions head.rsp
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down
86 changes: 43 additions & 43 deletions index.rsp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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>
Expand All @@ -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>
Expand All @@ -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>
Expand All @@ -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>
Expand All @@ -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>
Expand Down Expand Up @@ -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>
<%]%>
Expand Down
4 changes: 2 additions & 2 deletions manage/edit-project.rsp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions manage/user.rsp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down Expand Up @@ -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>
Expand Down
4 changes: 2 additions & 2 deletions navigate-tickets.rsp
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
8 changes: 4 additions & 4 deletions private/helper.r
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
6 changes: 3 additions & 3 deletions profile.rsp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand All @@ -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">
Expand All @@ -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>
Expand Down
6 changes: 3 additions & 3 deletions register.rsp
Original file line number Diff line number Diff line change
Expand Up @@ -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?][%>
Expand Down Expand Up @@ -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?][%>
Expand Down Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion reset-pass.rsp
Original file line number Diff line number Diff line change
Expand Up @@ -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>
<%]%>
Expand Down
Loading

0 comments on commit 307ee3c

Please sign in to comment.