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>
|
---|
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 | <div class="table-responsive">
|
---|
47 | <table class="dataTableManage">
|
---|
48 | <thead>
|
---|
49 | <tr>
|
---|
50 | <th> </th>
|
---|
51 | <th i18n:translate="">Id</th>
|
---|
52 | <th i18n:translate="">Type</th>
|
---|
53 | <th i18n:translate="">Number</th>
|
---|
54 | <th i18n:translate="">Owner</th>
|
---|
55 | </tr>
|
---|
56 | </thead>
|
---|
57 | <tbody>
|
---|
58 | <tr tal:repeat="value context/values">
|
---|
59 | <td>
|
---|
60 | <input type="checkbox" name="val_id"
|
---|
61 | tal:attributes="value value/__name__" />
|
---|
62 | </td>
|
---|
63 | <td tal:content="value/bed_id">ID</td>
|
---|
64 | <td tal:content="value/bed_type">TYPE</td>
|
---|
65 | <td tal:content="value/bed_number">NUMBER</td>
|
---|
66 | <td>
|
---|
67 | <a tal:condition="python: value.owner != view.not_occupied"
|
---|
68 | tal:attributes="href python: '%s/%s/accommodation' %
|
---|
69 | (view.students_url,value.owner)">
|
---|
70 | <span tal:content="value/owner">OWNER</span>
|
---|
71 | </a>
|
---|
72 | <a tal:condition="python: value.owner == view.not_occupied"
|
---|
73 | tal:attributes="href python: view.url(value)"
|
---|
74 | i18n:translate="">
|
---|
75 | [allocate student]
|
---|
76 | </a>
|
---|
77 | </td>
|
---|
78 | </tr>
|
---|
79 | </tbody>
|
---|
80 | </table>
|
---|
81 | </div>
|
---|
82 |
|
---|
83 | <div tal:condition="view/availableActions">
|
---|
84 | <span tal:repeat="action view/actions"
|
---|
85 | tal:omit-tag="">
|
---|
86 | <input tal:condition="python:action.label in view.tabtwoactions"
|
---|
87 | tal:replace="structure action/render"/>
|
---|
88 | </span>
|
---|
89 | </div>
|
---|
90 |
|
---|
91 | </div>
|
---|
92 | </div>
|
---|
93 | </form>
|
---|
94 |
|
---|
95 |
|
---|
96 |
|
---|