You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
111 lines
3.3 KiB
Plaintext
111 lines
3.3 KiB
Plaintext
<?page title="Main Menu" contentType="text/html;charset=UTF-8"?>
|
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
|
<?taglib uri="/WEB-INF/security.tld" prefix="sec"?>
|
|
<zk xmlns:n="native">
|
|
<menubar
|
|
id="menubar"
|
|
apply="org.zkoss.bind.BindComposer"
|
|
viewModel="@id('vm') @init('info.bukova.isspst.ui.MainMenu')"
|
|
autodrop="true">
|
|
<menuitem
|
|
label="${labels.Information}"
|
|
href="/" />
|
|
<menuseparator />
|
|
<menu label="${labels.Orders}">
|
|
<menupopup>
|
|
<menuitem
|
|
image="/img/req-order-016.png"
|
|
label="${labels.CurrentRequirements}"
|
|
href="/main/orders/requirements/" />
|
|
<menuitem
|
|
label="${labels.ApprovedOrders}"
|
|
href="" />
|
|
</menupopup>
|
|
</menu>
|
|
<menu label="${labels.BussinessTrips}">
|
|
<menupopup>
|
|
<menuitem
|
|
image="/img/req-trip-016.png"
|
|
label="${labels.CurrentRequirements}"
|
|
href="/main/trips/requirements/" />
|
|
<menuitem
|
|
image="/img/pickup-024.png"
|
|
label="${labels.TravelOrders}"
|
|
href="/main/trips/bill" />
|
|
</menupopup>
|
|
</menu>
|
|
<menuseparator />
|
|
<menu label="${labels.Lists}">
|
|
<menupopup>
|
|
<menuitem
|
|
image="/img/palet-024.png"
|
|
label="${labels.AgendaMaterial}"
|
|
href="/lists/material"
|
|
disabled="${not sec:isAllGranted('PERM_READ_MATERIAL')}" />
|
|
<menuitem
|
|
image="/img/painting-016.png"
|
|
label="${labels.AgendaServices}"
|
|
href="/lists/service"
|
|
disabled="${not sec:isAllGranted('PERM_READ_SERVICES')}" />
|
|
<menuitem
|
|
label="${labels.AgendaSuppliers}"
|
|
href="/lists/addressbook"
|
|
disabled="${not sec:isAllGranted('PERM_READ_ADDRESSBOOK')}" />
|
|
<menuitem
|
|
image="/img/house-016.png"
|
|
label="${labels.AgendaBuildings}"
|
|
href="/lists/buildings"
|
|
disabled="${not sec:isAllGranted('PERM_READ_BUILDINGS')}" />
|
|
<menuitem
|
|
image="/img/tape-measure-016.png"
|
|
label="${labels.AgendaMUnits}"
|
|
href="/lists/munits"
|
|
disabled="${not sec:isAllGranted('PERM_READ_MUNITS')}" />
|
|
</menupopup>
|
|
</menu>
|
|
<menu label="${labels.Settings}">
|
|
<menupopup>
|
|
<menuitem
|
|
image="/img/global-setting-016.png"
|
|
label="${labels.GlobalSettings}…"
|
|
onClick="@command('globalSettings')" />
|
|
<menuitem
|
|
label="${labels.AgendaWorkflow}"
|
|
href="/settings/workflow"
|
|
disabled="${not sec:isAllGranted('PERM_EDIT_WORKFLOW')}" />
|
|
<menuitem
|
|
label="${labels.NumberSeries}…"
|
|
onClick="@command('numSeries')"
|
|
disabled="${not sec:isAllGranted('ROLE_ADMIN')}"/>
|
|
<menu label="${labels.Administration}">
|
|
<menupopup>
|
|
<menuitem
|
|
label="${labels.AgendaUsers}"
|
|
href="/admin/users"
|
|
disabled="${not sec:isAllGranted('PERM_READ_USERS')}" />
|
|
<menuitem
|
|
label="${labels.Permissions}"
|
|
href="/admin/permissions"
|
|
disabled="${not sec:isAllGranted('PERM_READ_PERMISSIONS')}" />
|
|
<menuitem
|
|
label="${labels.AgendaWorkgroups}"
|
|
href="/admin/workgroups"
|
|
disabled="${not sec:isAllGranted('PERM_READ_WORKGROUPS')}" />
|
|
</menupopup>
|
|
</menu>
|
|
</menupopup>
|
|
</menu>
|
|
<menu label="${labels.User}">
|
|
<menupopup>
|
|
<menuitem
|
|
image=""
|
|
label="${labels.ChangePassword}…"
|
|
onClick="@command('passwd')" />
|
|
<menuitem
|
|
image="/img/unlock-016.png"
|
|
label="${labels.Logout}"
|
|
href="/j_spring_security_logout" />
|
|
</menupopup>
|
|
</menu>
|
|
</menubar>
|
|
</zk> |