[MKDoc-commit] Audiences split into a seperate file
chris at mkdoc.demon.co.uk
chris at mkdoc.demon.co.uk
Thu Jan 27 10:15:15 GMT 2005
Log Message:
-----------
Audiences split into a seperate file
Tags:
----
mkdoc-1-6
Modified Files:
--------------
mkd/templates/account/preferences:
en.html
Added Files:
-----------
mkd/templates/account/preferences/audiences:
en.html
-------------- next part --------------
Index: en.html
===================================================================
RCS file: /var/spool/cvs/mkd/templates/account/preferences/Attic/en.html,v
retrieving revision 1.3.2.34
retrieving revision 1.3.2.35
diff -Ltemplates/account/preferences/en.html -Ltemplates/account/preferences/en.html -u -r1.3.2.34 -r1.3.2.35
--- templates/account/preferences/en.html
+++ templates/account/preferences/en.html
@@ -557,74 +557,8 @@
</fieldset>
- <fieldset
- class="audience-preferences"
- petal:condition="true: self/preferences/audiences"
- >
-
- <legend
- lang="en"
- xml:lang="en"
- dir="ltr"
- >
- <a
- id="audience-preferences"
- name="audience-preferences"
- >Audience Preferences</a>
- </legend>
-
- <p>
- This section of the form allows you to indicate which audience keywords
- best describe your interests. This information is used to generate
- customised email newsletters and listings of documents on the site.
- </p>
-
- <!--? For all available audiences ?-->
- <div
- petal:repeat="audience self/preferences/audiences"
- 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/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: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>
+<!--? The audiences are in a seperate file ?-->
+<?include file="/account/preferences/audiences/"?>
<fieldset
class="language-preferences"
--- /dev/null
+++ templates/account/preferences/audiences/en.html
@@ -0,0 +1,73 @@
+<!--?
+
+This contains the audiences section of the user perferences page.
+
+?-->
+<fieldset
+ class="audience-preferences"
+ petal:condition="true: self/preferences/audiences"
+>
+
+ <legend
+ lang="en"
+ xml:lang="en"
+ dir="ltr"
+ >
+ <a
+ id="audience-preferences"
+ name="audience-preferences"
+ >Audience Preferences</a>
+ </legend>
+
+ <p>
+ This section of the form allows you to indicate which audience keywords
+ best describe your interests. This information is used to generate
+ customised email newsletters and listings of documents on the site.
+ </p>
+
+ <!--? For all available audiences ?-->
+ <div
+ petal:repeat="audience self/preferences/audiences"
+ 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/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: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>
More information about the MKDoc-commit
mailing list