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

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

        <grid fixedLayout="true">
            <columns>
                <column width="25%" />
                <column width="75%" />
            </columns>
            <rows>
                <row>
                    <label id="lbNome" value="${c:l('editarHotelController.lhDesc.label')}"/>
                    <textbox id="txtNome" constraint="no empty" width="90%" maxlength="100"
                             value="@{winEditarHotel$composer.hotel.deschotel}"
                             use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
                </row>
                <row>
                    <label id="lbDesctelefone" value="${c:l('editarHotelController.lhDesctelefone.label')}"/>
                    <textbox id="txtDesctelefone" constraint="no zero" width="30%" maxlength="15"
                             value="@{winEditarHotel$composer.hotel.desctelefone}"
                             use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
                </row>
                <row>
                    <label id="lbCep" value="${c:l('editarHotelController.lhCep.label')}"/>
                    <textbox id="txtCep" width="25%" maxlength="8"
                             value="@{winEditarHotel$composer.hotel.cep}"
                             use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
                </row>
                <row>
                    <label id="lbEndereco" value="${c:l('editarHotelController.lhEndereco.label')}"/>
                    <textbox id="txtEndereco" width="90%" maxlength="100"
                             value="@{winEditarHotel$composer.hotel.endereco}"
                             use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
                </row>
                <row>
                    <label id="lbNumero" value="${c:l('editarHotelController.lhNumero.label')}"/>
                    <textbox id="txtNumero" width="25%" maxlength="10"
                             value="@{winEditarHotel$composer.hotel.numero}"
                             use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
                </row>
                <row>
                    <label id="lbComplemento" value="${c:l('editarHotelController.lhComplemento.label')}"/>
                    <textbox id="txtComplemento" width="50%" maxlength="20"
                             value="@{winEditarHotel$composer.hotel.complemento}"
                             use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
                </row>
                <row>
                    <label id="lbBairro" value="${c:l('editarHotelController.lhBairro.label')}"/>
                    <textbox id="txtBairro" width="90%" maxlength="50"
                             value="@{winEditarHotel$composer.hotel.bairro}"
                             use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
                </row>
                <row>
                    <label id="lbCidade" value="${c:l('editarHotelController.lhCidade.label')}"/>
                    <textbox id="txtCidade" width="90%" maxlength="50"
                             value="@{winEditarHotel$composer.hotel.cidade}"
                             use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
                </row>
                <row>
                    <label id="lbEstado" value="${c:l('editarHotelController.lhEstado.label')}"/>
                    <textbox id="txtEstado" width="90%" maxlength="50"
                             value="@{winEditarHotel$composer.hotel.estado}"
                             use="com.rjconsultores.ventaboletos.web.utilerias.MyTextbox"/>
                </row>
            </rows>
        </grid>
    </window>
</zk>
