source: main/waeup.kofa/trunk/src/waeup/kofa/hostels/browser_templates/hostelmanagepage.pt @ 9124

Last change on this file since 9124 was 7811, checked in by uli, 13 years ago

Rename all non-locales stuff from sirp to kofa.

File size: 2.6 KB
Line 
1<form action="." tal:attributes="action request/URL" method="POST"
2      i18n:domain="waeup.kofa" enctype="multipart/form-data">
3
4  <ul class="tabs" data-tabs="tabs">
5    <li tal:attributes="class view/tab1"><a href="#tab-1">
6      <span i18n:translate="">Hostel Data</span></a>
7    </li>
8    <li tal:attributes="class view/tab2"><a href="#tab-2">
9      <span i18n:translate="">Beds</span></a>
10    </li>
11  </ul>
12
13  <div class="tab-content">
14    <div id="tab-1" tal:attributes="class view/tab1">
15      <table class="form-table">
16      <tbody>
17        <tal:widgets content="structure provider:widgets" />
18      </tbody>
19      </table>
20      <div tal:condition="view/availableActions">
21        <span tal:repeat="action view/actions"
22              tal:omit-tag="">
23          <input tal:condition="python:action.label in view.taboneactions"
24                 tal:replace="structure action/render"/>
25        </span>
26      </div>
27    </div>
28
29    <div id="tab-2" tal:attributes="class view/tab2">
30      <h3>Beds</h3>
31      <table class="display dataTableManage">
32      <thead>
33        <tr>
34          <th>&nbsp;</th>
35          <th i18n:translate="">Id</th>
36          <th i18n:translate="">Type</th>
37          <th i18n:translate="">Number</th>
38          <th i18n:translate="">Owner</th>
39        </tr>
40      </thead>
41      <tbody>
42        <tr tal:repeat="value context/values">
43           <td>
44            <input type="checkbox" name="val_id"
45                  tal:attributes="value value/__name__" />
46          </td>
47          <td tal:content="value/bed_id">ID</td>
48          <td tal:content="value/bed_type">TYPE</td>
49          <td tal:content="value/bed_number">NUMBER</td>
50          <td>
51            <a tal:condition="python: value.owner != view.not_occupied"
52               tal:attributes="href python: '%s/%s/accommodation' %
53                    (view.students_url,value.owner)">
54              <span tal:content="value/owner">OWNER</span>
55            </a>
56            <a tal:condition="python: value.owner == view.not_occupied"
57               tal:attributes="href python: view.url(value)"
58               i18n:translate="">
59            [allocate student]
60            </a>
61          </td>
62        </tr>
63      </tbody>
64      </table>
65
66      <div tal:condition="view/availableActions">
67        <span tal:repeat="action view/actions"
68              tal:omit-tag="">
69          <input tal:condition="python:action.label in view.tabtwoactions"
70                 tal:replace="structure action/render"/>
71        </span>
72      </div>
73
74    </div>
75  </div>
76</form> 
77
78
79
Note: See TracBrowser for help on using the repository browser.