<h1>{{$lang.Attributes_values_group}}</h1>
<form action="?p={{$_GET.p}}" method="post" name="form" id="values-groups-form" >
	<fieldset>
		<input type="hidden" name="iFilterGroup" value="{{$aGroup.iFilterGroup}}" />
		<input type="hidden" name="iAttribute" value="{{$aGroup.iAttribute}}" />
		<table class="details">
			<thead>
				<tr>
					<th class="name">{{$lang.Name}}</th>
					<td class="value"><input id="groups-name" type="text" name="sValue" value="{{$aGroup.sValue}}" size="80" maxlength="255" class="input" /></td>
					<td class="help"></td>
				</tr><tr>
					<th class="name">{{$lang.Position}}</th>
					<td class="value"><input id="groups-position" type="text" name="iPosition" value="{{$aGroup.iPosition}}" class="input" /></td>
					<td class="help"><img class="tTip info" src="templates/images/info.png"  title="{{$lang.help_attribute_position}}" /></td>
				</tr>
			</thead>
			<tfoot>
				<tr class="actions">
					<td colspan="3" class="save"><input type="submit" class="submit" value="&laquo; {{$lang.return}}" onclick="location.href = '?p=attributes-form&amp;iAttribute={{$aGroup.iAttribute}}'; return false;" /> <input type="submit" class="submit" value="{{$lang.Save}} &raquo;" name="sOption" /></td>
				</tr>
			</tfoot>
			<tbody>
				<tr>
					<td colspan="3">
						<ul id="AttributesValuesList">
							{{foreach from=$aGeneralInfo.aAttributesValues item=sValue}}
								<li><label><input name="aValues[]" value="{{$sValue@key}}" type="checkbox" {{if in_array( $sValue@key, $aGroup.aValues )}}checked="checked"{{/if}} />{{$sValue}}</label></li>
							{{/foreach}}
						</ul>
					</td>
				</tr>
			</tbody>
		</table>
	</fieldset>
</form>