<script type="text/javascript">
$(document).ready(function(){
	$("form#language-form").validate();
	$("form#language-form #language-short").rules("add", {required: true});
	$("form#language-form #language-clone").rules("add", {required: true});
});
</script>
<h1>{{$lang.New_language}}</h1>
<form action="?p={{$_GET.p}}" method="post" id="language-form" >
	<fieldset>
		<table class="details">
			<tr>
				<th class="name">{{$lang.Language}}</th><td class="value"><input id="language-short" type="text" name="language" value="" class="input" size="3" maxlength="2" alt="simple" /></td><td class="help"></td>
			</tr>
			<tr>
				<th class="name">{{$lang.Use_language}}</th>
				<td class="value">
					<select id="language-clone" name="language_from">
						{{foreach from=$aLanguages item=sLang}}
							<option value="{{$sLang}}"{{if $sLang == $sLanguage}}selected="selected"{{/if}}>{{$sLang}}</option>
						{{/foreach}}
					</select>
				</td>
				<td class="help"></td>
			</tr>
		</table>
		<div class="save float"><div class="save floatcontainer">
		<input type="submit" class="submit" value="&laquo; {{$lang.return}}"  onclick="location.href = '?p=lang-list'; return false;"> <input type="submit" class="submit" value="{{$lang.Save}} &raquo;" name="sOption" />
		</div></div>
	</fieldset>
</form>