source: main/waeup.ikoba/trunk/src/waeup/ikoba/documents/browser_templates/documentmanagepage.pt @ 12227

Last change on this file since 12227 was 12227, checked in by Henrik Bettermann, 10 years ago

Setup html documents. This technique replaces the usage of the HTMLDisplayWidget.

File size: 3.5 KB
Line 
1<form action="." tal:attributes="action request/URL" method="POST"
2      enctype="multipart/form-data" i18n:domain="waeup.ikoba">
3
4  <ul class="tabs nav nav-tabs" data-tabs="tabs">
5    <li class="active">
6      <a href="#tab1" data-toggle="tab" i18n:translate="">Metadata</a>
7    </li>
8    <li>
9      <a href="#tab2" data-toggle="tab" i18n:translate="">Files</a>
10    </li>
11    <li>
12      <a href="#tab3" data-toggle="tab" i18n:translate="">Local Roles</a>
13    </li>
14  </ul>
15
16  <div class="tab-content">
17    <div id="tab1" class="tab-pane active">
18      <table class="form-table">
19        <tbody>
20          <tal:widgets content="structure provider:widgets" />
21        </tbody>
22      </table>
23      <div tal:condition="view/availableActions">
24        <span tal:repeat="action view/actions"
25              tal:omit-tag="">
26          <input tal:condition="python:action.label in view.taboneactions"
27                 tal:replace="structure action/render"/>
28        </span>
29      </div>
30    </div>
31    <div id="tab2" class="tab-pane">
32      <br />
33      <table class="form-table">
34        <tbody>
35          <tal:files content="structure provider:files" />
36        </tbody>
37      </table>
38    </div>
39    <div id="tab3" class="tab-pane">
40      <br />
41      <table class="ikoba-data-table dataTableManage">
42        <thead>
43          <tr>
44            <th>&nbsp;
45            </th>
46            <th i18n:translate="">User Id
47            </th>
48            <th i18n:translate="">Name
49            </th>
50            <th i18n:translate="">Local Role
51            </th>
52          </tr>
53        </thead>
54        <tbody>
55          <tr tal:repeat="entry view/getUsersWithLocalRoles"> <td>
56            <input type="checkbox" name="role_id"
57                   tal:attributes="value python: entry['user_name']+'|'+entry['local_role']" /> </td>
58            <td tal:content="entry/user_name"> USERNAME </td>
59            <td tal:content="entry/user_title"> USERTITLE </td>
60            <td tal:content="entry/local_role_title"> LOCAL ROLE </td>
61          </tr>
62        </tbody>
63      </table>
64      <div tal:condition="view/availableActions">
65        <span tal:repeat="action view/actions" tal:omit-tag="">
66          <input tal:condition="python:action.label in view.tabthreeactions1"
67                 tal:replace="structure action/render"/>
68        </span>
69      </div><br /><br />
70      <div class="form-inline">
71        <br />
72        <div class="form-group">
73          <select id="user" name="user" class="form-control">
74            <option tal:repeat="user view/getUsers"
75                    tal:attributes="value user/name">
76            <span tal:replace="user/val/title">USERTITLE
77            </span>
78            </option>
79          </select>
80        </div>
81        <div class="form-group">
82          <select id="local_role" name="local_role" class="form-control">
83            <option tal:repeat="localrole view/getLocalRoles"
84                    tal:attributes="value localrole/name">
85            <span tal:replace="localrole/title">LOCALROLETITLE
86            </span>
87            </option>
88          </select>
89        </div>
90        <div class="form-group">
91          <div tal:condition="view/availableActions">
92                <span tal:repeat="action view/actions" tal:omit-tag="">
93                  <input tal:condition="python:action.label in view.tabthreeactions2"
94                         tal:replace="structure action/render"/>
95                </span>
96          </div>
97        </div>
98      </div>
99    </div>
100  </div>
101</form>
Note: See TracBrowser for help on using the repository browser.