source: main/waeup.sirp/branches/ulif-groktoolkit-1.4/src/waeup/sirp/hostels/browser_templates/hostelmanagepage.pt @ 10009

Last change on this file since 10009 was 7669, checked in by Henrik Bettermann, 13 years ago

Start internationalization of pagetemplates. Clean up and remove unneeded i18n:translate tags first.

File size: 3.0 KB
Line 
1<form action="." tal:attributes="action request/URL" method="POST"
2      enctype="multipart/form-data">
3
4  <ul class="tabs" data-tabs="tabs">
5    <li tal:attributes="class view/tab1"><a href="#tab-1"><span>Hostel Data</span></a></li>
6    <li tal:attributes="class view/tab2"><a href="#tab-2"><span>Beds</span></a></li>
7  </ul>
8
9  <div class="tab-content">
10    <div id="tab-1" tal:attributes="class view/tab1">
11      <table class="form-table">
12      <tbody>
13      <tal:block repeat="widget view/widgets">
14        <tr>
15          <td class="fieldname">
16            <span class="required" tal:condition="widget/required">*</span>
17            <span tal:content="widget/label">label</span>:
18          </td>
19          <td>
20            <span class="widget" tal:content="structure widget">
21              <input type="text" />
22            </span>
23            <tal:error tal:condition="widget/error">
24              <span tal:replace="structure widget/error">error</span>
25            </tal:error>
26            <tal:hint tal:condition="widget/hint">
27              <span tal:content="structure widget/hint">hint</span>
28            </tal:hint>
29          </td>
30        </tr>
31      </tal:block>
32      </tbody>
33      </table>
34      <div tal:condition="view/availableActions">
35        <span tal:repeat="action view/actions"
36              tal:omit-tag="">
37          <input tal:condition="python:action.label in view.taboneactions"
38                 tal:replace="structure action/render"/>
39        </span>
40      </div>
41    </div>
42
43    <div id="tab-2" tal:attributes="class view/tab2">
44      <h3>Beds</h3>
45      <table class="display dataTableManage">
46      <thead>
47        <tr>
48          <th>&nbsp;</th>
49          <th>Id</th>
50          <th>Type</th>
51          <th>Number</th>
52          <th>Owner</th>
53        </tr>
54      </thead>
55      <tbody>
56        <tr tal:repeat="value context/values">
57           <td>
58            <input type="checkbox" name="val_id"
59                  tal:attributes="value value/__name__" />
60          </td>
61          <td tal:content="value/bed_id">Id</td>
62          <td tal:content="value/bed_type">Type</td>
63          <td tal:content="value/bed_number">Number</td>
64          <td>
65            <a tal:condition="python: value.owner != view.not_occupied"
66               tal:attributes="href python: '%s/%s/accommodation' %
67                    (view.students_url,value.owner)">
68              <span tal:content="value/owner">Owner</span>
69            </a>
70            <a tal:condition="python: value.owner == view.not_occupied"
71               tal:attributes="href python: view.url(value)">
72            [allocate student]
73            </a>
74          </td>
75        </tr>
76      </tbody>
77      </table>
78
79      <div tal:condition="view/availableActions">
80        <span tal:repeat="action view/actions"
81              tal:omit-tag="">
82          <input tal:condition="python:action.label in view.tabtwoactions"
83                 tal:replace="structure action/render"/>
84        </span>
85      </div>
86
87    </div>
88  </div>
89</form> 
90
91
92
Note: See TracBrowser for help on using the repository browser.