{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=stateedit&id={$stateedit.id}" name="stateedit" id="stateedit">
	<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="stateedit[name]" value="{$stateedit.name|escape}" form="stateedit"
					{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="stateedit[description]" form="stateedit" cols="45" rows="4"
					{tip text="Enter additional information (optional)"}>{$stateedit.description|escape}</textarea>
			</td>
		</tr>
		<tr>
			<td colspan="3" class="lms-ui-box-buttons">
				{button type="submit" form="stateedit" label="Submit" icon="save" accesskey="s"}
				{button label="Cancel" icon="cancel" href="?m=statelist"}
			</td>
		</tr>
	</tbody>
</table>
<script>

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

</script>
{/block}
