koblog/bl-kernel/admin/views/plugins-settings.php

52 lines
1.8 KiB
PHP
Raw Normal View History

2018-11-09 00:59:06 +01:00
<?php defined('BLUDIT') or die('Bludit CMS.'); ?>
2015-07-14 04:16:28 +02:00
<script>
// ============================================================================
// Variables for the view
// ============================================================================
// ============================================================================
// Functions for the view
// ============================================================================
// ============================================================================
// Events for the view
// ============================================================================
$(document).ready(function() {
// No events for the view yet
});
// ============================================================================
// Initlization for the view
// ============================================================================
$(document).ready(function() {
// No initialization for the view yet
});
</script>
<?php echo Bootstrap::formOpen(array('name' => 'pluginSettings')); ?>
<div class="d-flex align-items-center mb-3">
<h2 class="m-0"><i class="bi bi-node-plus"></i><?php echo $plugin->name() ?></h2>
<?php if ($plugin->formButtons()) : ?>
<div class="ms-auto">
<button type="submit" class="btn btn-primary btn-sm" name="save"><?php $L->p('Save') ?></button>
<a class="btn btn-secondary btn-sm" href="<?php echo HTML_PATH_ADMIN_ROOT . 'plugins' ?>" role="button"><?php $L->p('Cancel') ?></a>
</div>
2018-11-09 00:59:06 +01:00
<?php endif; ?>
</div>
2015-07-14 04:16:28 +02:00
2018-11-09 00:59:06 +01:00
<?php
2018-05-16 23:17:41 +02:00
echo Bootstrap::formInputHidden(array(
'name' => 'tokenCSRF',
'value' => $security->getTokenCSRF()
2015-10-19 00:45:58 +02:00
));
2015-07-14 04:16:28 +02:00
if ($plugin->description()) {
echo '<div class="alert alert-primary" role="alert">'.$plugin->description().'</div>';
}
echo $plugin->form();
2018-11-09 00:59:06 +01:00
?>
2015-07-14 04:16:28 +02:00
2018-11-09 00:59:06 +01:00
<?php echo Bootstrap::formClose(); ?>