Code

Move '<input type="hidden">' elements into a block, it is invalid HTML4 Strict
authorjlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2>
Fri, 3 Oct 2003 19:15:24 +0000 (19:15 +0000)
committerjlgijsbers <jlgijsbers@57a73879-2fb5-44c3-a270-3262357dd7e2>
Fri, 3 Oct 2003 19:15:24 +0000 (19:15 +0000)
to have them at the top of a form.

git-svn-id: http://svn.roundup-tracker.org/svnroot/roundup/trunk@1896 57a73879-2fb5-44c3-a270-3262357dd7e2

doc/customizing.txt
templates/classic/html/file.item.html
templates/classic/html/issue.item.html
templates/classic/html/issue.search.html
templates/classic/html/keyword.item.html
templates/classic/html/user.forgotten.html
templates/classic/html/user.item.html
templates/classic/html/user.register.html

index 951a881bcaf48dc3ab39f87db91a9aba24c64bb0..f752e543395c2d9839d04c7f358525bddf53ea43 100644 (file)
@@ -2,7 +2,7 @@
 Customising Roundup
 ===================
 
-:Version: $Revision: 1.101 $
+:Version: $Revision: 1.102 $
 
 .. This document borrows from the ZopeBook section on ZPT. The original is at:
    http://www.zope.org/Documentation/Books/ZopeBook/current/ZPT.stx
@@ -2373,8 +2373,6 @@ So putting it all together, and closing the table and form we get::
    <form method="POST" onSubmit="return submit_once()"
          enctype="multipart/form-data">
 
-    <input type="hidden" name="@required" value="name">
-
     <table class="form">
      <tr><th class="header" colspan="2">Category</th></tr>
 
@@ -2385,7 +2383,10 @@ So putting it all together, and closing the table and form we get::
      </tr>
 
      <tr>
-      <td>&nbsp;</td>
+      <td>
+        &nbsp;
+        <input type="hidden" name="@required" value="name"> 
+      </td>
       <td colspan="3" tal:content="structure context/submit">
        submit button will go here
       </td>
index ca9f6bd529d07351d2af287811086ca092c470e5..dd102b24dbf8e26704b5b8166b303bce0b617dfc 100644 (file)
@@ -13,13 +13,6 @@ You are not allowed to view this page.
 <form method="POST" onSubmit="return submit_once()"
       enctype="multipart/form-data" tal:condition="context/is_edit_ok">
 
-<input type="hidden" name=":template" value="item">
-<input type="hidden" name=":required" value="name,type">
-
-<input type="hidden" name=":multilink"
-       tal:condition="python:request.form.has_key(':multilink')"
-       tal:attributes="value request/form/:multilink/value">
-
 <table class="form">
  <tr>
   <th>Name</th>
@@ -31,7 +24,14 @@ You are not allowed to view this page.
  </tr>
 
  <tr>
-  <td>&nbsp;</td>
+  <td>
+   &nbsp;
+   <input type="hidden" name=":template" value="item">
+   <input type="hidden" name=":required" value="name,type">
+   <input type="hidden" name=":multilink"
+          tal:condition="python:request.form.has_key(':multilink')"
+          tal:attributes="value request/form/:multilink/value">
+  </td>
   <td tal:content="structure context/submit">submit button here</td>
  </tr>
 </table>
index 6e3b8f29fe05dfbc6ad998b8fec240ae5a3906c8..1ac2325d30f0ca6055edd987a280e52a6152c842 100644 (file)
@@ -23,9 +23,6 @@ You are not allowed to view this page.
       enctype="multipart/form-data" tal:condition="context/is_edit_ok"
       tal:attributes="action context/designator">
 
-<input type="hidden" name=":template" value="item">
-<input type="hidden" name=":required" value="title,priority">
-
 <table class="form">
 <tr>
  <th class="required">Title</th>
