/
manage_navbar.dtml
80 lines (75 loc) · 3.09 KB
/
manage_navbar.dtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<dtml-unless "'manage_menu' in REQUEST['URL']">
<header class="navbar navbar-nav navbar-expand navbar-dark flex-row bd-navbar">
<div id="toggle_tabs" class="collapsed"
data-toggle="collapse"
data-target="#tabs_items"
aria-controls="tabs_items" aria-expanded="false" aria-label="Toggle Tab-Navigation">
<i class="fa fa-bars"></i>
</div>
<a class="navbar-brand" href="http://www.zope.org" target="_blank">
<span class="product">ZOPE 4.0</span>
</a>
<ul class="navbar-nav flex-row ml-sm-auto d-flex">
<li id="zmi-authenticated_user" class="form-inline zmi-authenticated_user" title="Logged in as: <dtml-var AUTHENTICATED_USER missing="not logged-in">">
<span class="zmi-label"><dtml-var AUTHENTICATED_USER missing="not logged-in"></span>
</li>
<li id="toggle_menu" class="form-inline desktop hidden-xs"
title="Show/Hide Tree Menu of the Navigation Context"
data-title_inactive="STATUS INACTIVE: Tree Menu Button is only active on List Views. Navigate up a level to show the tree view again."
data-is_folderish="<dtml-var "(manage_main != manage) and 1 or 0">"
>
<a href="<dtml-var "(manage_main != manage) and './' or '../'">manage?came_from=<dtml-var URL>" target="_parent" onclick="javascript:if ( manage_menu ) {window.parent.frames[0].menu_toggle();return false;} else { return true; }">
<i class="fa fa-sitemap"></i>
</a>
</li>
<li class="form-inline zmi-cp">
<a title="Control Panel"
href="/Control_Panel/manage_main" target="_self">
<i class="fa fa-cog"></i> <span class="zmi-label">Control Panel</span>
</a>
</li>
<dtml-if filtered_meta_types>
<li class="form-inline zmi-addItemSelect">
<form method="get" class="form-group">
<label for="addItemSelect" class="ml-2 sr-only">Select type to add</label>
<select id="addItemSelect" class="form-control-sm" name=":action"
data-title-active="Select type to add"
data-title-inactive="STATUS INACTIVE: New Object can only be Added in the List View"
title="Select type to add"
onchange="addItem( elm=this, base_url='<dtml-var "REQUEST.get('URL1','')">'); this.selectedIndex = 0;"
><option value="" selected="selected">Select type to add</option>
<dtml-if "_.len(filtered_meta_types) > 1"
><dtml-in filtered_meta_types mapping sort=name
><dtml-if action><option value="&dtml.html_quote-action;">&dtml-name;</option>
</dtml-if
></dtml-in
></dtml-if>
</select>
</form>
</li>
</dtml-if>
</ul>
<a href="manage_zmi_logout" title="Logout"
class="ml-4">
<i class="fas fa-sign-out-alt"></i>
</a>
</header>
<!-- ZMI-MODAL DIALOG -->
<div class="modal fade" id="zmi-modal" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
... Loading Form ...
</div>
<div class="modal-footer">
</div>
</div>
</div>
</div>
</dtml-unless>