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