Sjednoceny hlavičky pro filtrování záznamů.
Header přeformátován a texty načítány z labels. closes #77
This commit is contained in:
@@ -10,38 +10,6 @@
|
||||
<hbox width="100%">
|
||||
<listbox id="dataGrid" model="@load(vm.dataList)" selectedItem="@bind(vm.dataBean)"
|
||||
onAfterRender="@command('afterRender')" selectedIndex="@load(vm.selIndex)" hflex="6" height="480px">
|
||||
<auxhead sclass="category-center" visible="@load(vm.filter)">
|
||||
<auxheader>
|
||||
<image src="/img/funnel.png" />
|
||||
<textbox instant="true" width="85%"
|
||||
value="@bind(vm.filterTemplate.company)" onChange="@command('doFilter')" />
|
||||
</auxheader>
|
||||
<auxheader>
|
||||
<image src="/img/funnel.png" />
|
||||
<textbox instant="true" width="85%"
|
||||
value="@bind(vm.filterTemplate.ic)" onChange="@command('doFilter')" />
|
||||
</auxheader>
|
||||
<auxheader>
|
||||
<image src="/img/funnel.png" />
|
||||
<textbox instant="true" width="85%"
|
||||
value="@bind(vm.filterTemplate.contactName)" onChange="@command('doFilter')"/>
|
||||
</auxheader>
|
||||
<auxheader>
|
||||
<image src="/img/funnel.png" />
|
||||
<textbox instant="true" width="85%"
|
||||
value="@bind(vm.filterTemplate.street)" onChange="@command('doFilter')"/>
|
||||
</auxheader>
|
||||
<auxheader>
|
||||
<image src="/img/funnel.png" />
|
||||
<textbox instant="true" width="85%"
|
||||
value="@bind(vm.filterTemplate.houseNumber)" onChange="@command('doFilter')"/>
|
||||
</auxheader>
|
||||
<auxheader>
|
||||
<image src="/img/funnel.png" />
|
||||
<textbox instant="true" width="85%"
|
||||
value="@bind(vm.filterTemplate.city)" onChange="@command('doFilter')"/>
|
||||
</auxheader>
|
||||
</auxhead>
|
||||
<listhead vflex="true">
|
||||
<listheader label="Firma" sort="auto(company)" onSort="@command('onSort', column='company')" />
|
||||
<listheader label="IČ" width="100px"/>
|
||||
@@ -50,6 +18,70 @@
|
||||
<listheader label="Číslo domu" width="80px"/>
|
||||
<listheader label="Město" sort="auto(city)" onSort="@command('onSort', column='city')"/>
|
||||
</listhead>
|
||||
|
||||
<auxhead sclass="category-center" visible="@load(vm.filter)">
|
||||
<auxheader>
|
||||
<div sclass="find-grid-cell">
|
||||
<div sclass="find-grid-divtextbox">
|
||||
<textbox value="@bind(vm.filterTemplate.company)" instant="true" onChange="@command('doFilter')" sclass="find-grid-textbox" />
|
||||
</div>
|
||||
<div sclass="find-grid-img">
|
||||
<image src="/img/funnel.png" />
|
||||
</div>
|
||||
</div>
|
||||
</auxheader>
|
||||
<auxheader>
|
||||
<div sclass="find-grid-cell">
|
||||
<div sclass="find-grid-divtextbox">
|
||||
<textbox value="@bind(vm.filterTemplate.ic)" instant="true" onChange="@command('doFilter')" sclass="find-grid-textbox" />
|
||||
</div>
|
||||
<div sclass="find-grid-img">
|
||||
<image src="/img/funnel.png" />
|
||||
</div>
|
||||
</div>
|
||||
</auxheader>
|
||||
<auxheader>
|
||||
<div sclass="find-grid-cell">
|
||||
<div sclass="find-grid-divtextbox">
|
||||
<textbox value="@bind(vm.filterTemplate.contactName)" instant="true" onChange="@command('doFilter')" sclass="find-grid-textbox" />
|
||||
</div>
|
||||
<div sclass="find-grid-img">
|
||||
<image src="/img/funnel.png" />
|
||||
</div>
|
||||
</div>
|
||||
</auxheader>
|
||||
<auxheader>
|
||||
<div sclass="find-grid-cell">
|
||||
<div sclass="find-grid-divtextbox">
|
||||
<textbox value="@bind(vm.filterTemplate.street)" instant="true" onChange="@command('doFilter')" sclass="find-grid-textbox" />
|
||||
</div>
|
||||
<div sclass="find-grid-img">
|
||||
<image src="/img/funnel.png" />
|
||||
</div>
|
||||
</div>
|
||||
</auxheader>
|
||||
<auxheader>
|
||||
<div sclass="find-grid-cell">
|
||||
<div sclass="find-grid-divtextbox">
|
||||
<textbox value="@bind(vm.filterTemplate.houseNumber)" instant="true" onChange="@command('doFilter')" sclass="find-grid-textbox" />
|
||||
</div>
|
||||
<div sclass="find-grid-img">
|
||||
<image src="/img/funnel.png" />
|
||||
</div>
|
||||
</div>
|
||||
</auxheader>
|
||||
<auxheader>
|
||||
<div sclass="find-grid-cell">
|
||||
<div sclass="find-grid-divtextbox">
|
||||
<textbox value="@bind(vm.filterTemplate.city)" instant="true" onChange="@command('doFilter')" sclass="find-grid-textbox" />
|
||||
</div>
|
||||
<div sclass="find-grid-img">
|
||||
<image src="/img/funnel.png" />
|
||||
</div>
|
||||
</div>
|
||||
</auxheader>
|
||||
</auxhead>
|
||||
|
||||
<template name="model">
|
||||
<listitem>
|
||||
<listcell label="@load(each.company)"/>
|
||||
|
||||
@@ -8,30 +8,56 @@
|
||||
|
||||
<hbox width="100%" height="500px">
|
||||
<listbox model="@load(vm.dataList)" selectedItem="@bind(vm.dataBean)" width="650px" height="480px">
|
||||
<auxhead sclass="category-center" visible="@load(vm.filter)">
|
||||
<auxheader>
|
||||
<image src="/img/funnel.png" />
|
||||
<textbox value="@bind(vm.filterTemplate.username)" instant="true" onChange="@command('doFilter')"/>
|
||||
</auxheader>
|
||||
<auxheader>
|
||||
<image src="/img/funnel.png" />
|
||||
<textbox value="@bind(vm.filterTemplate.personalNumber)" instant="true" onChange="@command('doFilter')"/>
|
||||
</auxheader>
|
||||
<auxheader>
|
||||
<image src="/img/funnel.png" />
|
||||
<textbox value="@bind(vm.filterTemplate.firstName)" instant="true" onChange="@command('doFilter')"/>
|
||||
</auxheader>
|
||||
<auxheader>
|
||||
<image src="/img/funnel.png" />
|
||||
<textbox value="@bind(vm.filterTemplate.lastName)" instant="true" onChange="@command('doFilter')"/>
|
||||
</auxheader>
|
||||
</auxhead>
|
||||
<listhead>
|
||||
<listheader label="Login"/>
|
||||
<listheader label="Osobní číslo"/>
|
||||
<listheader label="Jméno"/>
|
||||
<listheader label="Příjmení"/>
|
||||
</listhead>
|
||||
|
||||
<auxhead sclass="category-center" visible="@load(vm.filter)">
|
||||
<auxheader>
|
||||
<div sclass="find-grid-cell">
|
||||
<div sclass="find-grid-divtextbox">
|
||||
<textbox value="@bind(vm.filterTemplate.username)" instant="true" onChange="@command('doFilter')" sclass="find-grid-textbox" />
|
||||
</div>
|
||||
<div sclass="find-grid-img">
|
||||
<image src="/img/funnel.png" />
|
||||
</div>
|
||||
</div>
|
||||
</auxheader>
|
||||
<auxheader>
|
||||
<div sclass="find-grid-cell">
|
||||
<div sclass="find-grid-divtextbox">
|
||||
<textbox value="@bind(vm.filterTemplate.personalNumber)" instant="true" onChange="@command('doFilter')" sclass="find-grid-textbox" />
|
||||
</div>
|
||||
<div sclass="find-grid-img">
|
||||
<image src="/img/funnel.png" />
|
||||
</div>
|
||||
</div>
|
||||
</auxheader>
|
||||
<auxheader>
|
||||
<div sclass="find-grid-cell">
|
||||
<div sclass="find-grid-divtextbox">
|
||||
<textbox value="@bind(vm.filterTemplate.firstName)" instant="true" onChange="@command('doFilter')" sclass="find-grid-textbox" />
|
||||
</div>
|
||||
<div sclass="find-grid-img">
|
||||
<image src="/img/funnel.png" />
|
||||
</div>
|
||||
</div>
|
||||
</auxheader>
|
||||
<auxheader>
|
||||
<div sclass="find-grid-cell">
|
||||
<div sclass="find-grid-divtextbox">
|
||||
<textbox value="@bind(vm.filterTemplate.lastName)" instant="true" onChange="@command('doFilter')" sclass="find-grid-textbox" />
|
||||
</div>
|
||||
<div sclass="find-grid-img">
|
||||
<image src="/img/funnel.png" />
|
||||
</div>
|
||||
</div>
|
||||
</auxheader>
|
||||
</auxhead>
|
||||
|
||||
<template name="model">
|
||||
<listitem>
|
||||
<listcell label="@load(each.username)"/>
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
<?page title="${labels.HeaderText}" contentType="text/html;charset=UTF-8"?>
|
||||
<zk>
|
||||
<style src="/css/page.css"/>
|
||||
<div id="header">
|
||||
${labels.AppName}
|
||||
</div>
|
||||
<div sclass="header-content" xmlns="xhtml">${labels.AppName}</div>
|
||||
</zk>
|
||||
@@ -43,21 +43,15 @@
|
||||
|
||||
<div id="container">
|
||||
<div id="header">
|
||||
Objednávkový systém SPŠ Třebíč
|
||||
<u:include src="/app/header.zul" />
|
||||
</div>
|
||||
|
||||
<div id="leftcolumn">
|
||||
<u:include src="/app/navigation.zul" />
|
||||
</div>
|
||||
|
||||
<div id="maincolumn">
|
||||
|
||||
<u:include src="${gridZul}" />
|
||||
</div>
|
||||
|
||||
<div id="footer">Footer
|
||||
|
||||
</div>
|
||||
<div id="footer">Footer</div>
|
||||
</div>
|
||||
|
||||
</html>
|
||||
@@ -11,6 +11,7 @@
|
||||
<listheader label="${labels.BuildingsGridColumnName}" sort="auto(name)" onSort="@command('onSort', column='name')" width="30%" />
|
||||
<listheader label="${labels.BuildingsGridColumnDescription}" sort="auto(description)" onSort="@command('onSort', column='description')" width="60%" />
|
||||
</listhead>
|
||||
|
||||
<auxhead sclass="category-center" visible="@load(vm.filter)">
|
||||
<auxheader>
|
||||
<div sclass="find-grid-cell">
|
||||
@@ -43,6 +44,7 @@
|
||||
</div>
|
||||
</auxheader>
|
||||
</auxhead>
|
||||
|
||||
<template name="model">
|
||||
<listitem>
|
||||
<listcell label="@load(each.code)" />
|
||||
|
||||
@@ -2,7 +2,6 @@ html {
|
||||
/*vertical scrollbar allways visible */
|
||||
overflow: -moz-scrollbars-vertical;
|
||||
overflow-y: scroll;
|
||||
|
||||
font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
@@ -13,16 +12,9 @@ html {
|
||||
|
||||
#header {
|
||||
width: auto;
|
||||
height: 40px;
|
||||
height: 60px;
|
||||
border: 1px solid #ccc;
|
||||
padding: 10px;
|
||||
background: url("/isspst/img/header-bg.png") 50% 0 repeat-x;
|
||||
|
||||
color: #ffffff;
|
||||
font-size: 35px;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
text-shadow: 2px 2px 2px #000000;
|
||||
}
|
||||
|
||||
#leftcolumn {
|
||||
|
||||
@@ -1,3 +1,13 @@
|
||||
.header-content {
|
||||
padding: 10px;
|
||||
background: url("/isspst/img/header-bg.png") 50% 0 repeat-x;
|
||||
color: #ffffff;
|
||||
font-size: 35px;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
text-shadow: 2px 2px 2px #000000;
|
||||
}
|
||||
|
||||
.find-grid-cell {
|
||||
display: table;
|
||||
width: 100%;
|
||||
|
||||
Reference in New Issue
Block a user