manage_custom_menus.html
1 <@pageContainer>
2 <@pageColumn>
3 <@pageHeader title='#i18n{menus.manage_custom_menus.pageTitle}'>
4 </@pageHeader>
5
6 <@alert color='warning' title='#i18n{portal.system.manage_caches.cautionTitle}' iconTitle='exclamation-triangle'>
7 #i18n{menus.manage_custom_menus.warning.pageCacheService}
8 </@alert>
9
10 <@messages errors=errors />
11 <@messages infos=infos />
12
13 <@h class='row mt-5'>#i18n{menus.manage_custom_menus.title.nativeMenu}</@h>
14 <@table headBody=true>
15 <@tr>
16 <@th>#i18n{menus.manage_custom_menus.columnName}</@th>
17 <@th>
18 #i18n{menus.manage_custom_menus.columnType}
19 <i class="ti ti-info-circle" data-toggle="tooltip" title='#i18n{menus.manage_custom_menus.helpInfoNativeType}'></i>
20 </@th>
21 <@th>
22 #i18n{menus.manage_custom_menus.columnBookmark}
23 <i class="ti ti-info-circle" data-toggle="tooltip" title='#i18n{menus.manage_custom_menus.helpInfoBookmark}'></i>
24 </@th>
25 <@th>#i18n{menus.manage_custom_menus.columnDescription}</@th>
26 <@th>#i18n{menus.manage_custom_menus.columnActions}</@th>
27 </@tr>
28 <@tableHeadBodySeparator />
29 <@tr>
30 <@td>#i18n{menus.manage_custom_menus.constant.name.menuMain}</@td>
31 <@td>#i18n{menus.manage_custom_menus.constant.type.nativeMenu}</@td>
32 <@td>#i18n{menus.manage_custom_menus.constant.bookmark.menuMain}</@td>
33 <@td>#i18n{menus.manage_custom_menus.constant.description.menuMain}</@td>
34 <@td>
35 <@tform method='post' action='jsp/admin/plugins/menus/ManageCustomMenus.jsp?action=doModifyNativeMenuSettings' id='form-depth-main'>
36 <@input type='hidden' name='menu_type' value='menuMain' />
37 <@select name='depth_value' default_value='${depth_menu_main!"1"}' items=depth_options_main params="onchange='this.form.submit();'" />
38 </@tform>
39 </@td>
40 </@tr>
41
42 <@tr>
43 <@td>#i18n{menus.manage_custom_menus.constant.name.menuTree}</@td>
44 <@td>#i18n{menus.manage_custom_menus.constant.type.nativeMenu}</@td>
45 <@td>#i18n{menus.manage_custom_menus.constant.bookmark.menuTree}</@td>
46 <@td>#i18n{menus.manage_custom_menus.constant.description.menuTree}</@td>
47 <@td>
48 <@tform method='post' action='jsp/admin/plugins/menus/ManageCustomMenus.jsp?action=doModifyNativeMenuSettings' id='form-depth-tree'>
49 <@input type='hidden' name='menu_type' value='menuTree' />
50 <@select name='depth_value' default_value='${depth_menu_tree!"0"}' items=depth_options_tree params="onchange='this.form.submit();'" />
51 </@tform>
52 </@td>
53 </@tr>
54 <@tr>
55 <@td>#i18n{menus.manage_custom_menus.constant.name.menuTreeAllPages}</@td>
56 <@td>#i18n{menus.manage_custom_menus.constant.type.nativeMenu}</@td>
57 <@td>#i18n{menus.manage_custom_menus.constant.bookmark.menuTreeAllPages}</@td>
58 <@td>#i18n{menus.manage_custom_menus.constant.description.menuTreeAllPages}</@td>
59 <@td>
60 <@tform method='post' action='jsp/admin/plugins/menus/ManageCustomMenus.jsp?action=doModifyNativeMenuSettings' id='form-depth-all-pages'>
61 <@input type='hidden' name='menu_type' value='menuTreeAllPages' />
62 <@select name='depth_value' default_value='${depth_menu_tree_all_pages!"2"}' items=depth_options_tree params="onchange='this.form.submit();'" />
63 </@tform>
64 </@td>
65 </@tr>
66 </@table>
67
68 <@div class='row mt-5'>
69 <@div class='col-9'>
70 <@h class='row mt-3'>#i18n{menus.manage_custom_menus.title.customMenu}</@h>
71 </@div>
72 <@div class='col-3 text-end'>
73 <@offcanvas size='50' targetUrl='jsp/admin/plugins/menus/ManageCustomMenus.jsp?view=createCustomMenu' targetElement='#create_custom_menu' redirectForm=false id='custom-menu-create' title='#i18n{menus.manage_custom_menus.buttonCreateMenu}' position='end' btnTitle='#i18n{menus.manage_custom_menus.buttonCreateMenu}' btnIcon='plus' />
74 </@div>
75 </@div>
76 <@paginationAdmin paginator=paginator combo=1 />
77 <@table headBody=true>
78 <@tr>
79 <@th>#i18n{menus.manage_custom_menus.columnName}</@th>
80 <@th>
81 #i18n{menus.manage_custom_menus.columnType}
82 <i class="ti ti-info-circle" data-toggle="tooltip" title='#i18n{menus.manage_custom_menus.helpInfoType}'></i>
83 </@th>
84 <@th>
85 #i18n{menus.manage_custom_menus.columnBookmark}
86 <i class="ti ti-info-circle" data-toggle="tooltip" title='#i18n{menus.manage_custom_menus.helpInfoBookmark}'></i>
87 </@th>
88 <@th>#i18n{menus.manage_custom_menus.columnDescription}</@th>
89 <@th>#i18n{menus.manage_custom_menus.columnActions}</@th>
90 </@tr>
91 <@tableHeadBodySeparator />
92 <#if custom_menus_list??>
93 <#list custom_menus_list as menu>
94 <@tr>
95 <@td>${menu.name}</@td>
96 <@td>${menu.type}</@td>
97 <@td>${menu.bookmark!''}</@td>
98 <@td>${menu.description}</@td>
99 <@td>
100 <@offcanvas size='50' targetUrl='jsp/admin/plugins/menus/ManageCustomMenus.jsp?view=modifyCustomMenu&id=${menu.id}' targetElement='#modify_custom_menu' redirectForm=false id='custom-menu-modify-${menu.id}' title='#i18n{menus.manage_custom_menus.buttonModifyMenu}' position='end' btnIcon='edit' btnColor='primary' hideTitle=['all'] btnClass='btn-sm' />
101 <@aButton href='jsp/admin/plugins/menus/ManageCustomMenus.jsp?view=removeCustomMenu&id=${menu.id}' buttonIcon='trash' color='danger' hideTitle=['all'] size='sm' />
102 </@td>
103 </@tr>
104 </#list>
105 </#if>
106 </@table>
107 <@paginationAdmin paginator=paginator combo=1 />
108 </@pageColumn>
109 </@pageContainer>