<h1>{{@page_data['title']}}</h1>
<form name="usergroups_form" class="change_form" action="/usergroups/form" method="POST">
	<input type="hidden" name="id" value="{{@data['id']}}">
	<table>
		<tr>
			<td>
				Название*
			</td>
			<td>
				<input type="text" name="title" class="mixed_pay mixed_pay_title" pid="title" value="{{@data['title']}}" style="width: 100%;">
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<p align="center">Права доступа</p>
				<p align="center">
					<button type="button" class="select_all" data-select="modules">
						<i class="far fa-check-square"></i>
						Выделить все
					</button>
					<button type="button" class="unselect_all" data-select="modules">
						<i class="far fa-square"></i>
						Снять выделение
					</button>
				</p>
				<div class="sno_div">
					<repeat group="{{@modules}}" key="{{@value}}" value="{{@m}}">
						<check if="{{@m['autonomous']}}">
						<p>
							<label>
								<input type="checkbox" name="modules[]" class="modules" value="{{@value}}" {{is_array(@data['modules_data']) && in_array(@value, @data['modules_data'])?'checked="checked"':''}}>
								{{@m['title']}}
							</label>
						</p>
						</check>
					</repeat>
				</div>
			</td>
		</tr>
		<tr>
			<td colspan="2" 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_title">
							</false>
						</check>
					</loop>
						<button type="button" class="virtual_key_bks" for=" mixed_pay_title">
							<i class="fas fa-long-arrow-alt-left"></i>
						</button>
						<input type="button" class="virtual_key_delete" for="mixed_pay_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_title" value=" ">
						<input type="button" class="virtual_key" for="mixed_pay_title" value=",">
						<input type="button" class="virtual_key" for="mixed_pay_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_title">
								</false>
							</check>
						</loop>
						<button type="button" class="virtual_key_bks" for="mixed_pay_title">
							<i class="fas fa-long-arrow-alt-left"></i>
						</button>
						<input type="button" class="virtual_key_delete" for="mixed_pay_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_title" value=" ">
						<input type="button" class="virtual_key" for="mixed_pay_title" value=",">
						<input type="button" class="virtual_key" for="mixed_pay_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="usergroups_form"] input[name="title"]').focus();
$('form[name="usergroups_form"] input[name="title"]').select();
</script>
