source: main/waeup.kofa/trunk/src/waeup/kofa/students/browser_templates/accommodationmanagepage.pt @ 10906

Last change on this file since 10906 was 9984, checked in by Henrik Bettermann, 12 years ago

FCEOkene wants to hide the bed coordinates if maintenance fee is not yet paid. Thus we need additional property attributes which return the p_item (payment tickets) and the bed_coordinates attributes (bed tickets) by default and can be easily customized to hide this information in certain cases. bed_coordinates and p_item must be omitted on forms. The new display_ attributes are displayed instead.

All packages must now be adjusted.

The 'cost-benefit ratio' of these kinds of customizations is quite bad and we should think about declining such customization requests. However, I started customization and these are the changed made in the base package.

File size: 1.3 KB
Line 
1<form action="." tal:attributes="action request/URL" method="POST"
2      i18n:domain="waeup.kofa" enctype="multipart/form-data">
3
4  <table class="display dataTableManage">
5    <thead>
6    <tr>
7      <th tal:condition="not: layout/isStudent">&nbsp;</th>
8      <th i18n:translate="">Session</th>
9      <th i18n:translate="">Booking Date</th>
10      <th i18n:translate="">Bed Coordinates</th>
11      <th i18n:translate="">Bed Category</th>
12    </tr>
13    </thead>
14    <tbody>
15      <tr tal:repeat="cl context/values">
16         <td tal:condition="not: layout/isStudent">
17          <input type="checkbox"
18                 name="val_id"
19                 tal:attributes="value cl/__name__" />
20        </td>
21        <td> <a tal:attributes="href cl/__name__">
22        <span tal:content="python: cl.getSessionString()">PID</span></a></td>
23        <td tal:content="python: layout.formatDatetime(cl.booking_date)">DATE</td>
24        <td tal:content="cl/display_coordinates">COORDINATES</td>
25        <td tal:content="cl/bed_type">TYPE</td>
26      </tr>
27    </tbody>
28  </table>
29
30  <div tal:condition="view/availableActions">
31    <span tal:repeat="action view/selected_actions"
32          tal:omit-tag="">
33      <input tal:replace="structure action/render"/>
34    </span>
35  </div>
36</form>
Note: See TracBrowser for help on using the repository browser.