<h1>{{@page_data['title']}}</h1>
<form name="rooms_form" action="/rooms/add" method="POST">
	<input type="hidden" name="id" value="{{@room['id']}}">
	<table>
		<tr>
			<td>
				Название зала*
			</td>
			<td>
				<input type="text" required="true" name="title" value="{{@room['title']}}">
			</td>
		</tr>
		<tr>
			<td colspan="2" align="center">
				Размер зала (ряды)
			</td>
		</tr>
		<tr>
			<td>
				Ширина*
			</td>
			<td>
				<select name="w">
					<loop from="{{@i=1}}" to="{{@i<=25}}" step="{{@i++}}">
					<option value="{{@i}}" {{@room['w']==@i?'selected="selected"':''}}>{{@i}}</option>
					</loop>
				</select>
			</td>
		</tr>
		<tr>
			<td>
				Длина*
			</td>
			<td>
				<select name="l">
					<loop from="{{@i=1}}" to="{{@i<=25}}" step="{{@i++}}">
					<option value="{{@i}}" {{@room['l']==@i?'selected="selected"':''}}>{{@i}}</option>
					</loop>
				</select>
			</td>
		</tr>
		<tr>
			<td colspan="2" align="center">
				* обязательное поле
			</td>
		</tr>
		<tr>
			<td colspan="2" align="center">
				<input type="submit" value="Сохранить">
			</td>
		</tr>
	</table>
</form>
