This repository has been archived on 2024-10-25. You can view files and clone it, but cannot push or open issues or pull requests.
Sequenzia/app/views/user/change_password.php
2013-10-26 18:06:58 -05:00

30 lines
1.1 KiB
PHP
Executable File

<?php $this->provide('title', $this->t('.title')) ?>
<h1><?= $this->t('.title') ?></h1>
<div id="user-edit">
<?= $this->formTag([ 'action' => 'update' ], function() { ?>
<?= $this->hiddenField('render', 'view', ['value' => 'change_password']) ?>
<?= $this->partial('shared/error_messages', ['object' => current_user()]) ?>
<table>
<tbody>
<tr>
<th><label for="user_current_password">Current password</label></th>
<td><?= $this->passwordField('user', 'current_password') ?></td>
</tr>
<tr>
<th><label for="user_password"><?= $this->t('.new_password') ?></label></th>
<td><?= $this->passwordField('user', 'password') ?></td>
</tr>
<tr>
<th><label for="user_password">Password confirmation</label></th>
<td><?= $this->passwordField('user', 'password_confirmation') ?></td>
</tr>
<tr>
<td><?= $this->submitTag($this->t('buttons.save')) ?> <?= $this->submitTag($this->t('buttons.cancel')) ?></td>
</tr>
</tbody>
</table>
<?php }) ?>
</div>
<?= $this->partial("footer") ?>