source: main/waeup.kofa/trunk/src/waeup/kofa/documents/browser_templates/htmldocumentmanagepage.pt @ 16110

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

Make getUsers customizable.

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