[MKDoc-commit] Moved prefixed audiences into seperate fieldsets but un prefixed ones

chris at mkdoc.demon.co.uk chris at mkdoc.demon.co.uk
Fri Jan 28 11:38:52 GMT 2005


Log Message:
-----------
Moved prefixed audiences into seperate fieldsets but un prefixed ones not in
an extra fieldset now...

Tags:
----
mkdoc-1-6

Modified Files:
--------------
    mkd/templates/account/preferences/audiences:
        en.html

-------------- next part --------------
Index: en.html
===================================================================
RCS file: /var/spool/cvs/mkd/templates/account/preferences/audiences/Attic/en.html,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -Ltemplates/account/preferences/audiences/en.html -Ltemplates/account/preferences/audiences/en.html -u -r1.1.2.3 -r1.1.2.4
--- templates/account/preferences/audiences/en.html
+++ templates/account/preferences/audiences/en.html
@@ -25,70 +25,119 @@
     customised email newsletters and listings of documents on the site.
   </p>
 
-  <fieldset
-    class="audience-category"
-    petal:repeat="category self/preferences/audience_categories"
+  <div
+    petal:condition="false: category"
   >
-    <legend
-      petal:condition="true: category"
-      petal:content="category"
-      lang="en"
-      xml:lang="en"
-      dir="ltr"
-    >Fruit</legend>
+  <!--? For all available audiences ?-->
+    <div
+      petal:repeat="audience self/preferences/audiences_by_category --$category"
+      petal:omit-tag="string:1"
+    >
+      <p
+        align="left"
+        petal:attributes="align align"
+        petal:set="id string:audience_${audience/name}"
+      >
+        <label
+          for="audience"
+          petal:attributes="for id"
+          petal:inner="audience/short_label"
+        >Audience</label> 
+        <br />
+        <!--? Get the current value of the user's preference for this audience ?-->
+        <select
+          name="audience"
+          id="audience"
+          petal:attributes="name id; id id"
+          petal:set="current_val self/preferences/audience_preference $audience/name"
+        >
+          <!--? Get the options available for audiences (preserving currently ?-->
+          <!--? selected value), and generate options...                      ?-->
+          <span 
+            petal:omit-tag=""
+            petal:repeat="option self/preferences/audience_options $current_val"
+          >
+            <option
+              petal:condition="option/is_like"
+              petal:attributes="value option/name; selected option/selected"
+            >I like</option>
+            <option
+              petal:condition="option/is_dont_mind"
+              petal:attributes="value option/name; selected option/selected"
+            >I don't mind</option>
+            <option
+              petal:condition="option/is_hate"
+              petal:attributes="value option/name; selected option/selected"
+            >I dislike</option>
+          </span>
+        </select>
+      </p>
+ 
+    </div>
 
-    <legend
-      petal:condition="false: category"
-      lang="en"
-      xml:lang="en"
-      dir="ltr"
-    >Miscellaneous</legend>
+  </div>
 
-  <!--? For all available audiences ?-->
   <div
-    petal:repeat="audience self/preferences/audiences_by_category --$category"
-    petal:omit-tag="string:1"
+    class="audience-category"
+    petal:repeat="category self/preferences/audience_categories"
   >
-    <p
-      align="left"
-      petal:attributes="align align"
-      petal:set="id string:audience_${audience/name}"
+    <fieldset
+      petal:condition="true: category"
     >
-      <label
-        for="audience"
-        petal:attributes="for id"
-        petal:inner="audience/short_label"
-      >Audience</label> 
-      <br />
-      <!--? Get the current value of the user's preference for this audience ?-->
-      <select
-        name="audience"
-        id="audience"
-        petal:attributes="name id; id id"
-        petal:set="current_val self/preferences/audience_preference $audience/name"
+
+      <legend
+        petal:content="category"
+        lang="en"
+        xml:lang="en"
+        dir="ltr"
+      >Fruit</legend>
+     
+      <!--? For all available audiences ?-->
+      <div
+        petal:repeat="audience self/preferences/audiences_by_category --$category"
+        petal:omit-tag="string:1"
       >
-        <!--? Get the options available for audiences (preserving currently ?-->
-        <!--? selected value), and generate options...                      ?-->
-        <span 
-          petal:omit-tag=""
-          petal:repeat="option self/preferences/audience_options $current_val"
+        <p
+          align="left"
+          petal:attributes="align align"
+          petal:set="id string:audience_${audience/name}"
         >
-          <option
-            petal:condition="option/is_like"
-            petal:attributes="value option/name; selected option/selected"
-          >I like</option>
-          <option
-            petal:condition="option/is_dont_mind"
-            petal:attributes="value option/name; selected option/selected"
-          >I don't mind</option>
-          <option
-            petal:condition="option/is_hate"
-            petal:attributes="value option/name; selected option/selected"
-          >I dislike</option>
-        </span>
-      </select>
-    </p>
-
+          <label
+            for="audience"
+            petal:attributes="for id"
+            petal:inner="audience/short_label"
+          >Audience</label> 
+          <br />
+          <!--? Get the current value of the user's preference for this audience ?-->
+          <select
+            name="audience"
+            id="audience"
+            petal:attributes="name id; id id"
+            petal:set="current_val self/preferences/audience_preference $audience/name"
+          >
+            <!--? Get the options available for audiences (preserving currently ?-->
+            <!--? selected value), and generate options...                      ?-->
+            <span 
+              petal:omit-tag=""
+              petal:repeat="option self/preferences/audience_options $current_val"
+            >
+              <option
+                petal:condition="option/is_like"
+                petal:attributes="value option/name; selected option/selected"
+              >I like</option>
+              <option
+                petal:condition="option/is_dont_mind"
+                petal:attributes="value option/name; selected option/selected"
+              >I don't mind</option>
+              <option
+                petal:condition="option/is_hate"
+                petal:attributes="value option/name; selected option/selected"
+              >I dislike</option>
+            </span>
+          </select>
+        </p>
+      </div>
+    </fieldset>
   </div>
-  </fieldset>
+
 </fieldset>


More information about the MKDoc-commit mailing list