|
|
@ -8,37 +8,37 @@
|
|
|
|
<rows>
|
|
|
|
<rows>
|
|
|
|
<row>
|
|
|
|
<row>
|
|
|
|
<label value="${labels.SuppliersFormCompany}"/>
|
|
|
|
<label value="${labels.SuppliersFormCompany}"/>
|
|
|
|
<textbox value="@bind(vm.settings.mainAddress.company)" width="100%"/>
|
|
|
|
<textbox value="@bind(vm.settings.mainAddress.company)" width="100%" readonly="@load(not vm.canSave)"/>
|
|
|
|
</row>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<row>
|
|
|
|
<label value="${labels.SuppliersFormIC}"/>
|
|
|
|
<label value="${labels.SuppliersFormIC}"/>
|
|
|
|
<textbox value="@bind(vm.settings.mainAddress.ic)"/>
|
|
|
|
<textbox value="@bind(vm.settings.mainAddress.ic)" readonly="@load(not vm.canSave)"/>
|
|
|
|
</row>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<row>
|
|
|
|
<label value="${labels.SuppliersFormDIC}"/>
|
|
|
|
<label value="${labels.SuppliersFormDIC}"/>
|
|
|
|
<textbox value="@bind(vm.settings.mainAddress.dic)"/>
|
|
|
|
<textbox value="@bind(vm.settings.mainAddress.dic)" readonly="@load(not vm.canSave)"/>
|
|
|
|
</row>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<row>
|
|
|
|
<label value="${labels.SuppliersFormStreet}"/>
|
|
|
|
<label value="${labels.SuppliersFormStreet}"/>
|
|
|
|
<textbox value="@bind(vm.settings.mainAddress.street)" width="100%"/>
|
|
|
|
<textbox value="@bind(vm.settings.mainAddress.street)" width="100%" readonly="@load(not vm.canSave)"/>
|
|
|
|
</row>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<row>
|
|
|
|
<label value="${labels.SuppliersFormNo}"/>
|
|
|
|
<label value="${labels.SuppliersFormNo}"/>
|
|
|
|
<textbox value="@bind(vm.settings.mainAddress.houseNumber)"/>
|
|
|
|
<textbox value="@bind(vm.settings.mainAddress.houseNumber)" readonly="@load(not vm.canSave)"/>
|
|
|
|
</row>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<row>
|
|
|
|
<label value="${labels.SuppliersFormCity}"/>
|
|
|
|
<label value="${labels.SuppliersFormCity}"/>
|
|
|
|
<textbox value="@bind(vm.settings.mainAddress.city)" width="100%"/>
|
|
|
|
<textbox value="@bind(vm.settings.mainAddress.city)" width="100%" readonly="@load(not vm.canSave)"/>
|
|
|
|
</row>
|
|
|
|
</row>
|
|
|
|
<row>
|
|
|
|
<row>
|
|
|
|
<label value="${labels.SuppliersFormZIP}"/>
|
|
|
|
<label value="${labels.SuppliersFormZIP}"/>
|
|
|
|
<textbox value="@bind(vm.settings.mainAddress.zipCode)"/>
|
|
|
|
<textbox value="@bind(vm.settings.mainAddress.zipCode)" readonly="@load(not vm.canSave)"/>
|
|
|
|
</row>
|
|
|
|
</row>
|
|
|
|
</rows>
|
|
|
|
</rows>
|
|
|
|
</grid>
|
|
|
|
</grid>
|
|
|
|
<vbox>
|
|
|
|
<vbox>
|
|
|
|
<label value="${labels.ShippingAddresses}"/>
|
|
|
|
<label value="${labels.ShippingAddresses}"/>
|
|
|
|
<button label="${labels.AddItem}" onClick="@command('addAddress')"/>
|
|
|
|
<button label="${labels.AddItem}" onClick="@command('addAddress')" disabled="@load(not vm.canSave)"/>
|
|
|
|
<listbox model="@load(vm.settings.shippingAddrs)">
|
|
|
|
<listbox model="@load(vm.settings.shippingAddrs)">
|
|
|
|
<listhead>
|
|
|
|
<listhead>
|
|
|
|
<listheader label="${labels.SuppliersFormStreet}"/>
|
|
|
|
<listheader label="${labels.SuppliersFormStreet}"/>
|
|
|
@ -50,19 +50,19 @@
|
|
|
|
<template name="model">
|
|
|
|
<template name="model">
|
|
|
|
<listitem>
|
|
|
|
<listitem>
|
|
|
|
<listcell>
|
|
|
|
<listcell>
|
|
|
|
<textbox inplace="true" value="@bind(each.street)"></textbox>
|
|
|
|
<textbox inplace="true" value="@bind(each.street)" readonly="@load(not vm.canSave)"></textbox>
|
|
|
|
</listcell>
|
|
|
|
</listcell>
|
|
|
|
<listcell>
|
|
|
|
<listcell>
|
|
|
|
<textbox inplace="true" value="@bind(each.houseNumber)"></textbox>
|
|
|
|
<textbox inplace="true" value="@bind(each.houseNumber)" readonly="@load(not vm.canSave)"></textbox>
|
|
|
|
</listcell>
|
|
|
|
</listcell>
|
|
|
|
<listcell>
|
|
|
|
<listcell>
|
|
|
|
<textbox inplace="true" value="@bind(each.city)"></textbox>
|
|
|
|
<textbox inplace="true" value="@bind(each.city)" readonly="@load(not vm.canSave)"></textbox>
|
|
|
|
</listcell>
|
|
|
|
</listcell>
|
|
|
|
<listcell>
|
|
|
|
<listcell>
|
|
|
|
<textbox inplace="true" value="@bind(each.zipCode)"></textbox>
|
|
|
|
<textbox inplace="true" value="@bind(each.zipCode)" readonly="@load(not vm.canSave)"></textbox>
|
|
|
|
</listcell>
|
|
|
|
</listcell>
|
|
|
|
<listcell>
|
|
|
|
<listcell>
|
|
|
|
<button label="${labels.RemoveItem }" onClick="@command('removeAddress', addr=each)"/>
|
|
|
|
<button label="${labels.RemoveItem }" onClick="@command('removeAddress', addr=each)" disabled="@load(not vm.canSave)"/>
|
|
|
|
</listcell>
|
|
|
|
</listcell>
|
|
|
|
</listitem>
|
|
|
|
</listitem>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|