cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jo...@apache.org
Subject cvs commit: cocoon-2.1/src/blocks/forms/samples/forms form1_template.xml form1_template_action.xml
Date Tue, 06 Apr 2004 15:32:03 GMT
joerg       2004/04/06 08:32:03

  Modified:    src/blocks/forms/samples/forms form1_template.xml
                        form1_template_action.xml
  Log:
  Tim, forget my stupid comment about different styling in and outside of repeaters - find
the difference ;-)
  I only wonder why I have done the mistake multiple times
  
  Revision  Changes    Path
  1.3       +51 -48    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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- form1_template.xml	3 Apr 2004 12:18:02 -0000	1.2
  +++ form1_template.xml	6 Apr 2004 15:32:03 -0000	1.3
  @@ -20,9 +20,9 @@
     <title>Sample form</title>
     <content>
       <ft:form-template action="#{$continuation/id}.continue" method="POST">
  -    <table align="center">
  -     <tr>
  -       <td>
  +      <table align="center">
  +        <tr>
  +          <td>
   
               <!-- group with tabs. Each of the children of <items> will constitute
a tab -->
               <fi:group>
  @@ -76,55 +76,58 @@
               
               <p>Checkout the <a href="form1">form1 action page</a> for
another way of formatting panels</p>
   
  -      <fi:group>
  -        <fi:styling layout="columns"/>
  -        <fi:items>
  -          <ft:widget id="visa"/>
  -          <ft:widget id="ipaddress"/>
  -          <ft:widget id="altbirthdate"/>
  -          <ft:widget id="birthdate"><fi:styling type="date" format="dd/MM/yyyy"/></ft:widget>
  -          <ft:widget id="dieselprice"/>
  -        </fi:items>
  -      </fi:group>
  -
  -
  -      <!-- manual layout of fieldw, without use of a fi:group -->
  -      <ft:widget-label id="contacts"/><br/>
  -      <ft:repeater-size id="contacts"/>
  -      <table border="1">
  -        <tr>
  -          <th><ft:repeater-widget-label id="contacts" widget-id="firstname"/></th>
  -          <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>
  -
  -        <!-- The contents of the repeater-widget element is a template that will
  -        be applied to each row in the repeater. -->
  -        <ft:repeater-widget id="contacts">
  -          <tr>
  -            <td><ft:widget id="firstname"/></td>
  -            <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>
  +            <fi:group>
  +              <fi:styling layout="columns"/>
  +              <fi:items>
  +                <ft:widget id="visa"/>
  +                <ft:widget id="ipaddress"/>
  +                <ft:widget id="altbirthdate"/>
  +                <ft:widget id="birthdate">
  +                  <fi:styling type="date" format="dd/MM/yyyy"/>
  +                </ft:widget>
  +                <ft:widget id="dieselprice"/>
  +              </fi:items>
  +            </fi:group>
   
  -        <tr>
  -          <td colspan="4" align="right">
  -            <ft:widget id="addcontact"/>
  -            <ft:widget id="removecontacts"/>
  +            <!-- manual layout of fields, without use of a fi:group -->
  +            <ft:widget-label id="contacts"/><br/>
  +            <ft:repeater-size id="contacts"/>
  +            <table border="1">
  +              <tr>
  +                <th><ft:repeater-widget-label id="contacts" widget-id="firstname"/></th>
  +                <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>
  +              <!-- The contents of the repeater-widget element is a template that will
  +                   be applied to each row in the repeater. -->
  +              <ft:repeater-widget id="contacts">
  +                <tr>
  +                  <td><ft:widget id="firstname"/></td>
  +                  <td><ft:widget id="lastname"/></td>
  +                  <td><ft:widget id="phone"/></td>
  +                  <td><ft:widget id="email"/></td>
  +                  <td>
  +                    <ft:widget id="birthdate">
  +                      <fi:styling type="date" format="dd/MM/yyyy"/>
  +                    </ft:widget>
  +                  </td>
  +                  <td><ft:widget id="select"/></td>
  +                </tr>
  +              </ft:repeater-widget>
  +              <tr>
  +                <td colspan="4" align="right">
  +                  <ft:widget id="addcontact"/>
  +                  <ft:widget id="removecontacts"/>
  +                </td>
  +              </tr>
  +            </table>
  +            <input type="submit"/>
             </td>
           </tr>
         </table>
  -
  -      <input type="submit"/>
  -     </td></tr>
  -    </table>
       </ft:form-template>
     </content>
   </page>
  
  
  
  1.3       +18 -39    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.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- form1_template_action.xml	3 Apr 2004 12:18:02 -0000	1.2
  +++ form1_template_action.xml	6 Apr 2004 15:32:03 -0000	1.3
  @@ -94,54 +94,32 @@
                 </fi:items>
               </fi:group>
               
  -            
               <!-- manual layout of fields, without use of a fi:group -->
  -            <ft:widget-label id="contacts"/>
  -            <br/>
  +            <ft:widget-label id="contacts"/><br/>
               <ft:repeater-size id="contacts"/>
               <table border="1">
                 <tr>
  -                <th>
  -                  <ft:repeater-widget-label id="contacts" widget-id="firstname"/>
  -                </th>
  -                <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>
  +                <th><ft:repeater-widget-label id="contacts" widget-id="firstname"/></th>
  +                <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>
                 <!-- The contents of the repeater-widget element is a template that will
  -        be applied to each row in the repeater. -->
  +                   be applied to each row in the repeater. -->
                 <ft:repeater-widget id="contacts">
                   <tr>
  -                  <td>
  -                    <ft:widget id="firstname"/>
  -                  </td>
  -                  <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><ft:widget id="firstname"/></td>
  +                  <td><ft:widget id="lastname"/></td>
  +                  <td><ft:widget id="phone"/></td>
  +                  <td><ft:widget id="email"/></td>
  +                  <td>
  +                    <ft:widget id="birthdate">
  +                      <fi:styling type="date" format="dd/MM/yyyy"/>
  +                    </ft:widget>
                     </td>
  +                  <td><ft:widget id="select"/></td>
                   </tr>
                 </ft:repeater-widget>
                 <tr>
  @@ -158,3 +136,4 @@
       </ft:form-template>
     </content>
   </page>
  +
  
  
  

Mime
View raw message