1 | <h2 i18n:translate=""
|
---|
2 | tal:condition="view/label"
|
---|
3 | tal:content="view/label">Label</h2>
|
---|
4 |
|
---|
5 | <div class="alert-message error"
|
---|
6 | tal:define="status view/status"
|
---|
7 | tal:condition="status">
|
---|
8 | Form Status:
|
---|
9 | <span i18n:translate="" tal:content="view/status">
|
---|
10 | Form status summary
|
---|
11 | </span>
|
---|
12 | <ul tal:condition="view/errors">
|
---|
13 | <li tal:repeat="error view/error_views">
|
---|
14 | <span tal:replace="structure error">Error Type</span>
|
---|
15 | </li>
|
---|
16 | </ul>
|
---|
17 | </div>
|
---|
18 |
|
---|
19 | <form action="." tal:attributes="action request/URL" method="POST"
|
---|
20 | enctype="multipart/form-data">
|
---|
21 |
|
---|
22 | <ul class="tabs" data-tabs="tabs">
|
---|
23 | <li class="active"><a href="#tab-1"><span>Hostel Data</span></a></li>
|
---|
24 | <li><a href="#tab-2"><span>Beds</span></a></li>
|
---|
25 | </ul>
|
---|
26 |
|
---|
27 | <div class="tab-content">
|
---|
28 | <div id="tab-1" class="active">
|
---|
29 | <table class="form-table">
|
---|
30 | <tbody>
|
---|
31 | <tal:block repeat="widget view/widgets">
|
---|
32 | <tr>
|
---|
33 | <td class="fieldname">
|
---|
34 | <span class="required" tal:condition="widget/required">*</span>
|
---|
35 | <span i18n:translate="" tal:content="widget/label">label</span>:
|
---|
36 | </td>
|
---|
37 | <td>
|
---|
38 | <span class="widget" tal:content="structure widget">
|
---|
39 | <input type="text" />
|
---|
40 | </span>
|
---|
41 | <tal:error tal:condition="widget/error">
|
---|
42 | <span tal:replace="structure widget/error">error</span>
|
---|
43 | </tal:error>
|
---|
44 | <tal:hint tal:condition="widget/hint">
|
---|
45 | <span tal:content="structure widget/hint">hint</span>
|
---|
46 | </tal:hint>
|
---|
47 | </td>
|
---|
48 | </tr>
|
---|
49 | </tal:block>
|
---|
50 | </tbody>
|
---|
51 | </table>
|
---|
52 | <div tal:condition="view/availableActions">
|
---|
53 | <span tal:repeat="action view/actions"
|
---|
54 | tal:omit-tag="">
|
---|
55 | <input tal:condition="python:action.label in view.taboneactions"
|
---|
56 | tal:replace="structure action/render"/>
|
---|
57 | </span>
|
---|
58 | </div>
|
---|
59 | </div>
|
---|
60 |
|
---|
61 | <div id="tab-2">
|
---|
62 | <h3>Beds</h3>
|
---|
63 | <table class="display dataTableManage">
|
---|
64 | <thead>
|
---|
65 | <tr>
|
---|
66 | <th> </th>
|
---|
67 | <th>Id</th>
|
---|
68 | <th>Type</th>
|
---|
69 | <th>Number</th>
|
---|
70 | <th>Owner</th>
|
---|
71 | </tr>
|
---|
72 | </thead>
|
---|
73 | <tbody>
|
---|
74 | <tr tal:repeat="value context/values">
|
---|
75 | <td>
|
---|
76 | <input type="checkbox" name="val_id"
|
---|
77 | tal:attributes="value value/__name__" />
|
---|
78 | </td>
|
---|
79 | <td tal:content="value/bed_id">Id</td>
|
---|
80 | <td tal:content="value/bed_type">Type</td>
|
---|
81 | <td tal:content="value/bed_number">Number</td>
|
---|
82 | <td>
|
---|
83 | <a tal:condition="python: value.owner != view.not_occupied"
|
---|
84 | tal:attributes="href python: '%s/%s/accommodation' %
|
---|
85 | (view.students_url,value.owner)">
|
---|
86 | <span tal:content="value/owner">Owner</span>
|
---|
87 | </a>
|
---|
88 | <a tal:condition="python: value.owner == view.not_occupied"
|
---|
89 | tal:attributes="href python: view.url(value)">
|
---|
90 | [allocate student]
|
---|
91 | </a>
|
---|
92 | </td>
|
---|
93 | </tr>
|
---|
94 | </tbody>
|
---|
95 | </table>
|
---|
96 |
|
---|
97 | <div tal:condition="view/availableActions">
|
---|
98 | <span tal:repeat="action view/actions"
|
---|
99 | tal:omit-tag="">
|
---|
100 | <input tal:condition="python:action.label in view.tabtwoactions"
|
---|
101 | tal:replace="structure action/render"/>
|
---|
102 | </span>
|
---|
103 | </div>
|
---|
104 |
|
---|
105 | </div>
|
---|
106 | </div>
|
---|
107 | </form>
|
---|
108 |
|
---|
109 |
|
---|
110 |
|
---|