2014-04-27 15:59:29 +02:00
|
|
|
<form
|
2014-04-29 21:35:29 +02:00
|
|
|
action="<?= \Chibi\Router::linkTo(['UserController', 'deleteAction'], ['name' => $this->context->transport->user->name]) ?>"
|
2014-04-27 15:59:29 +02:00
|
|
|
method="post"
|
|
|
|
class="delete confirmable"
|
|
|
|
autocomplete="off"
|
|
|
|
data-confirm-text="Are you sure you want to delete your account?">
|
|
|
|
|
2013-10-21 23:29:38 +02:00
|
|
|
<?php if ($this->context->user->id == $this->context->transport->user->id): ?>
|
2014-02-16 16:03:13 +01:00
|
|
|
<div class="form-row current-password">
|
|
|
|
<label for="current-password">Current password:</label>
|
2014-04-27 15:59:29 +02:00
|
|
|
<div class="input-wrapper">
|
|
|
|
<input type="password" name="current-password" id="current-password" placeholder="Current password"/>
|
|
|
|
</div>
|
2013-10-21 23:29:38 +02:00
|
|
|
</div>
|
|
|
|
<?php endif ?>
|
|
|
|
|
2013-10-21 23:50:30 +02:00
|
|
|
<input type="hidden" name="submit" value="1"/>
|
2013-10-21 23:29:38 +02:00
|
|
|
|
2014-04-29 21:35:29 +02:00
|
|
|
<?php \Chibi\View::render('message', $this->context) ?>
|
2013-10-21 23:29:38 +02:00
|
|
|
|
2014-02-16 16:03:13 +01:00
|
|
|
<div class="form-row">
|
|
|
|
<label></label>
|
2013-11-30 14:22:49 +01:00
|
|
|
<button class="submit" type="submit">Delete account</button>
|
2013-10-21 23:29:38 +02:00
|
|
|
</div>
|
|
|
|
</form>
|