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

<div id="passwordResult"></div>

<%@include file="../include/error.jsp" %>

<div style="margin: 10px auto;"><button class="btn btn-secondary" onclick="showBlock( 'inetRoot', 'accountList', inetQuery ); return false;">К списку...</button></div>			

<div class="tile">
<c:choose>
	<c:when test="${not empty account}">
		<bg:blockTitle title="Смена пароля"/>
		<div class="titleFont2" style="margin: 10px 0px 25px 0px; font-size: 1.2rem;">Аккаунт: <span style="font-weight: bold;">${account.title}</span></div>
		<form style="margin: 10px auto; max-width: 20rem;">
			<div class="password"><span>Старый пароль:</span><br><input type='password' name='pswd0' maxlength='15'/></div>
       		<div class="password"><span>Новый пароль:</span><br><input type='password' name='pswd1' maxlength='15'/></div>
			<div class="password"><span>Повторите пароль:</span><br><input type='password' name='pswd2' maxlength='15'/></div>
			<div class="formButtons"><button class="btn btn-primary" onclick="showBlock( 'passwordResult', 'changePassword', { ...inetQuery, accountId: ${account.id}, pswd0: this.form.pswd0.value, pswd1: this.form.pswd1.value, pswd2: this.form.pswd2.value } ); return false;">Сменить пароль</button></div>
		</form>
	</c:when>
	<c:otherwise><bg:dataNotFound/></c:otherwise>
</c:choose>
</div>
