30 lines
1.5 KiB
Plaintext
30 lines
1.5 KiB
Plaintext
<?page title="${labels.AgendaBuildings}" contentType="text/html;charset=UTF-8"?>
|
|||
|
|
<zk>
|
||
|
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||
|
|
<window title="${labels.AgendaBuildings}" border="normal" apply="org.zkoss.bind.BindComposer" viewModel="@id('vm') @init('info.bukova.isspst.ui.BuildingList')">
|
||
|
|
|
||
|
|
<toolbar>
|
||
|
|
<toolbarbutton image="/img/add.png" tooltiptext="${labels.ToolbarRecNew}" id="btnNew" onClick="@command('addNew')" disabled="@load(vm.filter)" />
|
||
|
|
<toolbarbutton image="/img/edit.png" tooltiptext="${labels.ToolbarRecEdit}" id="btnEdit" onClick="@command('edit')" disabled="@load(empty vm.dataBean ? 'true' : 'false')" />
|
||
|
|
<toolbarbutton image="/img/delete.png" tooltiptext="${labels.ToolbarRecDelete}" id="btnDelete" onClick="@command('delObject')" disabled="@load(empty vm.dataBean ? 'true' : 'false')" />
|
||
|
|
<toolbarbutton image="/img/funnel.png" tooltiptext="${labels.ToolbarRecFilter}" id="btnFilter" onClick="@command('filter')" />
|
||
|
|
</toolbar>
|
||
|
|
|
||
|
|
|
||
|
|
<listbox model="@load(vm.dataList)" selectedItem="@bind(vm.dataBean)">
|
||
|
|
<listhead>
|
||
|
|
<listheader label="${labels.BuildingsGridColumnCode}" width="10%" />
|
||
|
|
<listheader label="${labels.BuildingsGridColumnName}" width="30%" />
|
||
|
|
<listheader label="${labels.BuildingsGridColumnDescription}" width="60%" />
|
||
|
|
</listhead>
|
||
|
|
<template name="model">
|
||
|
|
<listitem>
|
||
|
|
<listcell label="@load(each.code)" />
|
||
|
|
<listcell label="@load(each.name)" />
|
||
|
|
<listcell label="@load(each.description)" />
|
||
|
|
</listitem>
|
||
|
|
</template>
|
||
|
|
</listbox>
|
||
|
|
|
||
|
|
</window>
|
||
|
|
</zk>
|