<h1>{{@page_data['title']}}</h1>
<form name="productcategories_form" class="change_form" action="/productcategories/form" method="POST">
	<input type="hidden" name="id" value="{{@data['id']}}">
	<table>
		<tr>
			<td>
				Родительская категория
			</td>
			<td>
				<select name="parent_id">
					<option value="0">Нет</option>
					<repeat group="{{@productcategories}}" value="{{@cat}}">
						<check if="{{@cat['date_delete']==0}}">
					<option value="{{@cat['id']}}" {{@data['parent_id']==@cat['id']?'selected="selected"':''}}>{{str_repeat('-', @cat['depth'])}}{{@cat['title']}}</option>
						</check>
					</repeat>
				</select>
			</td>
			<td>
				Название*
			</td>
			<td>
				<input type="text" name="title" class="mixed_pay mixed_pay_category_title" pid="category_title" value="{{@data['title']}}" required="required">
			</td>
		</tr>
		<tr>
			<td colspan="4" align="center">
				<check if="{{@base_settings.virtual_keyboard==1}}">
					<true>
				<div class="virtual_keyboard virtual_keyboard_product_form full_keyboard">
				{~@keys='1234567890-+|QWERTYUIOP_|ASDFGHJKL@|ZXCVBNM'~}
					<div class="eng">
					<loop from="{{@i=0}}" to="{{@i<mb_strlen(@keys)}}" step="{{@i++}}">
						<check if="{{@keys[@i]=='|'}}">
							<true>
						<br>
							</true>
							<false>
						<input type="button" class="virtual_key" value="{{@keys[@i]}}" for="mixed_pay_category_title">
							</false>
						</check>
					</loop>
						<button type="button" class="virtual_key_bks" for=" mixed_pay_category_title">
							<i class="fas fa-long-arrow-alt-left"></i>
						</button>
						<input type="button" class="virtual_key_delete" for="mixed_pay_category_title" value="CE">
						<br>
						<input type="button" class="virtual_key_ru" value="RU">
						<input type="button" class="virtual_key virtual_key_space" for="mixed_pay_category_title" value=" ">
						<input type="button" class="virtual_key" for="mixed_pay_category_title" value=",">
						<input type="button" class="virtual_key" for="mixed_pay_category_title" value=".">
						<button type="submit">Сохранить</button>
					</div>
					{~@keys='1234567890-+|ЙЦУКЕНГШЩЗХЪ|ФЫВАПРОЛДЖЭ_|ЯЧСМИТЬБЮ@'~}
					<div class="ru">
						<loop from="{{@i=0}}" to="{{@i<mb_strlen(@keys)}}" step="{{@i++}}">
							{~@a=mb_substr(@keys, @i, 1)~}
							<check if="{{@a=='|'}}">
								<true>
						<br>
								</true>
								<false>
						<input type="button" class="virtual_key" value="{{@a}}" for="mixed_pay_category_title">
								</false>
							</check>
						</loop>
						<button type="button" class="virtual_key_bks" for="mixed_pay_category_title">
							<i class="fas fa-long-arrow-alt-left"></i>
						</button>
						<input type="button" class="virtual_key_delete" for="mixed_pay_category_title" value="CE">
						<br>
						<input type="button" class="virtual_key_eng" value="ENG">
						<input type="button" class="virtual_key virtual_key_space" for="mixed_pay_category_title" value=" ">
						<input type="button" class="virtual_key" for="mixed_pay_category_title" value=",">
						<input type="button" class="virtual_key" for="mixed_pay_category_title" value=".">
						<button type="submit">Сохранить</button>
					</div>
				</div>
					</true>
					<false>
				<p align="center">
					<button type="submit">Сохранить</button>
				</p>
					</false>
				</check>
			</td>
		</tr>
	</table>
</form>
<script type="text/javascript">
$('form[name="productcategories_form"] input[name="title"]').focus();
$('form[name="productcategories_form"] input[name="title"]').select();
</script>
