<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<dynamic>" %>

<style type="text/css">
	#roomTypeAirForm  table {
		margin: 10px auto;	
	}
	#roomTypeAirForm  table th {
		font-weight: normal;
		cursor: default;
	}
</style>

<form id="roomTypeAirForm">
	<input type="hidden" name="ID" value="<%: Model.ID %>" />
	<input type="hidden" name="RoomTypeID" value="<%: Model.RoomType == null ? 0 : Model.RoomType.ID %>" />
	<table cellpadding="5px">
		<tr>
			<th><%: Html.Language("ConfigurationName")%></th>
			<td>
				<select id="cbxModalType" name="ModalTypeID" class="easyui-combobox" style="width:60px;"
					data-options="
						required: true,
						editable: false,
						panelHeight: 'auto',
						url: '/RoomType/LoadModalTypes/',
						valueField: 'ID',
						textField: 'Name',
						value: <%: Model.ModalType != null ? Model.ModalType.ID.ToString() : "''" %>
					">
				</select>
			</td>
		</tr>
		<tr>
			<th><label for="txtCustomName"><%: Html.Language("CustomName")%></label></th>
			<td><input id="txtCustomName" name="CustomName" class="easyui-validatebox textbox text" data-options="required:true" style="width:100px;" value='<%: Model.CustomerName ?? "" %>' /></td>
		</tr>
		<tr>
			<th><label for="txtEnglishName"><%: Html.Language("EnglishName")%></label></th>
			<td><input id="txtEnglishName" name="EnglishName" class="easyui-validatebox textbox text" style="width:100px;" value='<%: Model.EnglishName ?? "" %>' /></td>
		</tr>
		<tr>
			<th><label for="txtSort"><%: Html.Language("Sort")%></label></th>
			<td><input id="txtSort" name="Sort" class="easyui-numberspinner textbox text" data-options="required:true" style="width:100px;" value='<%: Model.Sort %>' /></td>
		</tr>
	</table>
</form>