<?page title="${labels.TravelOrdersFormTitle}" contentType="text/html;charset=UTF-8"?>

<zk xmlns="http://www.zkoss.org/2005/zul"
	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">
	<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
	<window
			id="editWin"
			closable="true"
			border="normal"
			width="600px"
			position="center"
			apply="org.zkoss.bind.BindComposer"
			viewModel="@id('vm') @init('info.bukova.isspst.ui.limits.LimitsForm')">
	<caption
			image="/img/invoicing-032.png"
			zclass="form-caption"
			label="${labels.LimitsLimit}" />
		<grid>
			<columns>
				<column/>
				<column/>
			</columns>
			<rows>
				<row>
					<label value="${labels.LimitsWorkgroup}"/>
					<combobox
							disabled="@load(not vm.newRec)"
							width="150px"
							model="@load(vm.workgroups)"
							readonly="true"
							selectedItem="@bind(vm.dataBean.workgroup)">
						<template name="model">
							<comboitem label="@load(each)" />
						</template>
					</combobox>
				</row>
				<row>
					<label value="${labels.LimitsLimit}"/>
					<textbox value="@bind(vm.dataBean.limit) @converter(vm.standardBigDecimalConverter)"/>
				</row>
			</rows>
		</grid>
		<include src="/app/formButtons.zul"/>
	</window>
</zk>