bludit/bl-kernel/admin/views/configure-plugin.php

26 lines
799 B
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
2018-11-09 00:59:06 +01:00
<?php echo Bootstrap::formOpen(array('id'=>'jsform', 'class'=>'plugin-form')); ?>
2015-07-14 04:16:28 +02:00
2018-11-09 00:59:06 +01:00
<div class="align-middle">
<?php if ($plugin->formButtons()): ?>
<div class="float-right mt-1">
<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>
<?php endif; ?>
<?php echo Bootstrap::pageTitle(array('title'=>$plugin->name(), 'icon'=>'cog')); ?>
</div>
2015-07-14 04:16:28 +02:00
2018-11-09 00:59:06 +01:00
<?php
// Token CSRF
2018-05-16 23:17:41 +02:00
echo Bootstrap::formInputHidden(array(
2015-10-20 05:14:28 +02:00
'name'=>'tokenCSRF',
'value'=>$security->getTokenCSRF()
2015-10-19 00:45:58 +02:00
));
2015-07-14 04:16:28 +02:00
2015-10-19 00:45:58 +02:00
// Print the plugin form
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(); ?>