1 | <form action="." tal:attributes="action request/URL" |
---|
2 | i18n:domain="waeup.ikoba" method="POST" enctype="multipart/form-data"> |
---|
3 | <ul class="tabs nav nav-tabs" data-tabs="tabs"> |
---|
4 | <li class="active"> |
---|
5 | <a href="#tab1" data-toggle="tab"> |
---|
6 | <span i18n:translate="">Settings |
---|
7 | </span></a> |
---|
8 | </li> |
---|
9 | <li> |
---|
10 | <a href="#tab2" data-toggle="tab"> |
---|
11 | <span i18n:translate="">Documents |
---|
12 | </span> </a> |
---|
13 | </li> |
---|
14 | </ul> |
---|
15 | <div class="tab-content"> |
---|
16 | <div id="tab1" class="active tab-pane"> |
---|
17 | <table class="form-table"> |
---|
18 | <tbody> |
---|
19 | <tal:widgets content="structure provider:widgets" /> |
---|
20 | </tbody> |
---|
21 | </table> |
---|
22 | <div tal:condition="view/availableActions"> |
---|
23 | <span tal:repeat="action view/actions" tal:omit-tag=""> |
---|
24 | <input tal:condition="python:action.label in view.taboneactions" |
---|
25 | tal:replace="structure action/render"/> |
---|
26 | </span> |
---|
27 | </div> |
---|
28 | </div> |
---|
29 | <div id="tab2" class="tab-pane"> |
---|
30 | <h3 i18n:translate="">Documents</h3> |
---|
31 | <table class="ikoba-data-table dataTableManage"> |
---|
32 | <thead> |
---|
33 | <tr> |
---|
34 | <th> |
---|
35 | </th> |
---|
36 | <th i18n:translate="">Document Id |
---|
37 | </th> |
---|
38 | <th i18n:translate="">Title |
---|
39 | </th> |
---|
40 | </tr> |
---|
41 | </thead> |
---|
42 | <tbody> |
---|
43 | <tr tal:repeat="doc context/values"> <td> |
---|
44 | <input type="checkbox" name="val_id" |
---|
45 | tal:attributes="value doc/document_id" /> </td> <td> |
---|
46 | <a tal:attributes="href python: view.url(doc)" |
---|
47 | tal:content="doc/__name__"> ID</a> </td> <td> |
---|
48 | <span tal:content="doc/title">TITLE |
---|
49 | </span> </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.tabtwoactions" |
---|
56 | tal:replace="structure action/render"/> |
---|
57 | </span> |
---|
58 | </div> |
---|
59 | </div> |
---|
60 | </div> |
---|
61 | </form> |
---|