Toolbar přemístěn do samostatného souboru. Mírná úprava layoutu.

multitenant
Josef Rokos 11 years ago
parent 8939b24ff1
commit 9abe1ab6a4

@ -2,16 +2,10 @@
<zk>
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
<window title="Uživatelé" border="normal" apply="org.zkoss.bind.BindComposer"
viewModel="@id('vm') @init('info.bukova.isspst.ui.UsersList')">
<toolbar>
<toolbarbutton image="/img/add.png" tooltiptext="${labels.New}" id="btnNew" onClick="@command('addNew')" disabled="@load(vm.filter)" />
<toolbarbutton image="/img/edit.png" tooltiptext="${labels.Edit}" id="btnEdit" onClick="@command('edit')" disabled="@load(empty vm.dataBean ? 'true' : 'false')"/>
<toolbarbutton image="/img/delete.png" tooltiptext="${labels.Delete}" id="btnDelete" onClick="@command('delObject')" disabled="@load(empty vm.dataBean ? 'true' : 'false')"/>
<toolbarbutton image="/img/funnel.png" tooltiptext="${labels.Filter}" id="btnFilter" onClick="@command('filter')" />
</toolbar>
viewModel="@id('vm') @init('info.bukova.isspst.ui.UsersList')" height="570px">
<include src="/app/toolbar.zul"/>
<listbox model="@load(vm.dataList)" selectedItem="@bind(vm.dataBean)">
<listhead>
<listheader label="Login"/>

@ -1,10 +1,15 @@
body {
/*body {
font-family: sans-serif;
}*/
#container {
min-height:100%;
position:relative;
}
#header{
width: auto;
height:70px;
height:40px;
border: 1px solid #ccc;
padding:10px;
}
@ -23,13 +28,17 @@ body {
#maincolumn{
padding:10px;
padding-bottom:20px; /* Height of the footer */
margin: 0px 0px 0px 160px;
border: 1px solid #ccc;
}
#footer{
clear:both;
width:auto;
position:absolute;
bottom:0;
width:100%;
height:20px; /* Height of the footer */
border: 1px solid #ccc;
}
/*

@ -2,6 +2,7 @@
<html xmlns="native" xmlns:u="zul" xmlns:zk="zk">
<u:style src="/app/page.css"/>
<div id="container">
<div id="header">
hlavicka
</div>
@ -11,11 +12,13 @@
</div>
<div id="maincolumn">
<u:include src="${gridZul}"/>
</div>
<div id="footer">Footer
</div>
</div>
</html>

@ -0,0 +1,9 @@
<?page title="toolbar" contentType="text/html;charset=UTF-8"?>
<zk>
<toolbar>
<toolbarbutton image="/img/add.png" tooltiptext="Nový" id="btnNew" onClick="@command('addNew')" disabled="@load(vm.filter)" />
<toolbarbutton image="/img/edit.png" tooltiptext="Upravit" id="btnEdit" onClick="@command('edit')" disabled="@load(empty vm.dataBean ? 'true' : 'false')"/>
<toolbarbutton image="/img/delete.png" tooltiptext="Smazat" id="btnDelete" onClick="@command('delObject')" disabled="@load(empty vm.dataBean ? 'true' : 'false')"/>
<toolbarbutton image="/img/funnel.png" tooltiptext="Filtr" id="btnFilter" onClick="@command('filter')" />
</toolbar>
</zk>
Loading…
Cancel
Save