|
|
@ -2,13 +2,17 @@
|
|
|
|
<zk>
|
|
|
|
<zk>
|
|
|
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
|
|
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
|
|
|
<window border="normal" apply="org.zkoss.bind.BindComposer"
|
|
|
|
<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}" />
|
|
|
|
<caption zclass="form-caption" label="${labels.AgendaWorkgroups}" />
|
|
|
|
<include src="/app/toolbar.zul" />
|
|
|
|
<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">
|
|
|
|
<listhead menupopup="auto">
|
|
|
|
<listheader label="${labels.code}" sort="czech(code)" width="10%" />
|
|
|
|
<listheader label="${labels.code}" sort="czech(code)" width="10%" />
|
|
|
|
<listheader label="${labels.name}" sort="czech(name)" width="30%" />
|
|
|
|
<listheader label="${labels.name}" sort="czech(name)" width="30%" />
|
|
|
@ -57,40 +61,45 @@
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</listbox>
|
|
|
|
</listbox>
|
|
|
|
|
|
|
|
|
|
|
|
<vbox>
|
|
|
|
<panel vflex="1">
|
|
|
|
<vbox children="@load(vm.workgroupRoles)">
|
|
|
|
<panelchildren style="overflow:auto;">
|
|
|
|
<template name="children">
|
|
|
|
<vbox>
|
|
|
|
<grid model="@load(vm.dataBean.members)" visible="@load(each.authority ne 'ROLE_USER')">
|
|
|
|
<vbox children="@load(vm.workgroupRoles)">
|
|
|
|
<columns>
|
|
|
|
<template name="children">
|
|
|
|
<column label="@load(each.description)"/>
|
|
|
|
<grid model="@load(vm.dataBean.members)" visible="@load(each.authority ne 'ROLE_USER')">
|
|
|
|
</columns>
|
|
|
|
<columns>
|
|
|
|
<rows>
|
|
|
|
<column label="@load(each.description)"/>
|
|
|
|
<template name="model" var="member">
|
|
|
|
</columns>
|
|
|
|
<row visible="@load(member.role eq each)">
|
|
|
|
<rows>
|
|
|
|
<hbox><image src="/img/user-small-red.png"/><label value="@load(member.member.fullName)"/></hbox>
|
|
|
|
<template name="model" var="member">
|
|
|
|
</row>
|
|
|
|
<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>
|
|
|
|
</template>
|
|
|
|
</rows>
|
|
|
|
</tree>
|
|
|
|
</grid>
|
|
|
|
</groupbox>
|
|
|
|
</template>
|
|
|
|
</vbox>
|
|
|
|
</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>
|
|
|
|
</hbox>
|
|
|
|
</window>
|
|
|
|
</window>
|
|
|
|
</zk>
|
|
|
|
</zk>
|