[MKDoc-commit] Merged in updates from Sam

chris at mkdoc.demon.co.uk chris at mkdoc.demon.co.uk
Tue Oct 26 16:54:21 BST 2004


Log Message:
-----------
Merged in updates from Sam (http://lists.webarch.co.uk/pipermail/mkdoc-dev/2004-October/000144.html)
and removed redundant title attributes from select lists.

Tags:
----
mkdoc-1-6

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

-------------- next part --------------
Index: en.html
===================================================================
RCS file: /var/spool/cvs/mkd/templates/editor/timerange/Attic/en.html,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -Ltemplates/editor/timerange/en.html -Ltemplates/editor/timerange/en.html -u -r1.1.2.4 -r1.1.2.5
--- templates/editor/timerange/en.html
+++ templates/editor/timerange/en.html
@@ -199,25 +199,68 @@
         title="Select the start month."
         petal:attributes="name name_from_month; 
                           id   name_from_month;"
+        petal:define="from_months self/month_select --from;"
       >
-        <div 
-          petal:repeat="month self/month_select --from"
-          petal:omit-tag=""
-        >
           <option 
-            selected="selected"
-            petal:attributes="value    month/value;
-                              title    month/value"
-            petal:content="month/label"
-            petal:condition="true: month/is_selected"
+            value="1"
+            title="1"
+            petal:attributes="selected from_months/0/is_selected"
           >January</option>
           <option 
-            petal:attributes="value    month/value;
-                              title    month/value"
-            petal:content="month/label"
-            petal:condition="false: month/is_selected"
-          >Feburary</option>
-        </div>
+            value="2"
+            title="2"
+            petal:attributes="selected from_months/1/is_selected"
+          >February</option>
+          <option 
+            value="3"
+            title="3"
+            petal:attributes="selected from_months/2/is_selected"
+          >March</option>
+          <option 
+            value="4"
+            title="4"
+            petal:attributes="selected from_months/3/is_selected"
+          >April</option>
+          <option 
+            value="5"
+            title="5"
+            petal:attributes="selected from_months/4/is_selected"
+          >May</option>
+          <option 
+            value="6"
+            title="6"
+            petal:attributes="selected from_months/5/is_selected"
+          >June</option>
+          <option 
+            value="7"
+            title="7"
+            petal:attributes="selected from_months/6/is_selected"
+          >July</option>
+          <option 
+            value="8"
+            title="8"
+            petal:attributes="selected from_months/7/is_selected"
+          >August</option>
+          <option 
+            value="9"
+            title="9"
+            petal:attributes="selected from_months/8/is_selected"
+          >September</option>
+          <option 
+            value="10"
+            title="10"
+            petal:attributes="selected from_months/9/is_selected"
+          >October</option>
+          <option 
+            value="11"
+            title="11"
+            petal:attributes="selected from_months/10/is_selected"
+          >November</option>
+          <option 
+            value="12"
+            title="12"
+            petal:attributes="selected from_months/11/is_selected"
+          >December</option>
       </select>
 
       <label
@@ -237,14 +280,12 @@
         >
           <option 
             selected="selected"
-            petal:attributes="value    day/value;
-                              title    day/value"
+            petal:attributes="value    day/value;"
             petal:content="day/label"
             petal:condition="true: day/is_selected"
           >01</option>
           <option 
-            petal:attributes="value    day/value;
-                              title    day/value"
+            petal:attributes="value    day/value;"
             petal:content="day/label"
             petal:condition="false: day/is_selected"
           >02</option>
@@ -268,14 +309,12 @@
         >
           <option 
             selected="selected"
-            petal:attributes="value    year/value;
-                              title    year/value"
+            petal:attributes="value    year/value;"
             petal:content="year/label"
             petal:condition="true: year/is_selected"
           >2004</option>
           <option 
-            petal:attributes="value    year/value;
-                              title    year/value"
+            petal:attributes="value    year/value;"
             petal:content="year/label"
             petal:condition="false: year/is_selected"
           >2004</option>
@@ -299,14 +338,12 @@
         >
           <option 
             selected="selected"
-            petal:attributes="value    hour/value;
-                              title    hour/value"
+            petal:attributes="value    hour/value;"
             petal:content="hour/label"
             petal:condition="true: hour/is_selected"
           >00</option>
           <option 
-            petal:attributes="value    hour/value;
-                              title    hour/value"
+            petal:attributes="value    hour/value;"
             petal:content="hour/label"
             petal:condition="false: hour/is_selected"
           >01</option>
@@ -330,14 +367,12 @@
         >
           <option 
             selected="selected"
-            petal:attributes="value    minute/value;
-                              title    minute/value"
+            petal:attributes="value    minute/value;"
             petal:content="minute/label"
             petal:condition="true: minute/is_selected"
           >00</option>
           <option 
-            petal:attributes="value    minute/value;
-                              title    minute/value"
+            petal:attributes="value    minute/value;"
             petal:content="minute/label"
             petal:condition="false: minute/is_selected"
           >00</option>
@@ -401,28 +436,71 @@
       <select 
         id="timerange_to_month"
         name="timerange_to_month"
-        title="Select the start month."
+        title="Select the end month."
         petal:attributes="name name_to_month; 
                           id   name_to_month;"
+        petal:define="to_months self/month_select --to;"
       >
-        <div
-          petal:repeat="month self/month_select --to"
-          petal:omit-tag=""
-        >
           <option 
-            selected="selected"
-            petal:attributes="value    month/value;
-                              title    month/value;"
-            petal:content="month/label"
-            petal:condition="true: month/is_selected"
+            value="1"
+            title="1"
+            petal:attributes="selected to_months/0/is_selected"
           >January</option>
           <option 
-            petal:attributes="value    month/value;
-                              title    month/value;"
-            petal:content="month/label"
-            petal:condition="false: month/is_selected"
-          >January</option>
-        </div>
+            value="2"
+            title="2"
+            petal:attributes="selected to_months/1/is_selected"
+          >February</option>
+          <option 
+            value="3"
+            title="3"
+            petal:attributes="selected to_months/2/is_selected"
+          >March</option>
+          <option 
+            value="4"
+            title="4"
+            petal:attributes="selected to_months/3/is_selected"
+          >April</option>
+          <option 
+            value="5"
+            title="5"
+            petal:attributes="selected to_months/4/is_selected"
+          >May</option>
+          <option 
+            value="6"
+            title="6"
+            petal:attributes="selected to_months/5/is_selected"
+          >June</option>
+          <option 
+            value="7"
+            title="7"
+            petal:attributes="selected to_months/6/is_selected"
+          >July</option>
+          <option 
+            value="8"
+            title="8"
+            petal:attributes="selected to_months/7/is_selected"
+          >August</option>
+          <option 
+            value="9"
+            title="9"
+            petal:attributes="selected to_months/8/is_selected"
+          >September</option>
+          <option 
+            value="10"
+            title="10"
+            petal:attributes="selected to_months/9/is_selected"
+          >October</option>
+          <option 
+            value="11"
+            title="11"
+            petal:attributes="selected to_months/10/is_selected"
+          >November</option>
+          <option 
+            value="12"
+            title="12"
+            petal:attributes="selected to_months/11/is_selected"
+          >December</option>
       </select>
 
       <label
@@ -441,14 +519,12 @@
         >
           <option 
             selected="selected"
-            petal:attributes="value    day/value;
-                              title    day/label;"
+            petal:attributes="value    day/value;"
             petal:content="day/label"
             petal:condition="true: day/is_selected"
           >January</option>
           <option 
-            petal:attributes="value    day/value;
-                              title    day/value;"
+            petal:attributes="value    day/value;"
             petal:content="day/label"
             petal:condition="false: day/is_selected"
           >Feburary</option>
@@ -472,14 +548,12 @@
         >
           <option 
             selected="selected"
-            petal:attributes="value    year/value;
-                              title    year/value"
+            petal:attributes="value    year/value;"
             petal:content="year/label"
             petal:condition="true: year/is_selected"
           >2004</option>
           <option 
-            petal:attributes="value    year/value;
-                              title    year/value"
+            petal:attributes="value    year/value;"
             petal:content="year/label"
             petal:condition="false: year/is_selected"
           >2005</option>
@@ -503,14 +577,12 @@
         >
           <option 
             selected="selected"
-            petal:attributes="value    hour/value;
-                              title    hour/value;"
+            petal:attributes="value    hour/value;"
             petal:content="hour/label"
             petal:condition="true: hour/is_selected"
           >00</option>
           <option 
-            petal:attributes="value    hour/value;
-                              title    hour/value;"
+            petal:attributes="value    hour/value;"
             petal:content="hour/label"
             petal:condition="false: hour/is_selected"
           >01</option>
@@ -534,14 +606,12 @@
         >
           <option 
             selected="selected"
-            petal:attributes="value    minute/value;
-                              title    minute/value"
+            petal:attributes="value    minute/value;"
             petal:content="minute/label"
             petal:condition="true: minute/is_selected"
           >00</option>
           <option 
-            petal:attributes="value    minute/value;
-                              title    minute/value"
+            petal:attributes="value    minute/value;"
             petal:content="minute/label"
             petal:condition="false: minute/is_selected"
           >01</option>
@@ -571,7 +641,7 @@
           >BST</option>
           <option 
             petal:attributes="value    tz/value;
-                              title    tz/label;"
+                              title    tz/value;"
             petal:content="tz/label"
             petal:condition="false: tz/is_selected"
           >GMT</option>


More information about the MKDoc-commit mailing list