home *** CD-ROM | disk | FTP | other *** search
/ PC Professionell 2004 December / PCpro_2004_12.ISO / files / webserver / xampp / xampp-cocoon-addon-1.4.9-installer.exe / singleTaskFormTemplate.xml < prev    next >
Encoding:
Extensible Markup Language  |  2004-07-12  |  3.8 KB  |  116 lines

  1. <?xml version="1.0"?>
  2.  
  3. <!--
  4.   Copyright 1999-2004 The Apache Software Foundation
  5.  
  6.   Licensed under the Apache License, Version 2.0 (the "License");
  7.   you may not use this file except in compliance with the License.
  8.   You may obtain a copy of the License at
  9.  
  10.       http://www.apache.org/licenses/LICENSE-2.0
  11.  
  12.   Unless required by applicable law or agreed to in writing, software
  13.   distributed under the License is distributed on an "AS IS" BASIS,
  14.   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15.   See the License for the specific language governing permissions and
  16.   limitations under the License.
  17. -->
  18.  
  19. <!-- Cocoon Forms template used to to edit a TaskBean -->
  20. <!-- Define the page contents of the form -->
  21.  
  22. <page
  23.     id="page"
  24.     xmlns:fi="http://apache.org/cocoon/forms/1.0#instance"
  25.     xmlns:ft="http://apache.org/cocoon/forms/1.0#template"
  26.     >
  27.  
  28.     <title>TaskBean editing</title>
  29.  
  30.     <content>
  31.         <ft:form-template action="#{$continuation/id}.continue" method="POST">
  32.  
  33.             <!-- first table: general TaskBean info -->
  34.             <h2>Task info</h2>
  35.             <table>
  36.                 <tr>
  37.                     <tr>
  38.                         <td class="legend">
  39.                             <ft:widget-label id="taskId"/>
  40.                         </td>
  41.                         <td>
  42.                             <ft:widget id="taskId"/>
  43.                         </td>
  44.                     </tr>
  45.                     <td class="legend">
  46.                         <ft:widget-label id="taskName"/>
  47.                     </td>
  48.                     <td>
  49.                         <ft:widget id="taskName">
  50.                             <fi:styling size="60"/>
  51.                         </ft:widget>
  52.                     </td>
  53.                 </tr>
  54.                 <tr>
  55.                     <td class="legend">
  56.                         <ft:widget-label id="assignedTo"/>
  57.                     </td>
  58.                     <td>
  59.                         <ft:widget id="assignedTo">
  60.                             <fi:styling size="60"/>
  61.                         </ft:widget>
  62.                     </td>
  63.                 </tr>
  64.             </table>
  65.  
  66.             <!-- submit button -->
  67.             <input type="submit" value="Save page"/>
  68.  
  69.             <!-- Second table: list of comments -->
  70.             <h2><ft:widget-label id="comments"/></h2>
  71.             <ft:repeater-size id="comments"/>
  72.             <table>
  73.                 <tr>
  74.                     <th>
  75.                          
  76.                     </th>
  77.                     <th>
  78.                         <ft:repeater-widget-label id="comments" widget-id="date"/>
  79.                     </th>
  80.                     <th>
  81.                         <ft:repeater-widget-label id="comments" widget-id="comment"/>
  82.                     </th>
  83.                 </tr>
  84.  
  85.                 <!-- The contents of the repeater-widget element is a template that will
  86.                 be applied to each row in the repeater. -->
  87.                 <ft:repeater-widget id="comments">
  88.                     <tr>
  89.                         <td>
  90.                             <ft:widget id="select"/>
  91.                         </td>
  92.                         <td>
  93.                             <ft:widget id="date">
  94.                                 <fi:styling size="10"/>
  95.                             </ft:widget>
  96.                         </td>
  97.                         <td>
  98.                             <ft:widget id="comment">
  99.                                 <fi:styling size="60"/>
  100.                             </ft:widget>
  101.                         </td>
  102.                     </tr>
  103.                 </ft:repeater-widget>
  104.  
  105.                 <tr>
  106.                     <td colspan="3" align="right">
  107.                         <ft:widget id="addcomment"/>
  108.                         <ft:widget id="removecomment"/>
  109.                     </td>
  110.                 </tr>
  111.             </table>
  112.  
  113.         </ft:form-template>
  114.     </content>
  115. </page>
  116.