<script type="text/javascript">
	$(document).ready(function(){
		$("form#vat-form").validate();
		$("form#vat-form #vat-name").rules("add", {required: true});
		$("form#vat-form #vat-value").rules("add", {required: true});
	});
</script>
<h1>{{$lang.Edit_vat}}</h1>
<form action="?p={{$_GET.p}}" method="post" id="vat-form" >
	<fieldset>
		<input type="hidden" name="iVat" value="{{$aVat.iVat}}" />
		<table class="details">
			<tr>
				<th class="name">{{$lang.Name}}</th><td class="value"><input id="vat-name" type="text" name="sVatText" value="{{$aVat.sVatText}}" class="input" size="50" maxlength="40" alt="simple" /></td><td class="help"></td>
			</tr><tr>
				<th class="name">{{$lang.Vat_value}}</th><td class="value"><input id="vat-value" type="text" name="sVatValue" value="{{$aVat.sVatValue}}" class="input" size="50" maxlength="40" alt="float" /></td><td class="help"><img class="tTip info" src="templates/images/info.png"  title="{{$lang.help_vat_value}}" /></td>
			</tr>
		</table>
		<div class="save float"><div class="save floatcontainer">
		<input type="submit" class="submit" value="&laquo; {{$lang.return}}" onclick="location.href = '?p=vat-list'; return false;"> <input type="submit" class="submit" value="{{$lang.Save}} &raquo;" name="sOption" />
		</div></div>
	</fieldset>
</form>