<div class="messages_access_closed">
	<h1>{{@page_data.title}}</h1>
	<p align="center">У вас нет доступа к данному действию.</p>
	<br>
	<p align="center">Выполнить от лица другого пользователя?</p>
	<p align="center">
		<input type="button" class="show_div hide_div btn-primary" data-showdiv=".users_list" data-hidediv=".messages_access_closed" value="Да">
		<input type="button" class="close" value="Нет">
	</p>
</div>
<div class="users_list hide" href="{{@URI}}">
	<div class="reload">
		<repeat group="{{@users}}" value="{{@user}}">
		<p><button type="button" class="user_autorization" data-id="{{@user.id}}" data-pass="{{@user.pass!=''?1:0}}">{{@user.name}}</button></p>
		</repeat>
		<p>
			<button type="button" class="close btn-primary" style="min-width: 100%; width: 100%;">
				Отменить
			</button>
		</p>
	</div>
</div>
<form name="form_autorization" action="{{@PATH}}" method="{{@POST?'POST':'GET'}}">
	<repeat group="{{@REQUEST}}" key="{{@key}}" value="{{@value}}">
	<input type="hidden" name="{{@key}}" value="{{@value}}">
	</repeat>
	<input type="hidden" name="user_id" autocomplete="off">
	<input type="hidden" name="user_pass" class="user_pass" autocomplete="off">
</form>
<div class="autorization_input_pass popup hide">
	<div class="popup_area">
		<h1>Введите пароль</h1>
		<input type="text" class="input_pass" autocomplete="off" placeholder="Пароль">
		<div class="virtual_keyboard" align="center">
			<input type="button" class="virtual_key" value='7' for='input_pass'>
			<input type="button" class="virtual_key" value='8' for='input_pass'>
			<input type="button" class="virtual_key" value='9' for='input_pass'>
			<br>
			<input type="button" class="virtual_key" value='4' for='input_pass'>
			<input type="button" class="virtual_key" value='5' for='input_pass'>
			<input type="button" class="virtual_key" value='6' for='input_pass'>
			<br>
			<input type="button" class="virtual_key" value='1' for='input_pass'>
			<input type="button" class="virtual_key" value='2' for='input_pass'>
			<input type="button" class="virtual_key" value='3' for='input_pass'>
			<br>
			<input type="button" class="virtual_key_delete" for='input_pass' value="CE">
			<input type="button" class="virtual_key" value='0' for='input_pass'>
			<button type="button" class="virtual_key_bks" for='input_pass'>
				<i class="fas fa-long-arrow-alt-left"></i>
			</button>
		</div>
		<button type="button" class="autorization_input_pass_ok btn-primary">
			Войти
		</button>

		<button type="button" class="autorization_input_pass_close">
			Отменить
		</button>
	</div>
</div>
<script type="text/javascript" src="/ui/scripts/users.js?v={{@site_version}}"></script>
<script>
$('.close_button', $('.messages_access_closed').closest('.popup')).hide();
</script>