diff options
author | ot <ot@localhost> | 2007-02-20 03:17:01 +0000 |
---|---|---|
committer | ot <ot@localhost> | 2007-02-20 03:17:01 +0000 |
commit | e31e5cc8778e6319b0be2de7c1cd5c2b40b5e39e (patch) | |
tree | ce8b50d4f6995131ccd7a2df6a763aaffd3aa157 | |
parent | 62a87bc4a83e7a6706e245742172994fb2d3c43e (diff) | |
download | markup-validator-e31e5cc8778e6319b0be2de7c1cd5c2b40b5e39e.zip markup-validator-e31e5cc8778e6319b0be2de7c1cd5c2b40b5e39e.tar.gz markup-validator-e31e5cc8778e6319b0be2de7c1cd5c2b40b5e39e.tar.bz2 |
[work in progress] adding new options to revalidation form in results page
-rw-r--r-- | htdocs/style/results.css | 38 | ||||
-rw-r--r-- | share/templates/en_US/table.tmpl | 35 |
2 files changed, 39 insertions, 34 deletions
diff --git a/htdocs/style/results.css b/htdocs/style/results.css index 035add2..99cdcef 100644 --- a/htdocs/style/results.css +++ b/htdocs/style/results.css @@ -1,5 +1,5 @@ /* style sheet for the validator's results page */ -/* $Id: results.css,v 1.1 2007-02-20 02:14:47 ot Exp $ */ +/* $Id: results.css,v 1.2 2007-02-20 03:17:01 ot Exp $ */ .input { color: black; @@ -11,35 +11,37 @@ /* Various Bits of the Table Header */ /* */ -fieldset div.moreinfo { - float: right; - width: 30%; +fieldset#revalidate_opts { + width: 100%; + margin; 0; padding:0; } -fieldset div.moreinfo p { - background: #FFF; - border: 1px solid #CCC; +fieldset#revalidate_opts p.moreinfo { padding: 10px; - text-align: justify; - font-size: smaller; + margin-top: .3em; + text-align: right; + font-size: x-small; + margin-bottom: 0; } -fieldset div.cheat { - clear: both; +div#revalidate_button { + float: right; width: 6em; text-align: right; padding: .5em; margin: .5em } - table.header { - clear: left; - margin-left: auto; - margin-right: auto; + clear: both; + width: 100%; } -fieldset table.header { - float: left; - margin: 1ex; +fieldset#revalidate_opts table.header { + margin-top: .5em; } +fieldset#revalidate_opts table.header, fieldset#revalidate_opts table.header td, fieldset#revalidate_opts table.header tr { + border: 0; +} + + /* Error Messages Display */ /* */ diff --git a/share/templates/en_US/table.tmpl b/share/templates/en_US/table.tmpl index 29f3610..c467012 100644 --- a/share/templates/en_US/table.tmpl +++ b/share/templates/en_US/table.tmpl @@ -12,7 +12,7 @@ <TMPL_IF NAME="file_uri"> <form id="form" method="get" action="check"> - <table class="header" width="100%"> + <table class="header"> <tr> <th>Result:</th> <TMPL_IF NAME="VALID"> @@ -85,44 +85,47 @@ </tr> </TMPL_IF> </table> + <TMPL_UNLESS NAME="is_upload"> - <fieldset> - <legend>Revalidate With Options</legend> + <div id="revalidate_button"><input type="submit" value="Revalidate" title="Validate this document again" /></div> + <fieldset id="revalidate_opts" class="alttoggle closed"> + <legend class="toggletext">More Options</legend> + <table class="header"> <tr> - <th rowspan="2"><input type="submit" value="Revalidate" title="Revalidate file" />: </th> - <td><label title="Show Page Source" for="ss"><input type="checkbox" value="1" id="ss" name="ss" + <td><input type="radio" name="group" id="group_no" value="0" checked="checked" /><label for="group_no">List Messages Sequentially</label> <input type="radio" name="group" id="group_yes" value="1" /><label for="group_yes">Group Error Messages by type</label></td> + <td><input type="checkbox" value="1" id="ss" name="ss" <TMPL_IF NAME="opt_show_source"> checked="checked" </TMPL_IF> - />Show Source</label></td> - <td><label title="Show an Outline of the document" for="outline"><input type="checkbox" value="1" id="outline" name="outline" + /><label title="Show Page Source" for="ss">Show Source</label></td> + <td><input type="checkbox" value="1" id="outline" name="outline" <TMPL_IF NAME="opt_show_outline"> checked="checked" </TMPL_IF> - />Show Outline</label></td> + /><label title="Show an Outline of the document" for="outline">Show Outline</label></td> </tr> <tr> - <td><label title="Validate also pages for which the HTTP status code indicates an error" for="No200"><input type="checkbox" value="1" id="No200" name="No200" + <td><input id="st" name="st" type="checkbox" value="1" /><label for="st">Clean up Markup with HTML Tidy</label></td> + <td><input type="checkbox" value="1" id="No200" name="No200" <TMPL_IF NAME="opt_no200"> checked="checked" </TMPL_IF> - />Validate error pages</label></td> - <td><label title="Show Verbose Output" for="verbose"><input type="checkbox" value="1" id="verbose" name="verbose" + /><label title="Validate also pages for which the HTTP status code indicates an error" for="No200">Validate error pages</label></td> + <td><input type="checkbox" value="1" id="verbose" name="verbose" <TMPL_IF NAME="opt_verbose"> checked="checked" </TMPL_IF> - />Verbose Output</label></td> + /><label title="Show Verbose Output" for="verbose">Verbose Output</label></td> </tr> </table> - <div class="moreinfo"> - <p> + <p class="moreinfo"> <a href="docs/users.html#Options">Help</a> on the options is available. </p> - </div> - <div class="cheat"><!-- *sigh* --></div> </fieldset> + + </TMPL_UNLESS> </form> </TMPL_IF> |