diff options
-rw-r--r-- | share/templates/en_US/table.tmpl | 19 | ||||
-rw-r--r-- | share/templates/en_US/ucn_output.tmpl | 17 | ||||
-rw-r--r-- | share/templates/en_US/valid.tmpl | 9 |
3 files changed, 36 insertions, 9 deletions
diff --git a/share/templates/en_US/table.tmpl b/share/templates/en_US/table.tmpl index 175bdd2..e5a9cfb 100644 --- a/share/templates/en_US/table.tmpl +++ b/share/templates/en_US/table.tmpl @@ -19,7 +19,11 @@ <TMPL_IF NAME="is_upload"> <form id="form" method="post" action="check"> <TMPL_ELSE> -<form id="form" method="get" action="check"> + <TMPL_IF NAME="is_direct_input"> + <form id="form" method="post" action="check"> + <TMPL_ELSE> + <form id="form" method="get" action="check"> + </TMPL_IF> </TMPL_IF> <table class="header"> <tr> @@ -40,11 +44,20 @@ </tr> <tr> <TMPL_IF NAME="is_upload"> - <th>Uploaded Content:</th><td colspan="2"><textarea id="fragment" name="fragment" rows="12" cols="80"><TMPL_LOOP NAME="file_source"><TMPL_VAR NAME="file_source_line" ESCAPE="HTML"> -</TMPL_LOOP></textarea></td> + <th><label title="Choose a Local File to Upload and Validate" for="uploaded_file">File</label>:</th> + <td colspan="2"> + <p>If you wish to re-validate an uploaded file, please select it again here:</p> + <input type="file" id="uploaded_file" name="uploaded_file" size="30" /> + </td> + <TMPL_ELSE> + <TMPL_IF NAME="is_direct_input"> + <th><label title="Uploaded source of your Document" for="fragment">Source</label>:</th><td colspan="2"><textarea id="fragment" name="fragment" rows="12" cols="80"><TMPL_LOOP NAME="file_source"><TMPL_VAR NAME="file_source_line" ESCAPE="HTML"> + </TMPL_LOOP></textarea></td> + <TMPL_ELSE> <th><label title="Address of Page to Validate" for="uri">Address</label>:</th> <td colspan="2"><input type="text" id="uri" name="uri" value="<TMPL_VAR NAME="file_uri" ESCAPE="HTML">" size="50" /></td> + </TMPL_IF> </TMPL_IF> </tr> <TMPL_IF NAME="opt_verbose"> diff --git a/share/templates/en_US/ucn_output.tmpl b/share/templates/en_US/ucn_output.tmpl index 4a3a2b0..4abde39 100644 --- a/share/templates/en_US/ucn_output.tmpl +++ b/share/templates/en_US/ucn_output.tmpl @@ -60,12 +60,17 @@ X-W3C-Validator-Errors: <TMPL_VAR NAME="valid_errors_num"></TMPL_IF> </TMPL_IF> </longmessage> <longmessage> - <TMPL_IF NAME="is_upload"> - The uploaded document "<TMPL_VAR NAME="file_uri" ESCAPE="HTML">" - <TMPL_ELSE> - The document located at - <a href="<TMPL_VAR NAME="file_uri" ESCAPE="HTML">"><TMPL_VAR NAME="file_uri" ESCAPE="HTML"></a> - </TMPL_IF> + <TMPL_IF NAME="is_upload"> + The uploaded document "<TMPL_VAR NAME="file_uri" ESCAPE="HTML">" + <TMPL_ELSE> + <TMPL_IF NAME="is_direct_input"> + The uploaded document + <TMPL_ELSE> + The document located at + <<a href="<TMPL_VAR NAME="file_uri" ESCAPE="HTML">"><TMPL_VAR NAME="file_uri" ESCAPE="HTML"></a>> + </TMPL_IF> + </TMPL_IF> + <TMPL_IF NAME="is_tentative"> was checked and found to be <em>tentatively</em> valid <TMPL_VAR NAME="file_version" ESCAPE="HTML">. This means that with the use of some fallback or override mechanism, diff --git a/share/templates/en_US/valid.tmpl b/share/templates/en_US/valid.tmpl index 3b511aa..3808e7e 100644 --- a/share/templates/en_US/valid.tmpl +++ b/share/templates/en_US/valid.tmpl @@ -22,8 +22,12 @@ <TMPL_IF NAME="is_upload"> The uploaded document "<TMPL_VAR NAME="file_uri" ESCAPE="HTML">" <TMPL_ELSE> + <TMPL_IF NAME="is_direct_input"> + The uploaded document + <TMPL_ELSE> The document located at <<a href="<TMPL_VAR NAME="file_uri" ESCAPE="HTML">"><TMPL_VAR NAME="file_uri" ESCAPE="HTML"></a>> + </TMPL_IF> </TMPL_IF> <TMPL_IF NAME="is_tentative"> was checked and found to be <em>tentatively</em> valid <TMPL_VAR NAME="file_version" ESCAPE="HTML">. @@ -90,6 +94,7 @@ </p> </TMPL_IF> <TMPL_UNLESS NAME="is_upload"> + <TMPL_UNLESS NAME="is_direct_input"> <h4>Linking to this result</h4> <p> If you would like to create a link to <em>this</em> page (i.e., this @@ -98,6 +103,7 @@ <<a href="<TMPL_VAR NAME="file_thispage" ESCAPE="HTML">"><TMPL_VAR NAME="file_thispage" ESCAPE="HTML"></a>> (or you can just add the current page to your bookmarks or hotlist). </p> + </TMPL_UNLESS> </TMPL_UNLESS> <h4>Validating CSS Style Sheets</h4> <p> @@ -106,9 +112,12 @@ <TMPL_IF NAME="is_upload"> check it for validity <TMPL_ELSE> + <TMPL_IF NAME="is_direct_input"> + <TMPL_ELSE> <a title="Validate CSS at the W3C CSS Validator" href="http://jigsaw.w3.org/css-validator/validator?uri=<TMPL_VAR NAME="file_uri_param">">check it for validity</a> + </TMPL_IF> </TMPL_IF> using the W3C <a href="http://jigsaw.w3.org/css-validator/">CSS Validation Service</a>. |