@@ -81,7 +78,11 @@ python:db.user.classhelp('username,realname,address', property='nosy', width='60
 </tr>
 
 <tr>
- <td>&nbsp;</td>
+ <td>
+  &nbsp;
+  <input type="hidden" name=":template" value="item">
+  <input type="hidden" name=":required" value="title,priority">
+ </td>
  <td colspan=3 tal:content="structure context/submit">
   submit button will go here
  </td>
index 8a41340885e7d6766470f5010cd328862c98ce9a..a46334f8e84e2844666d66b06395eb65eeb2badd 100644 (file)
@@ -6,7 +6,6 @@
 <td class="content" metal:fill-slot="content">
 
 <form method="GET" tal:attributes="action request/classname">
-<input type="hidden" name=":action" value="search">
 
 <table class="form" tal:define="
    cols python:request.columns or 'id activity title status assignedto'.split();
 </tr>
 
 <tr>
-  <td>&nbsp;</td>
+  <td>
+   &nbsp;
+   <input type="hidden" name=":action" value="search">
+  </td>
   <td><input type="submit" value="Search"></td>
 </tr>
 
index 47f9223575db6c6adb6af38036da81c0462856ce..6bb00428a3093113dec1ae3ded195408584ccd34 100644 (file)
@@ -31,9 +31,6 @@
 <form method="POST" onSubmit="return submit_once()"
       enctype="multipart/form-data">
 
- <input type="hidden" name=":required" value="name">
- <input type="hidden" name=":template" value="item">
-
  <table class="form">
   <tr>
    <th>Keyword</th>
   </tr>
 
   <tr>
-   <td>&nbsp;</td>
+   <td>
+    &nbsp;
+    <input type="hidden" name=":required" value="name">
+    <input type="hidden" name=":template" value="item">
+   </td>
    <td colspan=3 tal:content="structure context/submit">
     submit button will go here
    </td>
index 1df69181414a7022745b2d25b443f6c9d1b557c2..d527c461bf900aadc74db3611cb320dc70f58a92 100644 (file)
 know the email address you registered with, enter it below.</p>
 
 <form method="POST" onSubmit="return submit_once()">
-<input type="hidden" name="@action" value="passrst">
-<input type="hidden" name="@template" value="forgotten">
-<table class="form">
- <tr><th>Email Address:</th> <td><input name="address"></td> </tr>
- <tr><td></td><td><input type="submit" value="Request password reset"></td></tr>
+    <table class="form">
+      <tr>
+        <th>Email Address:</th>
+        <td><input name="address"></td>
+      </tr>
+      <tr>
+        <td>&nbsp;</td>
+        <td>
+          <input type="hidden" name="@action" value="passrst">
+          <input type="hidden" name="@template" value="forgotten">
+          <input type="submit" value="Request password reset">
+        </td>
+      </tr>
 </table>
 
 <p>Or, if you know your username, then enter it below.</p>
index 52c2219defba6983b9c631e8ce03033c4d967133..c3cdc78f3e18ae652a5829f6dce02fdfaf95fce6 100644 (file)
@@ -21,9 +21,6 @@ You are not allowed to view this page.
 <form method="POST" onSubmit="return submit_once()"
       enctype="multipart/form-data" tal:condition="context/is_edit_ok">
 
-<input type="hidden" name=":template" value="item">
-<input type="hidden" name=":required" value="username,address">
-
 <table class="form">
  <tr>
   <th>Name</th>
@@ -72,7 +69,11 @@ You are not allowed to view this page.
  </tr>
 
  <tr>
-  <td>&nbsp;</td>
+  <td>
+   &nbsp;
+   <input type="hidden" name=":template" value="item">
+   <input type="hidden" name=":required" value="username,address">
+  </td>
   <td tal:content="structure context/submit">submit button here</td>
  </tr>
 </table>
index a226413393cd3aee693dd380e8c0133d29d3dbcf..f43ca26a02a7bd92c59df4005828000450ffa797 100644 (file)
@@ -16,10 +16,6 @@ You are not allowed to view this page.
 
 <tal:block tal:condition="editok">
 <form method="POST" onSubmit="return submit_once()" enctype="multipart/form-data">
-<input type="hidden" name=":template" value="register">
-<input type="hidden" name=":required" value="username">
-<input type="hidden" name=":required" value="password">
-<input type="hidden" name=":required" value="address">
 
 <table class="form">
  <tr>
@@ -66,6 +62,8 @@ You are not allowed to view this page.
  <tr>
   <td>&nbsp;</td>
   <td>
+   <input type="hidden" name=":template" value="register">
+   <input type="hidden" name=":required" value="username,password,address">
    <input type="hidden" name=":action" value="register">
    <input type="submit" name="submit" value="Register">
   </td>