You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
115 lines
3.5 KiB
Plaintext
115 lines
3.5 KiB
Plaintext
<?page title="address" contentType="text/html;charset=UTF-8"?>
|
|
<zk>
|
|
<grid>
|
|
<columns>
|
|
<column hflex="min"/>
|
|
<column/>
|
|
</columns>
|
|
<rows>
|
|
<row>
|
|
<label value="${labels.SuppliersFormCompany}"/>
|
|
<textbox
|
|
value="@bind(vm.settings.mainAddress.company)"
|
|
width="100%"
|
|
maxlength="@load(vm.lengthText)"
|
|
readonly="@load(not vm.canSave)" />
|
|
</row>
|
|
<row>
|
|
<label value="${labels.SuppliersFormIC}"/>
|
|
<textbox
|
|
value="@bind(vm.settings.mainAddress.ic)"
|
|
maxlength="@load(vm.lengthText)"
|
|
readonly="@load(not vm.canSave)" />
|
|
</row>
|
|
<row>
|
|
<label value="${labels.SuppliersFormDIC}"/>
|
|
<textbox
|
|
value="@bind(vm.settings.mainAddress.dic)"
|
|
maxlength="@load(vm.lengthText)"
|
|
readonly="@load(not vm.canSave)" />
|
|
</row>
|
|
<row>
|
|
<label value="${labels.SuppliersFormStreet}"/>
|
|
<textbox
|
|
value="@bind(vm.settings.mainAddress.street)"
|
|
width="100%"
|
|
maxlength="@load(vm.lengthText)"
|
|
readonly="@load(not vm.canSave)" />
|
|
</row>
|
|
<row>
|
|
<label value="${labels.SuppliersFormNo}"/>
|
|
<textbox
|
|
value="@bind(vm.settings.mainAddress.houseNumber)"
|
|
maxlength="@load(vm.lengthText)"
|
|
readonly="@load(not vm.canSave)" />
|
|
</row>
|
|
<row>
|
|
<label value="${labels.SuppliersFormCity}"/>
|
|
<textbox
|
|
value="@bind(vm.settings.mainAddress.city)"
|
|
width="100%"
|
|
maxlength="@load(vm.lengthText)"
|
|
readonly="@load(not vm.canSave)" />
|
|
</row>
|
|
<row>
|
|
<label value="${labels.SuppliersFormZIP}"/>
|
|
<textbox
|
|
value="@bind(vm.settings.mainAddress.zipCode)"
|
|
maxlength="@load(vm.lengthText)"
|
|
readonly="@load(not vm.canSave)" />
|
|
</row>
|
|
</rows>
|
|
</grid>
|
|
<vbox>
|
|
<label value="${labels.ShippingAddresses}"/>
|
|
<button label="${labels.AddItem}" onClick="@command('addAddress')" disabled="@load(not vm.canSave)"/>
|
|
<listbox model="@load(vm.settings.shippingAddrs)">
|
|
<listhead>
|
|
<listheader label="${labels.SuppliersFormStreet}"/>
|
|
<listheader label="${labels.SuppliersFormNo}"/>
|
|
<listheader label="${labels.SuppliersFormCity}"/>
|
|
<listheader label="${labels.SuppliersFormZIP}"/>
|
|
<listheader/>
|
|
</listhead>
|
|
<template name="model">
|
|
<listitem>
|
|
<listcell>
|
|
<textbox
|
|
inplace="true"
|
|
value="@bind(each.street)"
|
|
maxlength="@load(vm.lengthText)"
|
|
readonly="@load(not vm.canSave)">
|
|
</textbox>
|
|
</listcell>
|
|
<listcell>
|
|
<textbox
|
|
inplace="true"
|
|
value="@bind(each.houseNumber)"
|
|
maxlength="@load(vm.lengthText)"
|
|
readonly="@load(not vm.canSave)">
|
|
</textbox>
|
|
</listcell>
|
|
<listcell>
|
|
<textbox
|
|
inplace="true"
|
|
value="@bind(each.city)"
|
|
maxlength="@load(vm.lengthText)"
|
|
readonly="@load(not vm.canSave)">
|
|
</textbox>
|
|
</listcell>
|
|
<listcell>
|
|
<textbox
|
|
inplace="true"
|
|
value="@bind(each.zipCode)"
|
|
maxlength="@load(vm.lengthText)"
|
|
readonly="@load(not vm.canSave)">
|
|
</textbox>
|
|
</listcell>
|
|
<listcell>
|
|
<button label="${labels.RemoveItem }" onClick="@command('removeAddress', addr=each)" disabled="@load(not vm.canSave)"/>
|
|
</listcell>
|
|
</listitem>
|
|
</template>
|
|
</listbox>
|
|
</vbox>
|
|
</zk> |