source: main/waeup.ikoba/trunk/src/waeup/ikoba/documents/browser_templates/htmldocumentmanagepage.pt @ 14086

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

Special pagetemplate for managing documents.

File size: 3.1 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="#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="ikoba-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
66            </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
75            </span>
76            </option>
77          </select>
78        </div>
79        <div class="form-group">
80          <div tal:condition="view/availableActions">
81                <span tal:repeat="action view/actions" tal:omit-tag="">
82                  <input tal:condition="python:action.label in view.tabthreeactions2"
83                         tal:replace="structure action/render"/>
84                </span>
85          </div>
86        </div>
87      </div>
88    </div>
89  </div>
90</form>
Note: See TracBrowser for help on using the repository browser.