|
|
|
@ -2,13 +2,17 @@
|
|
|
|
|
<zk>
|
|
|
|
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
|
|
|
|
<window border="normal" apply="org.zkoss.bind.BindComposer"
|
|
|
|
|
viewModel="@id('vm') @init('info.bukova.isspst.ui.workgroups.WorkgroupList')">
|
|
|
|
|
viewModel="@id('vm') @init('info.bukova.isspst.ui.workgroups.WorkgroupList')"
|
|
|
|
|
vflex="1">
|
|
|
|
|
<caption zclass="form-caption" label="${labels.AgendaWorkgroups}" />
|
|
|
|
|
<include src="/app/toolbar.zul" />
|
|
|
|
|
|
|
|
|
|
<hbox width="100%" height="500px">
|
|
|
|
|
<hbox width="100%" vflex="1">
|
|
|
|
|
|
|
|
|
|
<listbox model="@load(vm.dataList)" selectedItem="@bind(vm.dataBean)" width="680px" height="480px">
|
|
|
|
|
<listbox model="@load(vm.dataList)"
|
|
|
|
|
selectedItem="@bind(vm.dataBean)"
|
|
|
|
|
width="680px"
|
|
|
|
|
vflex="1">
|
|
|
|
|
<listhead menupopup="auto">
|
|
|
|
|
<listheader label="${labels.code}" sort="czech(code)" width="10%" />
|
|
|
|
|
<listheader label="${labels.name}" sort="czech(name)" width="30%" />
|
|
|
|
@ -57,40 +61,45 @@
|
|
|
|
|
</template>
|
|
|
|
|
</listbox>
|
|
|
|
|
|
|
|
|
|
<vbox>
|
|
|
|
|
<vbox children="@load(vm.workgroupRoles)">
|
|
|
|
|
<template name="children">
|
|
|
|
|
<grid model="@load(vm.dataBean.members)" visible="@load(each.authority ne 'ROLE_USER')">
|
|
|
|
|
<columns>
|
|
|
|
|
<column label="@load(each.description)"/>
|
|
|
|
|
</columns>
|
|
|
|
|
<rows>
|
|
|
|
|
<template name="model" var="member">
|
|
|
|
|
<row visible="@load(member.role eq each)">
|
|
|
|
|
<hbox><image src="/img/user-small-red.png"/><label value="@load(member.member.fullName)"/></hbox>
|
|
|
|
|
</row>
|
|
|
|
|
<panel vflex="1">
|
|
|
|
|
<panelchildren style="overflow:auto;">
|
|
|
|
|
<vbox>
|
|
|
|
|
<vbox children="@load(vm.workgroupRoles)">
|
|
|
|
|
<template name="children">
|
|
|
|
|
<grid model="@load(vm.dataBean.members)" visible="@load(each.authority ne 'ROLE_USER')">
|
|
|
|
|
<columns>
|
|
|
|
|
<column label="@load(each.description)"/>
|
|
|
|
|
</columns>
|
|
|
|
|
<rows>
|
|
|
|
|
<template name="model" var="member">
|
|
|
|
|
<row visible="@load(member.role eq each)">
|
|
|
|
|
<hbox><image src="/img/user-small-red.png"/><label value="@load(member.member.fullName)"/></hbox>
|
|
|
|
|
</row>
|
|
|
|
|
</template>
|
|
|
|
|
</rows>
|
|
|
|
|
</grid>
|
|
|
|
|
</template>
|
|
|
|
|
</vbox>
|
|
|
|
|
|
|
|
|
|
<groupbox mold="3d" closable="false">
|
|
|
|
|
<caption label="členové"/>
|
|
|
|
|
<tree hflex="1" model="@load(vm.workgroupTreeModel)">
|
|
|
|
|
<treecols>
|
|
|
|
|
<treecol/>
|
|
|
|
|
</treecols>
|
|
|
|
|
<template name="model">
|
|
|
|
|
<treeitem>
|
|
|
|
|
<treerow>
|
|
|
|
|
<treecell image="@load(each.data.person ? '/img/user-small.png' : '/img/commission-small.png')" label="@load(each.data.fullName)"/>
|
|
|
|
|
</treerow>
|
|
|
|
|
</treeitem>
|
|
|
|
|
</template>
|
|
|
|
|
</rows>
|
|
|
|
|
</grid>
|
|
|
|
|
</template>
|
|
|
|
|
</vbox>
|
|
|
|
|
</tree>
|
|
|
|
|
</groupbox>
|
|
|
|
|
</vbox>
|
|
|
|
|
</panelchildren>
|
|
|
|
|
</panel>
|
|
|
|
|
|
|
|
|
|
<groupbox mold="3d" closable="false">
|
|
|
|
|
<caption label="členové"/>
|
|
|
|
|
<tree hflex="1" model="@load(vm.workgroupTreeModel)">
|
|
|
|
|
<treecols>
|
|
|
|
|
<treecol/>
|
|
|
|
|
</treecols>
|
|
|
|
|
<template name="model">
|
|
|
|
|
<treeitem>
|
|
|
|
|
<treerow>
|
|
|
|
|
<treecell image="@load(each.data.person ? '/img/user-small.png' : '/img/commission-small.png')" label="@load(each.data.fullName)"/>
|
|
|
|
|
</treerow>
|
|
|
|
|
</treeitem>
|
|
|
|
|
</template>
|
|
|
|
|
</tree>
|
|
|
|
|
</groupbox>
|
|
|
|
|
</vbox>
|
|
|
|
|
</hbox>
|
|
|
|
|
</window>
|
|
|
|
|
</zk>
|