<h1>{{$lang.Store}}</h1>
<form action="?p={{$_GET.p}}" method="post" name="form" id="store-form">
	<fieldset>
		<input type="hidden" name="iStore" value="{{$aStore.iStore}}" />
		<table class="details">
			<tr>
				<th class="name">{{$lang.Name}}</th><td class="value"><input id="store-name" type="text" name="sName" value="{{$aStore.sName}}" size="40" alt="simple" class="input" /></td><td class="help"></td>
			</tr><tr>
				<th class="name">{{$lang.Priority}}</th><td class="value"><input id="store-priority" type="text" name="iPriority" value="{{$aStore.iPriority}}" size="40" alt="simple" class="input" /></td>
				<td class="help"><img class="tTip info" src="templates/images/info.png"  title="{{$lang.help_settings_store_priority}}" /></td>
			</tr><tr>
				<th class="name">{{$lang.AvailableOnStock}}</th><td class="value">
					<select name="iAvailableOnStock">
						<option value="">{{$lang.Default}}</option>
						{{foreach from=$aAvailabilitiesOnStock item=sAvail}}
							<option value="{{$sAvail@key}}" {{if $aStore.iAvailableOnStock == $sAvail@key}}selected="selected"{{/if}}>{{$sAvail}}</option>
						{{/foreach}}
					</select>
				</td>
				<td class="help"><img class="tTip info" src="templates/images/info.png"  title="{{$lang.help_settings_iAvailableOnStock}}" /></td>
			</tr><tr>
				<th class="name">{{$lang.AvailableOutOfStock}}</th><td class="value">
					<select name="iAvailableOutOfStock">
						<option value="">{{$lang.Default}}</option>
						{{foreach from=$aAvailabilities item=sAvail}}
							<option value="{{$sAvail@key}}" {{if $aStore.iAvailableOutOfStock == $sAvail@key}}selected="selected"{{/if}}>{{$sAvail}}</option>
						{{/foreach}}
					</select>
				</td>
				<td class="help"><img class="tTip info" src="templates/images/info.png"  title="{{$lang.help_settings_iAvailableOutOfStock}}" /></td>
			</tr>
			<tr>
				<td colspan="3" class="save"><input type="submit" class="submit" value="&laquo; {{$lang.return}}"  onclick="location.href = '?p=settings-stock'; return false;"> <input type="submit" class="submit" value="{{$lang.Save}} &raquo;" name="sOption" /></td>
			</tr>
		</table>
	</fieldset>
</form>