joerg 2004/04/03 04:18:02
Modified: src/blocks/forms/samples/forms form1.xml form1_template.xml
form1_template_action.xml
Log:
add a sample, that shows that fields are not styled correctly inside
repeaters;
while they end as
<fi:field id="birthdate" required="true">
<fi:value>03/04/2004</fi:value>
<fi:label>Your birthdate (dd/MM/yyyy):</fi:label>
<fi:styling type="date" format="dd/MM/yyyy"/>
</fi:field>
outside of repeaters, inside the repeaters they look so:
<fi:field id="contacts.1.birthdate" required="false">
<fi:label>Birthdate (dd/MM/yyyy):</fi:label>
<fi:styling/>
</fi:field>
Revision Changes Path
1.2 +11 -1 cocoon-2.1/src/blocks/forms/samples/forms/form1.xml
Index: form1.xml
===================================================================
RCS file: /home/cvs/cocoon-2.1/src/blocks/forms/samples/forms/form1.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- form1.xml 9 Mar 2004 10:33:48 -0000 1.1
+++ form1.xml 3 Apr 2004 12:18:02 -0000 1.2
@@ -282,6 +282,16 @@
<fd:email/>
</fd:validation>
</fd:field>
+ <fd:field id="birthdate">
+ <fd:label>Birthdate (dd/MM/yyyy):</fd:label>
+ <fd:datatype base="date">
+ <fd:convertor>
+ <fd:patterns>
+ <fd:pattern>dd/MM/yyyy</fd:pattern>
+ </fd:patterns>
+ </fd:convertor>
+ </fd:datatype>
+ </fd:field>
<fd:booleanfield id="select">
<fd:label>Select</fd:label>
</fd:booleanfield>
1.2 +2 -0
cocoon-2.1/src/blocks/forms/samples/forms/form1_template.xml
Index: form1_template.xml
===================================================================
RCS file:
/home/cvs/cocoon-2.1/src/blocks/forms/samples/forms/form1_template.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- form1_template.xml 9 Mar 2004 10:33:48 -0000 1.1
+++ form1_template.xml 3 Apr 2004 12:18:02 -0000 1.2
@@ -97,6 +97,7 @@
<th><ft:repeater-widget-label id="contacts"
widget-id="lastname"/></th>
<th><ft:repeater-widget-label id="contacts"
widget-id="phone"/></th>
<th><ft:repeater-widget-label id="contacts"
widget-id="email"/></th>
+ <th><ft:repeater-widget-label id="contacts"
widget-id="birthdate"/></th>
<th><ft:repeater-widget-label id="contacts"
widget-id="select"/></th>
</tr>
@@ -108,6 +109,7 @@
<td><ft:widget id="lastname"/></td>
<td><ft:widget id="phone"/></td>
<td><ft:widget id="email"/></td>
+ <td><ft:widget id="birthdate"/></td>
<td><ft:widget id="select"/></td>
</tr>
</ft:repeater-widget>
1.2 +6 -0
cocoon-2.1/src/blocks/forms/samples/forms/form1_template_action.xml
Index: form1_template_action.xml
===================================================================
RCS file:
/home/cvs/cocoon-2.1/src/blocks/forms/samples/forms/form1_template_action.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- form1_template_action.xml 9 Mar 2004 10:33:48 -0000 1.1
+++ form1_template_action.xml 3 Apr 2004 12:18:02 -0000 1.2
@@ -114,6 +114,9 @@
<ft:repeater-widget-label id="contacts" widget-id="email"/>
</th>
<th>
+ <ft:repeater-widget-label id="contacts"
widget-id="birthdate"/>
+ </th>
+ <th>
<ft:repeater-widget-label id="contacts"
widget-id="select"/>
</th>
</tr>
@@ -132,6 +135,9 @@
</td>
<td>
<ft:widget id="email"/>
+ </td>
+ <td>
+ <ft:widget id="birthdate"/>
</td>
<td>
<ft:widget id="select"/>