{extends file="layout.html"}
{block name=title}LMS: {$layout.pagetitle|striphtml}{/block}
{block name=module_content}
<!--// $Id$ //-->
<h1>{$layout.pagetitle}</h1>
<form method="POST" action="?m=stateadd" name="stateadd" id="stateadd">
	<input type="submit" class="hiddenbtn">
</form>
<table class="lmsbox">
	<colgroup>
		<col style="width: 1%;">
		<col style="width: 1%;">
		<col style="width: 98%;">
	</colgroup>
	<thead>
		<tr>
			<td>
				{icon name="location"}
			</td>
			<td>
				<strong>{trans("Name")}</strong>
			</td>
			<td>
				<input type="text" name="stateadd[name]" value="{$stateadd.name|escape}" form="stateadd"
					{tip text="Enter state name" trigger="name" bold=1}>
			</td>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td>
				{icon name="info"}
			</td>
			<td class="nobr">
				<strong>{trans("Description")}</strong>
			</td>
			<td>
				<textarea name="stateadd[description]" form="stateadd" cols="45" rows="4"
					{tip text="Enter additional information (optional)"}>{$stateadd.description|escape}</textarea>
			</td>
		</tr>
		<tr>
			<td colspan="3" class="lms-ui-box-buttons">
				{button type="submit" form="stateadd" accesskey="s" label="Submit" icon="save"}
				{button label="Cancel" icon="cancel" href="?m=statelist"}
				<br>
				<label>
					<input type="checkbox" name="stateadd[reuse]" form="stateadd" value="ON"
						{if $stateadd.reuse} checked{/if}>
					{trans("Display this form again, when this state is saved")}
				</label>
			</td>
		</tr>
	</tbody>
</table>
<script>

	$(function() {
		$('[name="stateadd[name]"]').focus();
	});

</script>
{/block}
