|
@@ -11,45 +11,36 @@
|
11
|
11
|
% endif
|
12
|
12
|
</%def>
|
13
|
13
|
|
14
|
|
-<%def name="node_treeview(node_list, indentation=-1)">
|
15
|
|
- % if indentation==-1:
|
16
|
|
- <div id='pod-menu-item-0' class="pod-toolbar-parent" style="padding-left: 0.5em; position: relative;">
|
17
|
|
- <a class="toggle-child-menu-items"><i class='fa fa-folder-open'></i></a>
|
18
|
|
- <a href="${tg.url('/document')}" title="${_('Root')}">
|
19
|
|
- ${_('Root')}
|
20
|
|
- </a>
|
21
|
|
- </div>
|
22
|
|
- <div id="pod-menu-item-0-children">${node_treeview(node_list, 0)}</div>
|
23
|
|
-
|
24
|
|
- % else:
|
25
|
|
- % if len(node_list)<=0 and indentation==0:
|
26
|
|
- <p class="pod-grey">${_('You have no document yet.')}</p>
|
27
|
|
- % endif
|
28
|
|
-
|
29
|
|
- % if len(node_list)>0:
|
30
|
|
- % for node in node_list:
|
31
|
|
- <div id='pod-menu-item-${node.node_id}' class="pod-toolbar-parent ${'pod-status-active' if current_node!=None and node.node_id==current_node.node_id else ''}" style="padding-left: ${(indentation+2)*0.5}em; position: relative;">
|
32
|
|
- <a class="toggle-child-menu-items"><i class='${node.getIconClass()}'></i></a>
|
33
|
|
- <a href="${tg.url('/document/%s'%(node.node_id))}" title="${node.data_label}">
|
34
|
|
- % if node.getStatus().status_family=='closed' or node.getStatus().status_family=='invisible':
|
35
|
|
- <strike>
|
36
|
|
- % endif
|
37
|
|
- ${node.getTruncatedLabel(32-0.8*(indentation+1))}
|
38
|
|
- % if node.getStatus().status_family=='closed' or node.getStatus().status_family=='invisible':
|
39
|
|
- </strike>
|
40
|
|
- % endif
|
41
|
|
- </a>
|
42
|
|
- <div class="pod-toolbar">
|
43
|
|
- <a href="${tg.url('/api/move_node_upper?node_id=%i'%(node.node_id))}" title="${_('Move up')}"><i class="fa fa-arrow-up"></i></a>
|
44
|
|
- <a href="${tg.url('/api/move_node_lower?node_id=%i'%(node.node_id))}" title="${_('Move down')}"><i class="fa fa-arrow-down"></i></a>
|
45
|
|
- </div>
|
46
|
|
- <div class="pod-status ${node.getStatus().css}" title='${node.getStatus().label}'>
|
47
|
|
- <i class='${node.getStatus().icon}'></i>
|
48
|
|
- </div>
|
|
14
|
+<%def name="node_treeview(node_list, indentation=0)">
|
|
15
|
+ % if len(node_list)<=0 and indentation==0:
|
|
16
|
+ <p class="pod-grey">${_('You have no document yet.')}</p>
|
|
17
|
+ % endif
|
|
18
|
+
|
|
19
|
+ % if len(node_list)>0:
|
|
20
|
+ % for item in node_list:
|
|
21
|
+ <div id='pod-menu-item-${item.node.node_id}' class="pod-toolbar-parent ${'pod-status-active' if current_node!=None and item.node.node_id==current_node.node_id else ''}" style="padding-left: ${(indentation+2)*0.5}em; position: relative;">
|
|
22
|
+ <a class="toggle-child-menu-items"><i class='${item.node.getIconClass()}'></i></a>
|
|
23
|
+ <a href="${tg.url('/document/%s'%(item.node.node_id))}" title="${item.node.data_label}">
|
|
24
|
+ % if item.node.getStatus().status_family=='closed' or item.node.getStatus().status_family=='invisible':
|
|
25
|
+ <strike>
|
|
26
|
+ % endif
|
|
27
|
+ ${item.node.getTruncatedLabel(32-0.8*(indentation+1))}
|
|
28
|
+ % if item.node.getStatus().status_family=='closed' or item.node.getStatus().status_family=='invisible':
|
|
29
|
+ </strike>
|
|
30
|
+ % endif
|
|
31
|
+ </a>
|
|
32
|
+ <div class="pod-toolbar">
|
|
33
|
+ <a href="${tg.url('/api/move_node_upper?node_id=%i'%(item.node.node_id))}" title="${_('Move up')}"><i class="fa fa-arrow-up"></i></a>
|
|
34
|
+ <a href="${tg.url('/api/move_node_lower?node_id=%i'%(item.node.node_id))}" title="${_('Move down')}"><i class="fa fa-arrow-down"></i></a>
|
49
|
35
|
</div>
|
50
|
|
- <div id="pod-menu-item-${node.node_id}-children">${node_treeview(node.getStaticChildList(), indentation+1)}</div>
|
51
|
|
- % endfor
|
52
|
|
- % endif
|
|
36
|
+ <div class="pod-status ${item.node.getStatus().css}" title='${item.node.getStatus().label}'>
|
|
37
|
+ <i class='${item.node.getStatus().icon}'></i>
|
|
38
|
+ </div>
|
|
39
|
+ </div>
|
|
40
|
+ % if len(item.children)>0:
|
|
41
|
+ <div id="pod-menu-item-${item.node.node_id}-children">${node_treeview(node_list=item.children, indentation=indentation+1)}</div>
|
|
42
|
+ % endif
|
|
43
|
+ % endfor
|
53
|
44
|
% endif
|
54
|
45
|
</%def>
|
55
|
46
|
|
|
@@ -80,7 +71,7 @@
|
80
|
71
|
<div class="row">
|
81
|
72
|
<div id='application-left-panel' class="span3">
|
82
|
73
|
<div>
|
83
|
|
- ${node_treeview(root_node_list)}
|
|
74
|
+ ${node_treeview(menu_node_list)}
|
84
|
75
|
</div>
|
85
|
76
|
</div>
|
86
|
77
|
<div id='application-main-panel' class="span9">
|
|
@@ -100,7 +91,7 @@
|
100
|
91
|
##
|
101
|
92
|
## The Toolbar is a div with a specific id
|
102
|
93
|
##
|
103
|
|
- ${DOC.Toolbar(current_node, node_status_list, root_node_list, 'current-document-toobar')}
|
|
94
|
+ ${DOC.Toolbar(current_node, node_status_list, root_node_list_for_select_field, 'current-document-toobar')}
|
104
|
95
|
${DOC.ShowTitle(current_node, keywords, 'current-document-title')}
|
105
|
96
|
${DOC.ShowContent(current_node, keywords)}
|
106
|
97
|
</div>
|
|
@@ -137,7 +128,7 @@
|
137
|
128
|
<div class="tab-pane" id="contacts">${DOCTABS.ContactTabContent(current_node)}</div>
|
138
|
129
|
<div class="tab-pane" id="comments">${DOCTABS.CommentTabContent(current_node)}</div>
|
139
|
130
|
<div class="tab-pane" id="files">${DOCTABS.FileTabContent(current_node)}</div>
|
140
|
|
- <div class="tab-pane" id="history">${DOCTABS.HistoryTabContent(current_node)}</div>
|
|
131
|
+ <div class="tab-pane" id="history">${DOCTABS.HistoryTabContent(current_node)}</div>
|
141
|
132
|
<div class="tab-pane" id="accessmanagement">${DOCTABS.AccessManagementTab(current_node)}</div>
|
142
|
133
|
</div>
|
143
|
134
|
</div>
|