<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Domain.Host>" %>
<style type="text/css">
    #roomCardForm table th
    {
        font-weight: normal;
        text-align: right;
    }
</style>
<form id="hostForm" class="easyui-form" method="post" data-options="novalidate:true">
<input type="hidden" name="ID" value="<%: Model.ID %>" />
<table style="margin: 1px auto;" cellpadding="1">
    <tr>
        <th align="right">
            <label for="txtRoomNumber">
                <%: Html.Language("RoomNumber") %>：</label>
        </th>
        <td>
            <input id="txtRoomNumber" name="RoomNumber" class="easyui-validatebox textbox text" readonly="readonly"
                value="<%: Model.RoomNumber %>" />
        </td>
    </tr>
    <tr>
        <th align="right">
            <label for="txtExpireTime">
                <%: Html.Language("ExpireTime")%>：</label>
        </th>
        <td>
            <input id="txtExpireTime" name="ExpireTime" class="easyui-datetimebox" data-options="required:true,editable:false"
                value="<%: Model.ExpireTime == null ? "" : Convert.ToDateTime(Model.ExpireTime).ToString("yyyy-MM-dd HH:mm:ss") %>" />
        </td>
    </tr>
</table>
</form>
