<%@ page contentType="text/html; charset=UTF-8"%><%@ include file="/WEB-INF/jspf/include/taglibs.jsp"%>

<div style="display: flex; flex-direction: column; padding-bottom: 5px;">
	<form>
	<div class="mt-1">
		<label class="form-label mb-0" for="pswd1">Новый пароль:</label>
		<input type='password' name='pswd1' size='15' class="form-control mt-0" style="width: 100%;" id="pswd1"/>
	</div>
	<div class="mt-1">
		<label class="form-label mb-0" for="pswd2">Повторите пароль:</label>
		<input type='password' name='pswd2' size='15' class="form-control mt-0" style="width: 100%;" id="pswd2"/>
	</div>
	<div class="formButtons">
		<button class="btn btn-primary" onclick="showBlock( 'passwordForm', 'password', { ...passwordQuery, pswd1: this.form.pswd1.value, pswd2: this.form.pswd2.value } ); return false;">Сохранить</button>
	</div>
	</form>
</div>

<c:if test="${not empty status}">
	<div class="alert alert-primary">Пароль изменен!</div>
	<script type="text/javascript">
	showBlock( 'passwordLog', 'log', passwordQuery );
	</script>
</c:if>

<c:if test="${not empty error}"><div class="alert alert-danger" role="alert">${error}</div></c:if>