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

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

@ -2,15 +2,9 @@
<zk> <zk>
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?> <?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
<window title="Uživatelé" border="normal" apply="org.zkoss.bind.BindComposer" <window title="Uživatelé" border="normal" apply="org.zkoss.bind.BindComposer"
viewModel="@id('vm') @init('info.bukova.isspst.ui.UsersList')"> viewModel="@id('vm') @init('info.bukova.isspst.ui.UsersList')" height="570px">
<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>
<include src="/app/toolbar.zul"/>
<listbox model="@load(vm.dataList)" selectedItem="@bind(vm.dataBean)"> <listbox model="@load(vm.dataList)" selectedItem="@bind(vm.dataBean)">
<listhead> <listhead>

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

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