Formulář ag. Služební cesty / Aktuální požadavky
• přidáno textové pole "Cizí osoby" • upraven popisek formuláře • upraven vzhled a zarovnání prvků • přidána kontrola ukazatele při promazávání souborů na disku i v databázi • sjednocena maska pro formátování data v <datebox> closes #197Verze_2.0
parent
9c5679af2c
commit
ac90b0a2e3
@ -1,37 +1,54 @@
|
|||||||
<?page title="${labels.TravelOrdersFormTitle}" contentType="text/html;charset=UTF-8"?>
|
<?page title="${labels.TravelOrdersFormTitle}" contentType="text/html;charset=UTF-8"?>
|
||||||
|
<zk
|
||||||
<zk xmlns="http://www.zkoss.org/2005/zul"
|
xmlns="http://www.zkoss.org/2005/zul"
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="http://www.zkoss.org/2005/zul http://www.zkoss.org/2005/zul/zul.xsd">
|
xsi:schemaLocation="http://www.zkoss.org/2005/zul http://www.zkoss.org/2005/zul/zul.xsd">
|
||||||
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
|
||||||
|
<vbox vflex="1">
|
||||||
<vbox>
|
<button
|
||||||
<button image="/img/upload-016.png"
|
vflex="min"
|
||||||
|
image="/img/upload-016.png"
|
||||||
label="Připojit soubor"
|
label="Připojit soubor"
|
||||||
upload="true"
|
upload="true"
|
||||||
onUpload="@command('uploadAttachment')"
|
onUpload="@command('uploadAttachment')"
|
||||||
sclass="nicebutton" />
|
sclass="nicebutton" />
|
||||||
<grid model="@load(vm.attachments)" height="180px">
|
<grid
|
||||||
|
model="@load(vm.attachments)"
|
||||||
|
vflex="1">
|
||||||
<columns>
|
<columns>
|
||||||
<column label="Soubor" width="220px"/>
|
<column
|
||||||
<column label="Popis" hflex="max"/>
|
label="Soubor"
|
||||||
<column width="200px"/>
|
width="220px" />
|
||||||
|
<column
|
||||||
|
label="Popis"
|
||||||
|
hflex="max" />
|
||||||
|
<column width="200px" />
|
||||||
</columns>
|
</columns>
|
||||||
<rows>
|
<rows>
|
||||||
<template name="model">
|
<template name="model">
|
||||||
<row>
|
<row>
|
||||||
<a href="@load('/api/dl/'.concat(each.pathInFilesystem).concat('/').concat(each.fileName))"
|
<a
|
||||||
|
href="@load('/api/dl/'.concat(each.pathInFilesystem).concat('/').concat(each.fileName))"
|
||||||
label="@load(each.fileName)"
|
label="@load(each.fileName)"
|
||||||
target="blank"/>
|
target="blank" />
|
||||||
<textbox value="@bind(each.description)" sclass="grid-textbox-max"/>
|
<textbox
|
||||||
|
value="@bind(each.description)"
|
||||||
|
sclass="grid-textbox-max" />
|
||||||
<hbox>
|
<hbox>
|
||||||
<button image="/img/delete-016.png" label="Odebrat" onClick="@command('deleteAttachment', attachment=each)" sclass="nicebutton"/>
|
<button
|
||||||
<button image="/img/download-016.png" label="Stáhnout" onClick="@command('downloadAttachment', attachment=each)" sclass="nicebutton"/>
|
image="/img/delete-016.png"
|
||||||
|
label="Odebrat"
|
||||||
|
onClick="@command('deleteAttachment', attachment=each)"
|
||||||
|
sclass="nicebutton" />
|
||||||
|
<button
|
||||||
|
image="/img/download-016.png"
|
||||||
|
label="Stáhnout"
|
||||||
|
onClick="@command('downloadAttachment', attachment=each)"
|
||||||
|
sclass="nicebutton" />
|
||||||
</hbox>
|
</hbox>
|
||||||
</row>
|
</row>
|
||||||
</template>
|
</template>
|
||||||
</rows>
|
</rows>
|
||||||
</grid>
|
</grid>
|
||||||
</vbox>
|
</vbox>
|
||||||
|
|
||||||
</zk>
|
</zk>
|
Loading…
Reference in New Issue