2013-11-30 14:22:49 +01:00
< form action = " <?php echo \Chibi\UrlHelper :: route ( 'user' , 'delete' , [ 'name' => $this -> context -> transport -> user -> name ]) ?> " method = "post" class = "delete aligned 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 ) : ?>
< div class = "current-password" >
< label class = "left" for = "current-password" > Current password:< / label >
< div class = "input-wrapper" > < input type = "password" name = "current-password" id = "current-password" placeholder = "Current password" / > < / div >
< / 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
< div >
< label class = "left" > < / 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 >