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

Last change on this file since 15012 was 14264, checked in by Henrik Bettermann, 8 years ago

Display user id (name) in brackets.

File size: 3.2 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/title">USERTITLE</span>
66            (<span tal:replace="user/val/name">USERNAME</span>)
67            </option>
68          </select>
69        </div>
70        <div class="form-group">
71          <select id="local_role" name="local_role" class="form-control">
72            <option tal:repeat="localrole view/getLocalRoles"
73                    tal:attributes="value localrole/name">
74            <span tal:replace="localrole/title">LOCALROLETITLE</span>
75            </option>
76          </select>
77        </div>
78        <div class="form-group">
79          <div tal:condition="view/availableActions">
80                <span tal:repeat="action view/actions" tal:omit-tag="">
81                  <input tal:condition="python:action.label in view.tabthreeactions2"
82                         tal:replace="structure action/render"/>
83                </span>
84          </div>
85        </div>
86      </div>
87    </div>
88  </div>
89</form>
Note: See TracBrowser for help on using the repository browser.