source: main/waeup.kofa/trunk/src/waeup/kofa/documents/browser_templates/documentmanagepage.pt @ 17310

Last change on this file since 17310 was 15964, checked in by Henrik Bettermann, 5 years ago

Make getUsers customizable.

File size: 3.4 KB
Line 
1<form action="." tal:attributes="action request/URL" method="POST"
2      enctype="multipart/form-data" i18n:domain="waeup.kofa">
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="kofa-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">USERSTRING</span>
77            </option>
78          </select>
79        </div>
80        <div class="form-group">
81          <select id="local_role" name="local_role" class="form-control">
82            <option tal:repeat="localrole view/getLocalRoles"
83                    tal:attributes="value localrole/name">
84            <span tal:replace="localrole/title">LOCALROLETITLE</span>
85            </option>
86          </select>
87        </div>
88        <div class="form-group">
89          <div tal:condition="view/availableActions">
90                <span tal:repeat="action view/actions" tal:omit-tag="">
91                  <input tal:condition="python:action.label in view.tabthreeactions2"
92                         tal:replace="structure action/render"/>
93                </span>
94          </div>
95        </div>
96      </div>
97    </div>
98  </div>
99</form>
Note: See TracBrowser for help on using the repository browser.