<?php defined('C5_EXECUTE') or die("Access Denied.");
$h = Loader::helper('concrete/dashboard');
$ih = Loader::helper('concrete/ui');
$form = Loader::helper('form');
?>
<form id="permissions-form" action="<?php echo $view->action('enable_advanced_permissions')?>" method="post">
<?php echo Loader::helper('validation/token')->output('enable_advanced_permissions')?>
<?php if (Config::get('concrete.permissions.model') != 'simple') { ?>
    <p><?php echo t('Advanced permissions are turned on.')?></p>
<?php } else { ?>
    <p><?php echo t('Advanced permissions are turned off. Enable them below.')?></p>
    <br/>
    <div class="alert alert-warning">
    <?php echo t('<strong>Note:</strong> Once enabled, advanced permissions cannot be turned off.')?>
    </div>
<?php } ?>

<?php if (Config::get('concrete.permissions.model') == 'simple') { ?>
<div class="ccm-dashboard-form-actions-wrapper">
    <div class="ccm-dashboard-form-actions">
<?php
	$submit = $ih->submit( t('Enable Advanced Permissions'), 'permissions-form', 'right', 'btn-primary');
	print $submit;
?>
</div>
</div>

<?php } ?>
</form>