[7464] | 1 | <form action="." tal:attributes="action request/URL" method="POST"
|
---|
[7811] | 2 | i18n:domain="waeup.kofa" enctype="multipart/form-data">
|
---|
[6970] | 3 |
|
---|
[11254] | 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>
|
---|
[7718] | 9 | </li>
|
---|
[11254] | 10 | <li>
|
---|
| 11 | <a href="#tab2" data-toggle="tab">
|
---|
| 12 | <span i18n:translate="">Beds</span>
|
---|
| 13 | </a>
|
---|
[7718] | 14 | </li>
|
---|
[7459] | 15 | </ul>
|
---|
[6970] | 16 |
|
---|
[7459] | 17 | <div class="tab-content">
|
---|
[11254] | 18 | <div id="tab1" class="active tab-pane">
|
---|
| 19 | <br />
|
---|
[7459] | 20 | <table class="form-table">
|
---|
[6970] | 21 | <tbody>
|
---|
[7737] | 22 | <tal:widgets content="structure provider:widgets" />
|
---|
[6970] | 23 | </tbody>
|
---|
| 24 | </table>
|
---|
[7459] | 25 | <div tal:condition="view/availableActions">
|
---|
[6970] | 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 |
|
---|
[11254] | 34 | <div id="tab2" class="tab-pane">
|
---|
| 35 | <br />
|
---|
| 36 | <table class="kofa-data-table dataTableManage">
|
---|
| 37 | <thead>
|
---|
| 38 | <tr>
|
---|
| 39 | <th> </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>
|
---|
[17313] | 61 | <a tal:condition="python: value.owner == view.not_occupied and not value.bed_type.endswith('blocked')"
|
---|
[11254] | 62 | tal:attributes="href python: view.url(value)"
|
---|
| 63 | i18n:translate="">
|
---|
| 64 | [allocate student]
|
---|
| 65 | </a>
|
---|
| 66 | </td>
|
---|
| 67 | </tr>
|
---|
| 68 | </tbody>
|
---|
[6970] | 69 | </table>
|
---|
[13302] | 70 | <input type="checkbox" onClick="toggle(this, 'val_id')" />
|
---|
[13346] | 71 | <span i18n:translate="">Select all</span>
|
---|
[13302] | 72 | <br /><br />
|
---|
[7459] | 73 | <div tal:condition="view/availableActions">
|
---|
[6970] | 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>
|
---|
[13177] | 80 | <br />
|
---|
[6970] | 81 |
|
---|
| 82 | </div>
|
---|
| 83 | </div>
|
---|
| 84 | </form>
|
---|
| 85 |
|
---|
| 86 |
|
---|
| 87 |
|
---|