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