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

Last change on this file since 14466 was 13346, checked in by Henrik Bettermann, 9 years ago

Remove beds_reserved attribute from hostels. Hostels do no longer
contain information about reserved bed spaces.

Use default values for list attributes. Otherwise the hostel manage page cannot be opened after import of hostels.

File size: 2.8 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      </tbody>
24      </table>
25      <div tal:condition="view/availableActions">
26        <span tal:repeat="action view/actions"
27              tal:omit-tag="">
28          <input tal:condition="python:action.label in view.taboneactions"
29                 tal:replace="structure action/render"/>
30        </span>
31      </div>
32    </div>
33
34    <div id="tab2" class="tab-pane">
35      <br />
36      <table class="kofa-data-table dataTableManage">
37        <thead>
38          <tr>
39            <th>&nbsp;</th>
40            <th i18n:translate="">Id</th>
41            <th i18n:translate="">Type</th>
42            <th i18n:translate="">Number</th>
43            <th i18n:translate="">Owner</th>
44          </tr>
45        </thead>
46        <tbody>
47          <tr tal:repeat="value context/values">
48             <td>
49              <input type="checkbox" name="val_id"
50                          tal:attributes="value value/__name__" />
51            </td>
52            <td tal:content="value/bed_id">ID</td>
53            <td tal:content="value/bed_type">TYPE</td>
54            <td tal:content="value/bed_number">NUMBER</td>
55            <td>
56              <a tal:condition="python: value.owner != view.not_occupied"
57                 tal:attributes="href python: '%s/%s/accommodation' %
58                      (view.students_url,value.owner)">
59                <span tal:content="value/owner">OWNER</span>
60              </a>
61              <a tal:condition="python: value.owner == view.not_occupied"
62                 tal:attributes="href python: view.url(value)"
63                 i18n:translate="">
64              [allocate student]
65              </a>
66            </td>
67          </tr>
68        </tbody>
69      </table>
70      <input type="checkbox" onClick="toggle(this, 'val_id')" />
71      &nbsp;<span  i18n:translate="">Select all</span>
72      <br /><br />
73      <div tal:condition="view/availableActions">
74        <span tal:repeat="action view/actions"
75              tal:omit-tag="">
76          <input tal:condition="python:action.label in view.tabtwoactions"
77                 tal:replace="structure action/render"/>
78        </span>
79      </div>
80      <br />
81
82    </div>
83  </div>
84</form> 
85
86
87
Note: See TracBrowser for help on using the repository browser.