From 12b814360c9ae43f27902c8661ae0fc72f49a3c9 Mon Sep 17 00:00:00 2001 From: Franta Pribyl Date: Sun, 25 May 2014 07:00:20 +0200 Subject: [PATCH] =?UTF-8?q?Agenda=20Budovy=20-=20zprovozn=C4=9Bno=20t?= =?UTF-8?q?=C5=99=C3=ADd=C4=9Bn=C3=AD=20-=20zprovozn=C4=9Bny=20filtry=20-?= =?UTF-8?q?=20textboxy=20filtr=C5=AF=20se=20nyn=C3=AD=20roztahuj=C3=AD=20-?= =?UTF-8?q?=20css=20styly=20se=20na=C4=8D=C3=ADtaj=C3=AD=20p=C5=99es=20zk.?= =?UTF-8?q?xml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../info/bukova/isspst/ui/BuildingList.java | 6 ++- src/main/webapp/WEB-INF/zk.xml | 4 ++ src/main/webapp/buildings/building.zul | 40 +++++++++++++++++-- src/main/webapp/buildings/buildingForm.zul | 5 +-- src/main/webapp/css/zk-modify.css | 18 +++++++++ 5 files changed, 64 insertions(+), 9 deletions(-) create mode 100644 src/main/webapp/css/zk-modify.css diff --git a/src/main/java/info/bukova/isspst/ui/BuildingList.java b/src/main/java/info/bukova/isspst/ui/BuildingList.java index 6b9d50e9..aadc1384 100644 --- a/src/main/java/info/bukova/isspst/ui/BuildingList.java +++ b/src/main/java/info/bukova/isspst/ui/BuildingList.java @@ -1,21 +1,23 @@ package info.bukova.isspst.ui; import info.bukova.isspst.data.Building; +import info.bukova.isspst.filters.BuildingFilter; import info.bukova.isspst.services.buildings.BuildingService; import org.zkoss.bind.annotation.Init; import org.zkoss.zk.ui.select.annotation.WireVariable; public class BuildingList extends ListViewModel { - + @WireVariable private BuildingService buildingService; - + @Init public void init() { service = buildingService; dataClass = Building.class; formZul = "buildingForm.zul"; + dataFilter = new BuildingFilter(getFilterTemplate()); } } diff --git a/src/main/webapp/WEB-INF/zk.xml b/src/main/webapp/WEB-INF/zk.xml index 3eec7dba..987088e0 100644 --- a/src/main/webapp/WEB-INF/zk.xml +++ b/src/main/webapp/WEB-INF/zk.xml @@ -23,6 +23,10 @@ /WEB-INF/ckez-bind-lang-addon.xml + + /css/zk-modify.css + + @@ -19,13 +18,13 @@ ${labels.BuildingsFormName} : - + ${labels.BuildingsFormDescription} : - + diff --git a/src/main/webapp/css/zk-modify.css b/src/main/webapp/css/zk-modify.css new file mode 100644 index 00000000..84a1f57a --- /dev/null +++ b/src/main/webapp/css/zk-modify.css @@ -0,0 +1,18 @@ +.find-grid-cell { + display: table; + width: 100%; +} + +.find-grid-img { + display: table-cell; + width: 20px; + text-align: right; +} + +.find-grid-divtextbox { + display: table-cell; +} + +.find-grid-textbox { + width: 100%; +} \ No newline at end of file