[MKDoc-commit] Labels added to form elements.
chris at mkdoc.demon.co.uk
chris at mkdoc.demon.co.uk
Fri Oct 22 15:10:19 BST 2004
Log Message:
-----------
Labels added to form elements.
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.3
retrieving revision 1.1.2.4
diff -Ltemplates/editor/timerange/en.html -Ltemplates/editor/timerange/en.html -u -r1.1.2.3 -r1.1.2.4
--- templates/editor/timerange/en.html
+++ templates/editor/timerange/en.html
@@ -394,109 +394,196 @@
>End Date</span>
<br />
+ <label
+ for="timerange_to_month"
+ petal:attributes="for name_to_month"
+ >Month</label>
<select
id="timerange_to_month"
name="timerange_to_month"
title="Select the start month."
- petal:attributes="name name_to_month; id name_to_month"
+ petal:attributes="name name_to_month;
+ id name_to_month;"
>
- <option value="">Month</option>
- <option
+ <div
petal:repeat="month self/month_select --to"
- petal:attributes="selected month/is_selected;
- value month/value;
- title month/label"
- petal:content="month/label"
- ></option>
- </select>
-
+ petal:omit-tag=""
+ >
+ <option
+ selected="selected"
+ petal:attributes="value month/value;
+ title month/value;"
+ petal:content="month/label"
+ petal:condition="true: month/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>
+ </select>
+
+ <label
+ for="timerange_to_day"
+ petal:attributes="for name_to_day"
+ >Day</label>
<select
id="timerange_to_day"
name="timerange_to_day"
title="Select the start day."
petal:attributes="name name_to_day; id name_to_day"
>
- <option value="">Day</option>
- <option
+ <div
petal:repeat="day self/day_select --to"
- petal:attributes="selected day/is_selected;
- value day/value;
- title day/label"
- petal:content="day/label"
- ></option>
- </select>
-
+ petal:omit-tag=""
+ >
+ <option
+ selected="selected"
+ petal:attributes="value day/value;
+ title day/label;"
+ petal:content="day/label"
+ petal:condition="true: day/is_selected"
+ >January</option>
+ <option
+ petal:attributes="value day/value;
+ title day/value;"
+ petal:content="day/label"
+ petal:condition="false: day/is_selected"
+ >Feburary</option>
+ </div>
+ </select>
+
+ <label
+ for="timerange_to_year"
+ petal:attributes="for name_to_year"
+ >Year</label>
<select
id="timerange_to_year"
name="timerange_to_year"
title="Select the start year."
- petal:attributes="name name_to_year; id name_to_year"
+ petal:attributes="name name_to_year;
+ id name_to_year;"
>
- <option value="">Year</option>
- <option
+ <div
petal:repeat="year self/year_select --to"
- petal:attributes="selected year/is_selected;
- value year/value;
- title year/label"
- petal:content="year/label"
- ></option>
- </select>
-
- at
-
+ petal:omit-tag=""
+ >
+ <option
+ selected="selected"
+ petal:attributes="value year/value;
+ title year/value"
+ petal:content="year/label"
+ petal:condition="true: year/is_selected"
+ >2004</option>
+ <option
+ petal:attributes="value year/value;
+ title year/value"
+ petal:content="year/label"
+ petal:condition="false: year/is_selected"
+ >2005</option>
+ </div>
+ </select>
+
+ <label
+ for="timerange_to_hour"
+ petal:attributes="for name_to_hour"
+ >Hour</label>
<select
id="timerange_to_hour"
name="timerange_to_hour"
title="Select the start hour."
- petal:attributes="name name_to_hour; id name_to_hour"
+ petal:attributes="name name_to_hour;
+ id name_to_hour;"
>
- <option value="">Hour</option>
- <option
+ <div
petal:repeat="hour self/hour_select --to"
- petal:attributes="selected hour/is_selected;
- value hour/value;
- title hour/label"
- petal:content="hour/label"
- ></option>
+ petal:omit-tag=""
+ >
+ <option
+ selected="selected"
+ petal:attributes="value hour/value;
+ title hour/value;"
+ petal:content="hour/label"
+ petal:condition="true: hour/is_selected"
+ >00</option>
+ <option
+ petal:attributes="value hour/value;
+ title hour/value;"
+ petal:content="hour/label"
+ petal:condition="false: hour/is_selected"
+ >01</option>
+ </div>
</select>
-
- :
+ <label
+ for="timerange_to_minute"
+ petal:attributes="for name_to_minute"
+ >Minute</label>
<select
id="timerange_to_minute"
name="timerange_to_minute"
title="Select the start minute."
- petal:attributes="name name_to_minute; id name_to_minute"
+ petal:attributes="name name_to_minute;
+ id name_to_minute;"
>
- <option value="">Minute</option>
- <option
+ <div
petal:repeat="minute self/minute_select --to"
- petal:attributes="selected minute/is_selected;
- value minute/value;
- title minute/label"
- petal:content="minute/label"
- ></option>
- </select>
-
+ petal:omit-tag=""
+ >
+ <option
+ selected="selected"
+ petal:attributes="value minute/value;
+ title minute/value"
+ petal:content="minute/label"
+ petal:condition="true: minute/is_selected"
+ >00</option>
+ <option
+ petal:attributes="value minute/value;
+ title minute/value"
+ petal:content="minute/label"
+ petal:condition="false: minute/is_selected"
+ >01</option>
+ </div>
+ </select>
+
+ <label
+ for="timerange_to_tz"
+ petal:attributes="for name_to_tz"
+ >Time Zone</label>
<select
id="timerange_to_tz"
name="timerange_to_tz"
title="Select the start tz."
petal:attributes="name name_to_tz; id name_to_tz"
>
- <option
+ <div
petal:repeat="tz self/tz_select --to"
- petal:attributes="selected tz/is_selected;
- value tz/value;
- title tz/label"
- petal:content="tz/label"
- ></option>
+ petal:omit-tag=""
+ >
+ <option
+ selected="selected"
+ petal:attributes="value tz/value;
+ title tz/value;"
+ petal:content="tz/label"
+ petal:condition="true: tz/is_selected"
+ >BST</option>
+ <option
+ petal:attributes="value tz/value;
+ title tz/label;"
+ petal:content="tz/label"
+ petal:condition="false: tz/is_selected"
+ >GMT</option>
+ </div>
</select>
- <!-- hidden field to store database ID for Document_TimeRange.ID -->
+ <!--? hidden field to store database ID for Document_TimeRange.ID ?-->
<input
type="hidden"
- petal:attributes="name name_Document_TimeRange_ID; id name_Document_TimeRange_ID; value self/Document_TimeRange_ID"
+ petal:attributes="name name_Document_TimeRange_ID;
+ id name_Document_TimeRange_ID;
+ value self/Document_TimeRange_ID;"
/>
</p>
@@ -552,7 +639,8 @@
lang="en"
dir="ltr"
title="Move this component down."
- petal:attributes="name name_move_down; id name_move_down"
+ petal:attributes="name name_move_down;
+ id name_move_down;"
/>
</p>
More information about the MKDoc-commit
mailing list