<h1>{{$lang.Vats}}</h1>
<a href="?p=vat-form" class="new_element">{{$lang.New_vat}}</a>
{{if count( $aVats ) > 0}}
	<form action="?p={{$_GET.p}}" method="post">
		<fieldset>
			<table class="list">
				<thead>
					<tr>
						<th class="id">{{$lang.Id}}</th><th class="name">{{$lang.Name}}</th><th>{{$lang.Vat_value}}</th><th class="actions">{{$lang.Actions}}</th>
					</tr>
				</thead>
				<tbody>
					{{foreach from=$aVats item=aVat}}
						<tr>
							<td class="id">{{$aVat.iVat}}</td><td class="name"><a href="?p={{$aActions.f}}-form&amp;iVat={{$aVat.iVat}}">{{$aVat.sVatText}}</a></td><td class="margin">{{$aVat.sVatValue}}</td>
							<td class="actions">
								<a href="?p={{$aActions.f}}-form&amp;iVat={{$aVat.iVat}}"><img src="{{$config.dir_templates}}admin/images/ico/edit.png" alt="{{$lang.Edit}}" title="{{$lang.Edit}}" /></a>
								<a href="?p={{$aActions.f}}-delete&amp;iVat={{$aVat.iVat}}" class="delete" onclick="return del( );"><img src="{{$config.dir_templates}}admin/images/ico/delete.png" alt="{{$lang.Delete}}" title="{{$lang.Delete}}"/></a>
							</td>
						</tr>
					{{/foreach}}
				</tbody>
			</table>
		</fieldset>
	</form>
{{else}}
	<div class="msg" id="error">
		<img src="{{$config.dir_templates}}admin/images/ico/msg_error.png" class="imgv" alt="" /> {{$lang.Data_not_found}}
	</div>
{{/if}}