<?php
$url = $this->url('roles/manage', array('action' => 'burn', 'id'  => $this->role->id));
if (!$this->isXhr) : 
    
    $title = 'Burn - Roles';
    $this->headTitle($title);
    
?>
<?php endif; ?>
<form method="post" action="<?php echo $url; ?>" id="form-burn">
	<input type="hidden" name="id" value="<?php echo (int) $this->role->id; ?>">
	<div class="panel panel-danger text-center <?php echo $this->isXhr ? 'panel-ajax' : ''; ?>">
		<div class="panel-heading">
            <h4>Warning!</h4>
        </div>
        <div class="panel-body">
            <p>Are you sure that you will burn (permanently delete) this Role named <strong><?php echo $this->escapeHtml($this->role->name); ?></strong>?
            This action cannot be undone!</p>
            <div class="actions">
                <?php if ($this->isXhr) :?>
                <button type="button" class="btn btn-danger" name="burn" value="y"><i class="fa fa-warning"></i> Yes</button>
                <button type="button" class="btn btn-default" name="burn" value="n" data-dismiss="modal"><i class="fa fa-times"></i> No</button>
                <?php else : ?>
                <button type="submit" class="btn btn-danger" name="burn" value="y"><i class="fa fa-warning"></i> Yes</button>
                <button type="submit" class="btn btn-default" name="burn" value="n"><i class="fa fa-times"></i> No</button>
                <?php endif; ?>
            </div>
        </div>
	</div>
</form>
