Stylování vzhledu.

This commit is contained in:
2014-07-25 20:15:34 +02:00
parent 0287c65d9c
commit 65e42f6d43
24 changed files with 395 additions and 189 deletions
+62 -44
View File
@@ -1,47 +1,65 @@
<?page title="Informace" contentType="text/html;charset=UTF-8"?>
<zk>
<window border="normal" apply="org.zkoss.bind.BindComposer"
viewModel="@id('vm') @init('info.bukova.isspst.ui.dashboard.DashBoardVM')">
<caption zclass="form-caption" label="${labels.Information}" />
<vbox>
<hbox>
<label value="${labels.LogedInUser}"/> <image src="/img/user-small.png"/> <label value="@load(vm.user)"/>
</hbox>
<groupbox mold="3d">
<caption image="/img/commission-small.png" label="${labels.CentresForRequirements}"/>
<hbox children="@load(vm.centres)">
<template name="children">
<listbox model="@load(vm.groupRoles[each])">
<listhead>
<listheader label="@load(each.fullName)"/>
</listhead>
<template name="model" var="role">
<listitem>
<listcell label="@load(role.description)"/>
</listitem>
</template>
</listbox>
</template>
</hbox>
</groupbox>
<groupbox mold="3d">
<caption image="/img/commission-small.png" label="${labels.WorkgroupMembership}"/>
<hbox children="@load(vm.workgroups)">
<template name="children">
<listbox model="@load(vm.groupRoles[each])">
<listhead>
<listheader label="@load(each.fullName)"/>
</listhead>
<template name="model" var="role">
<listitem>
<listcell label="@load(role.description)"/>
</listitem>
</template>
</listbox>
</template>
</hbox>
</groupbox>
</vbox>
</window>
<window
vflex="1"
border="normal"
apply="org.zkoss.bind.BindComposer"
viewModel="@id('vm') @init('info.bukova.isspst.ui.dashboard.DashBoardVM')">
<caption
zclass="form-caption"
label="${labels.Information}" />
<vbox vflex="1">
<hbox>
<label value="${labels.LogedInUser}" />
<image src="/img/user-small.png" />
<label value="@load(vm.user)" />
</hbox>
<groupbox
vflex="1"
mold="3d">
<caption
image="/img/commission-small.png"
label="${labels.CentresForRequirements}" />
<hbox children="@load(vm.centres)">
<template name="children">
<listbox model="@load(vm.groupRoles[each])">
<listhead>
<listheader label="@load(each.fullName)" />
</listhead>
<template
name="model"
var="role">
<listitem>
<listcell label="@load(role.description)" />
</listitem>
</template>
</listbox>
</template>
</hbox>
</groupbox>
<groupbox
vflex="1"
mold="3d">
<caption
image="/img/commission-small.png"
label="${labels.WorkgroupMembership}" />
<hbox children="@load(vm.workgroups)">
<template name="children">
<listbox model="@load(vm.groupRoles[each])">
<listhead>
<listheader label="@load(each.fullName)" />
</listhead>
<template
name="model"
var="role">
<listitem>
<listcell label="@load(role.description)" />
</listitem>
</template>
</listbox>
</template>
</hbox>
</groupbox>
</vbox>
</window>
</zk>
+5
View File
@@ -29,6 +29,7 @@
label="${labels.CurrentRequirements}"
href="/trips/requirement" />
<menuitem
image="/img/pickup-024.png"
label="${labels.TravelOrders}"
href="" />
</menupopup>
@@ -37,10 +38,12 @@
<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')}" />
@@ -49,6 +52,7 @@
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')}" />
@@ -97,6 +101,7 @@
label="${labels.ChangePassword}…"
onClick="@command('passwd')" />
<menuitem
image="/img/unlock-016.png"
label="${labels.Logout}"
href="/j_spring_security_logout" />
</menupopup>