<?xml version="1.0" encoding="UTF-8"?>
<?page contentType="text/html;charset=UTF-8"?>
<?variable-resolver class="org.zkoss.zkplus.spring.DelegatingVariableResolver"?>
<?init class="org.zkoss.zkplus.databind.AnnotateDataBinderInit" arg0="winEditarRegionMetropolitana"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>

<zk xmlns="http://www.zkoss.org/2005/zul">
	<window id="winEditarRegionMetropolitana" border="normal"
		apply="${editarRegionMetropolitanaController}" width="500px"
		height="300px" contentStyle="overflow:auto"
		title="${c:l('editarRegionMetropolitanaController.window.title')}">
		<toolbar>
			<hbox spacing="5px" style="padding:1px" align="right">
				<button id="btnApagar" height="20"
					image="/gui/img/remove.png" width="35px"
					tooltiptext="${c:l('editarRegionMetropolitanaController.btnApagar.tooltiptext')}" />
				<button id="btnSalvar" height="20"
					image="/gui/img/save.png" width="35px"
					tooltiptext="${c:l('editarRegionMetropolitanaController.btnSalvar.tooltiptext')}" />
				<button id="btnFechar" height="20"
					image="/gui/img/exit.png" width="35px"
					onClick="winEditarRegionMetropolitana.detach()"
					tooltiptext="${c:l('editarRegionMetropolitanaController.btnFechar.tooltiptext')}" />
			</hbox>
		</toolbar>

		<tabbox id="tb">
			<tabs id="tabs">
				<tab id="A"
					label="${c:l('editarPricingController.tabGen.label')}" />
				<tab id="B"
					label="${c:l('editarPricingController.tabApl.label')}" />
			</tabs>
			<tabpanels>

				<!-- Region Metroplitana -->
				<tabpanel>
					<grid fixedLayout="true">
						<columns>
							<column width="40%" />
							<column width="60%" />
						</columns>
						<rows>
							<row>
								<label id="lbDesc"
									value="${c:l('busquedaRegionMetropolitanaController.lhRegion.label')}" />
								<textbox id="txtDesc"
									 width="100%"
									use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox" />

							</row>
						</rows>
					</grid>
				</tabpanel>

				<!-- Paradas -->
				<tabpanel>
					<grid fixedLayout="true">
						<columns>
							<column width="40%" />
							<column width="60%" />
						</columns>
						<rows>
							<row>
								<label
									value="${c:l('editarRegionMetropolitanaController.lhParada.label')}" />
								<cell>
									<combobox id="cmbParadaCve"
										use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParadaCve"
										mold="rounded" buttonVisible="true" width="30%" />
									<combobox id="cmbParada"
										use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxParada"
										mold="rounded" buttonVisible="true" width="65%" />
								</cell>
							</row>
						</rows>
					</grid>
					<toolbar>
						<hbox spacing="5px" style="padding:1px"
							align="right">
							<button id="btnNovaParada"
								disabled="${arg.isReadOnly}" image="/gui/img/add.png"
								width="35px"
								tooltiptext="${c:l('editarPricingController.btnNovoVigencia.tooltiptext')}" />
							<button disabled="${arg.isReadOnly}"
								id="btnApagarParada" height="20" image="/gui/img/remove.png"
								width="35px"
								tooltiptext="${c:l('editarPricingController.btnApagarPricing.tooltiptext')}" />
						</hbox>
					</toolbar>
					<paging id="pagingParada" pageSize="15" />
					<listbox id="paradaList"
						use="com.rjconsultores.ventaboletos.web.utilerias.MyListbox"
						multiple="false" height="60%">
						<listhead sizable="true">
							<listheader id="lhId" width="15%"
								image="/gui/img/builder.gif"
								label="${c:l('busquedaCatalogoDeParadaController.lhId.label')}"
								sort="auto(paradaId)" />
							<listheader id="lhDesc" width="45%"
								image="/gui/img/builder.gif"
								label="${c:l('busquedaCatalogoDeParadaController.lhDesc.label')}"
								sort="auto(descparada)" />
							<listheader id="lhCveParada" width="45%"
								image="/gui/img/builder.gif"
								label="${c:l('busquedaCatalogoDeParadaController.lbCveParada.label')}"
								sort="auto(cveparada)" />
						</listhead>
					</listbox>

				</tabpanel>

			</tabpanels>
		</tabbox>
	</window>
</zk>
