source: main/waeup.kofa/branches/0.2/src/waeup/kofa/hostels/browser_templates/containermanagepage.pt @ 11476

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

Add hostel allocation start end end date attributes to hostels.

Move hostel allocation parameters from configuration to hostels. AccommodationOfficer? must be able to edit these parameters.

File size: 1.9 KB
Line 
1<form action="." tal:attributes="action request/URL"
2    i18n:domain="waeup.kofa"
3    method="POST" enctype="multipart/form-data">
4
5
6  <ul class="tabs" data-tabs="tabs">
7    <li tal:attributes="class view/tab1">
8    <a href="#tab-1">
9      <span i18n:translate="">Settings
10      </span></a>
11    </li>
12    <li tal:attributes="class view/tab2">
13    <a href="#tab-2" i18n:translate="">Hostels</a>
14    </li>
15  </ul>
16
17  <div class="tab-content">
18    <div id="tab-1" tal:attributes="class view/tab1">
19      <table class="form-table">
20        <tbody>
21          <tal:widgets content="structure provider:widgets" />
22        </tbody>
23      </table>
24      <div tal:condition="view/availableActions">
25        <span tal:repeat="action view/actions" tal:omit-tag="">
26          <input tal:condition="python:action.label in view.taboneactions"
27            tal:replace="structure action/render"/>
28        </span>
29      </div>
30    </div>
31    <div id="tab-2" tal:attributes="class view/tab2"> <br />
32      <table class="display dataTableManage">
33        <thead>
34          <tr>
35            <th>&nbsp;
36            </th>
37            <th i18n:translate="">Id
38            </th>
39            <th i18n:translate="">Name
40            </th>
41          </tr>
42        </thead>
43        <tbody>
44          <tr tal:repeat="hostel context/values"> <td>
45              <input type="checkbox" name="val_id" tal:attributes="value hostel/hostel_id" /> </td> <td>
46              <a tal:attributes="href python: view.url(hostel)" tal:content="hostel/__name__"> ID</a> </td> <td>
47              <span tal:content="hostel/hostel_name">ID
48              </span> </td>
49          </tr>
50        </tbody>
51      </table>
52      <div tal:condition="view/availableActions">
53        <span tal:repeat="action view/actions" tal:omit-tag="">
54          <input tal:condition="python:action.label in view.tabtwoactions"
55            tal:replace="structure action/render"/>
56        </span>
57      </div>
58    </div>
59  </div>
60</form>
Note: See TracBrowser for help on using the repository browser.