2014-04-27 15:59:29 +02:00
|
|
|
<form
|
|
|
|
action="<?= \Chibi\UrlHelper::route('user', 'delete', ['name' => $this->context->transport->user->name]) ?>"
|
|
|
|
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
|
|
|
|
2013-11-16 18:40:26 +01:00
|
|
|
<?php $this->renderFile('message') ?>
|
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>
|