{block name=body}
	<div class="row">
		<div class="col-12">
			<form action="{url controller="uzytkownicy" action="edytuj" id=$response_get.id}" method="post">
				{assign var=element_name value=$_MODEL->getElement("name")}
				<div class="form-group">
					<label>Nazwa użytkownika</label>
					<input type="text" name="name" value="{htmlspecialchars($element_name->getValue())}" class="form-control{if $element_name->isError()} is-invalid{/if}" placeholder="Nazwa użytkownika">
					{if $element_name->isError()}<div class="invalid-feedback">{$element_name->getError()}</div>{/if}
				</div>
				{assign var=element_name value=$_MODEL->getElement("email")}
				<div class="form-group">
					<label>Adres e-mail</label>
					<input type="text" name="email" value="{htmlspecialchars($element_name->getValue())}" class="form-control{if $element_name->isError()} is-invalid{/if}" placeholder="Adres e-mail">
					{if $element_name->isError()}<div class="invalid-feedback">{$element_name->getError()}</div>{/if}
				</div>
				{assign var=element_name value=$_MODEL->getElement("password")}
				<div class="form-group">
					<label>Hasło</label>
					<input type="password" name="password" value="{htmlspecialchars($element_name->getValue())}" class="form-control{if $element_name->isError()} is-invalid{/if}" placeholder="Hasło">
					{if $element_name->isError()}<div class="invalid-feedback">{$element_name->getError()}</div>{/if}
				</div>
				{assign var=element_name value=$_MODEL->getElement("repassword")}
				<div class="form-group">
					<label>Powtórz hasło</label>
					<input type="password" name="repassword" value="{htmlspecialchars($element_name->getValue())}" class="form-control{if $element_name->isError()} is-invalid{/if}" placeholder="Powtórz hasło">
					{if $element_name->isError()}<div class="invalid-feedback">{$element_name->getError()}</div>{/if}
				</div>
				{assign var=element_name value=$_MODEL->getElement("active")}
				<div class="form-group">
					<label>Aktywność</label>
					<input type="checkbox" name="active" value="1"{if $element_name->getValue() == "1"} checked{/if} class="form-control{if $element_name->isError()} is-invalid{/if}">
					{if $element_name->isError()}<div class="invalid-feedback">{$element_name->getError()}</div>{/if}
				</div>
				<button type="submit" name="__action" class="btn btn-primary">Zapisz</button>
			</form>
		</div>
	</div>
{/block}