[13455] | 1 | <form action="." tal:attributes="action request/URL" method="POST" |
---|
| 2 | i18n:domain="waeup.kofa" enctype="multipart/form-data"> |
---|
| 3 | |
---|
[13457] | 4 | <tal:desired_hostel condition="view/actionsgroup1"> |
---|
| 5 | <br /> |
---|
| 6 | <p i18n:translate=""> |
---|
[15709] | 7 | Select and <strong>save the desired hostel</strong> before creating |
---|
| 8 | a bed ticket. Your choice cannot be changed afterwards. |
---|
[13457] | 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 | |
---|
[13480] | 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 | |
---|
[13457] | 38 | <h3 i18n:domain="waeup.kofa" i18n:translate="">Bookings</h3> |
---|
| 39 | <br /> |
---|
| 40 | |
---|
[13455] | 41 | <table class="kofa-data-table dataTableManage"> |
---|
| 42 | <thead> |
---|
| 43 | <tr> |
---|
| 44 | <th tal:condition="not: layout/isStudent"> </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 | |
---|
[13457] | 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 | |
---|
[13455] | 73 | </form> |
---|