source: main/waeup.kofa/branches/uli-diazo-themed/src/waeup/kofa/hostels/browser_templates/hostelmanagepage.pt @ 11156

Last change on this file since 11156 was 11051, checked in by Henrik Bettermann, 11 years ago

Use kofa-data-table css class for Diazo rules.

File size: 3.0 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 nav nav-tabs" data-tabs="tabs">
5    <li class="active">
6      <a href="#tab1" data-toggle="tab">
7        <span i18n:translate="">Hostel Data</span>
8      </a>
9    </li>
10    <li>
11      <a href="#tab2" data-toggle="tab">
12        <span i18n:translate="">Beds</span>
13      </a>
14    </li>
15  </ul>
16
17  <div class="tab-content">
18    <div id="tab1" class="active tab-pane">
19      <br />
20      <table class="form-table">
21      <tbody>
22        <tal:widgets content="structure provider:widgets" />
23        <tr>
24          <td class="fieldname" i18n:translate="" >
25            Reserved Beds:
26          </td>
27          <td>
28            <tal:repeat repeat="bed context/beds_reserved" >
29                <span tal:replace='bed'>BED</span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
30            </tal:repeat>
31          </td>
32        </tr>
33      </tbody>
34      </table>
35      <div tal:condition="view/availableActions">
36        <span tal:repeat="action view/actions"
37              tal:omit-tag="">
38          <input tal:condition="python:action.label in view.taboneactions"
39                 tal:replace="structure action/render"/>
40        </span>
41      </div>
42    </div>
43
44    <div id="tab2" class="tab-pane">
45      <br />
46      <table class="kofa-data-table dataTableManage">
47        <thead>
48          <tr>
49            <th>&nbsp;</th>
50            <th i18n:translate="">Id</th>
51            <th i18n:translate="">Type</th>
52            <th i18n:translate="">Number</th>
53            <th i18n:translate="">Owner</th>
54          </tr>
55        </thead>
56        <tbody>
57          <tr tal:repeat="value context/values">
58             <td>
59              <input type="checkbox" name="val_id"
60                          tal:attributes="value value/__name__" />
61            </td>
62            <td tal:content="value/bed_id">ID</td>
63            <td tal:content="value/bed_type">TYPE</td>
64            <td tal:content="value/bed_number">NUMBER</td>
65            <td>
66              <a tal:condition="python: value.owner != view.not_occupied"
67                 tal:attributes="href python: '%s/%s/accommodation' %
68                      (view.students_url,value.owner)">
69                <span tal:content="value/owner">OWNER</span>
70              </a>
71              <a tal:condition="python: value.owner == view.not_occupied"
72                 tal:attributes="href python: view.url(value)"
73                 i18n:translate="">
74              [allocate student]
75              </a>
76            </td>
77          </tr>
78        </tbody>
79      </table>
80
81      <div tal:condition="view/availableActions">
82        <span tal:repeat="action view/actions"
83              tal:omit-tag="">
84          <input tal:condition="python:action.label in view.tabtwoactions"
85                 tal:replace="structure action/render"/>
86        </span>
87      </div>
88
89    </div>
90  </div>
91</form> 
92
93
94
Note: See TracBrowser for help on using the repository browser.