[MKDoc-commit] Mode moved to the top and lables fixes for radio buttons

chris at mkdoc.demon.co.uk chris at mkdoc.demon.co.uk
Tue Mar 22 12:35:37 GMT 2005


Log Message:
-----------
Mode moved to the top and lables fixes for radio buttons

Tags:
----
mkdoc-1-6

Modified Files:
--------------
    mkd/templates/editor/headlines:
        en.html

-------------- next part --------------
Index: en.html
===================================================================
RCS file: /var/spool/cvs/mkd/templates/editor/headlines/Attic/en.html,v
retrieving revision 1.1.2.15
retrieving revision 1.1.2.16
diff -Ltemplates/editor/headlines/en.html -Ltemplates/editor/headlines/en.html -u -r1.1.2.15 -r1.1.2.16
--- templates/editor/headlines/en.html
+++ templates/editor/headlines/en.html
@@ -105,6 +105,52 @@
         xml:lang="en"
         lang="en"
         dir="ltr"
+      >The mode which determines headline selection.  Choose 'Newest Documents' to show the latest documents created.  Choose 'Upcoming Events' to show those with time-ranges occuring soonest.</em>
+      <label
+        for="headlines_mode"
+        xml:lang="en"
+        lang="en"
+        dir="ltr"
+        petal:attributes="for name_mode"
+      >Mode</label>
+      <br />
+      <select
+        name="headlines_mode"
+        id="headlines_mode"
+        title="Choose the headline mode here."
+        petal:attributes="name name_mode; id name_mode"
+      >
+          <option 
+            selected="selected"
+            value="newest"
+            title="Newest Documents"
+            petal:condition="true: self/mode_is_newest"
+          >Newest Documents</option>
+          <option 
+            value="newest"
+            title="Newest Documents"
+            petal:condition="false: self/mode_is_newest"
+          >Newest Documents</option>
+          <option 
+            selected="selected"
+            value="upcoming"
+            title="Upcoming Events"
+            petal:condition="true: self/mode_is_upcoming"
+          >Upcoming Events</option>
+          <option 
+            value="upcoming"
+            title="Upcoming Events"
+            petal:condition="false: self/mode_is_upcoming"
+          >Upcoming Events</option>
+     </select>
+    </p>
+
+    <p>
+      <em
+        class="help"
+        xml:lang="en"
+        lang="en"
+        dir="ltr"
       >
         Only documents that are descendants of this document will be show up
          in the list of documents that is generated. 
@@ -123,7 +169,7 @@
         id="headlines_from_path"
         class="input-text"
         value="/foo/bar/"
-        size="35"
+        size="20"
         dir="ltr"
         title="Enter the document path from which the headlines should be generated."
         petal:attributes="name name_from_path; id name_from_path; value self/from_path"
@@ -196,52 +242,6 @@
         xml:lang="en"
         lang="en"
         dir="ltr"
-      >The mode which determines headline selection.  Choose 'Newest Documents' to show the latest documents created.  Choose 'Upcoming Events' to show those with time-ranges occuring soonest.</em>
-      <label
-        for="headlines_mode"
-        xml:lang="en"
-        lang="en"
-        dir="ltr"
-        petal:attributes="for name_mode"
-      >Mode</label>
-      <br />
-      <select
-        name="headlines_mode"
-        id="headlines_mode"
-        title="Choose the headline mode here."
-        petal:attributes="name name_mode; id name_mode"
-      >
-          <option 
-            selected="selected"
-            value="newest"
-            title="Newest Documents"
-            petal:condition="true: self/mode_is_newest"
-          >Newest Documents</option>
-          <option 
-            value="newest"
-            title="Newest Documents"
-            petal:condition="false: self/mode_is_newest"
-          >Newest Documents</option>
-          <option 
-            selected="selected"
-            value="upcoming"
-            title="Upcoming Events"
-            petal:condition="true: self/mode_is_upcoming"
-          >Upcoming Events</option>
-          <option 
-            value="upcoming"
-            title="Upcoming Events"
-            petal:condition="false: self/mode_is_upcoming"
-          >Upcoming Events</option>
-     </select>
-    </p>
-
-    <p>
-      <em
-        class="help"
-        xml:lang="en"
-        lang="en"
-        dir="ltr"
       >
         The maximum number of documents to be listed.
       </em>
@@ -286,10 +286,11 @@
           petal:attributes="name name_audience_on; id string:${name_audience_on}_yes; checked self/audience_on"
          />
          <label 
-          for="audience_on"
+          for="audience_on_yes"
           xml:lang="en"
           lang="en"
           dir="ltr"
+          petal:attributes="for string:${name_audience_on}_yes"
          >On</label>
         <input 
           name="audience_on"
@@ -299,11 +300,12 @@
           petal:attributes="name name_audience_on; id string:${name_audience_on}_no; checked self/audience_off"
          />
          <label 
-          for="audience_on"
+          for="audience_on_no"
           xml:lang="en"
           lang="en"
           dir="ltr"
           value="0"
+          petal:attributes="for string:${name_audience_on}_no"
          >Off</label>
          <br />
         <label


More information about the MKDoc-commit mailing list