<?page title="NumberSeries" contentType="text/html;charset=UTF-8"?>
<zk>
<window id="editWin" border="normal" apply="org.zkoss.bind.BindComposer"
viewModel="@id('vm') @init('info.bukova.isspst.ui.settings.NumberSeriesVM')" closable="true" width="400px"
binder="@init(queueName='numSeries')">
	<caption zclass="form-caption" label="${labels.NumberSeries}" />
	<grid model="@load(vm.numberSeriesList)">
		<columns>
			<column hflex="min"/>
			<column/>
			<column hflex="min"/>
			<column hflex="min"/>
		</columns>
		<rows>
			<template name="model">
				<row>
					<label value="@load(vm.moduleMap[each.module].name.concat(' - ').concat(labels.Prefix))"/>
					<textbox
						value="@bind(each.prefix)"
						maxlength="@load(vm.lengthText)" />
					<label value="${labels.Number}"/>
					<label value="@load(each.number)"/>
				</row>
			</template>
		</rows>
	</grid>
	<include src="/app/formButtons.zul"/>
</window>
</zk>