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

Last change on this file since 17917 was 15709, checked in by Henrik Bettermann, 5 years ago

Implement bed selector.

File size: 2.4 KB
Line 
1<form action="." tal:attributes="action request/URL" method="POST"
2      i18n:domain="waeup.kofa" enctype="multipart/form-data">
3
4  <tal:desired_hostel condition="view/actionsgroup1">
5    <br />
6    <p i18n:translate="">
7    Select and <strong>save the desired hostel</strong> before creating
8    a bed ticket. Your choice cannot be changed afterwards.
9    </p>
10    <div class="form-inline">
11      <br />
12      <div class="form-group">
13        <select class="form-control" id="hostel" name="hostel">
14          <option tal:repeat="hostel view/getHostels"
15                  tal:attributes="value hostel/name; selected hostel/selected">
16          <span tal:replace="hostel/title">USERTITLE
17          </span>
18          </option>
19        </select>
20      </div>
21      <div class="form-group">
22        <span tal:repeat="action view/actions" tal:omit-tag="">
23          <input tal:condition="python:action.label in view.actionsgroup1"
24                 tal:replace="structure action/render"/>
25        </span>
26      </div>
27    </div>
28    <br />
29  </tal:desired_hostel>
30
31  <tal:choice condition="python: view.desired_hostel and view.with_hostel_selection">
32  <p>
33    <strong i18n:translate="">Favoured Hostel:</strong>
34    <span tal:replace="view/desired_hostel"></span>
35  </p>
36  </tal:choice>
37
38  <h3 i18n:domain="waeup.kofa" i18n:translate="">Bookings</h3>
39  <br />
40
41  <table class="kofa-data-table dataTableManage">
42    <thead>
43    <tr>
44      <th tal:condition="not: layout/isStudent">&nbsp;</th>
45      <th i18n:translate="">Session</th>
46      <th i18n:translate="">Booking Date</th>
47      <th i18n:translate="">Bed Coordinates</th>
48      <th i18n:translate="">Bed Type</th>
49    </tr>
50    </thead>
51    <tbody>
52      <tr tal:repeat="cl context/values">
53         <td tal:condition="not: layout/isStudent">
54          <input type="checkbox"
55                 name="val_id"
56                 tal:attributes="value cl/__name__" />
57        </td>
58        <td> <a tal:attributes="href python: view.url(cl)">
59        <span tal:content="python: cl.getSessionString()">PID</span></a></td>
60        <td tal:content="python: layout.formatDatetime(cl.booking_date)">DATE</td>
61        <td tal:content="cl/display_coordinates">COORDINATES</td>
62        <td tal:content="cl/bed_type">TYPE</td>
63      </tr>
64    </tbody>
65  </table>
66
67  <span tal:repeat="action view/actions"
68        tal:omit-tag="">
69    <input tal:condition="python:action.label in view.actionsgroup2"
70           tal:replace="structure action/render"/>
71  </span>
72
73</form>
Note: See TracBrowser for help on using the repository browser.