<?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="winEditarColonia"?>
<?taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c"?>

<zk xmlns="http://www.zkoss.org/2005/zul">
    <window id="winEditarColonia" border="normal"
            apply="${editarColoniaController}"
            width="400px"  height="457x" contentStyle="overflow:auto"
            title="${c:l('editarColoniaController.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('editarColoniaController.btnApagar.tooltiptext')}"/>
                <button id="btnSalvar" height="20"
                        image="/gui/img/save.png" width="35px"
                        tooltiptext="${c:l('editarColoniaController.btnSalvar.tooltiptext')}"/>
                <button id="btnFechar" height="20"
                        image="/gui/img/exit.png" width="35px"
                        onClick="winEditarColonia.detach()"
                        tooltiptext="${c:l('editarColoniaController.btnFechar.tooltiptext')}"/>
            </hbox>
        </toolbar>

        <grid fixedLayout="true">
            <columns>
                <column width="40%" />
                <column width="60%" />
            </columns>
            <rows>
                <row>
                    <label value="${c:l('editarColoniaController.lbNome.value')}"/>
                    <textbox id="txtNome" constraint="no empty" width="80%" maxlength="50"
                             value="@{winEditarColonia$composer.colonia.desccolonia}"
                             use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
                </row>
                <row>
                    <label value="${c:l('editarColoniaController.lhCodPostal.label')}"/>
                    <intbox id="codpostal" constraint="no empty, no negative" width="80%" maxlength="8"
                             value="@{winEditarColonia$composer.colonia.codpostal}"/>
                </row>
                <row  visible="false">
                    <label value="${c:l('editarColoniaController.lhEquivalencia.label')}" />
                    <textbox id="equivalenciaId" width="80%" maxlength="10" 
                             value="@{winEditarColonia$composer.colonia.equivalenciaId}"
                             use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
                </row>
                <row>
                    <label value="${c:l('editarColoniaController.lhCiudad.label')}"/>
                    <combobox id="cmbCiudad" constraint="no empty"
                        mold="rounded" buttonVisible="true" width="80%"
                        use="com.rjconsultores.ventaboletos.web.utilerias.MyComboboxCiudad"/>
                </row>
               
            </rows>
        </grid>
    </window>
</zk>
