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

26 lines
799 B
PHP
Raw Normal View History

2018-11-08 20:59:06 -03:00
<?php defined('BLUDIT') or die('Bludit CMS.'); ?>
2015-07-13 23:16:28 -03:00
2018-11-08 20:59:06 -03:00
<?php echo Bootstrap::formOpen(array('id'=>'jsform', 'class'=>'plugin-form')); ?>
2015-07-13 23:16:28 -03:00
2018-11-08 20:59:06 -03: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-13 23:16:28 -03:00
2018-11-08 20:59:06 -03:00
<?php
// Token CSRF
2018-05-16 23:17:41 +02:00
echo Bootstrap::formInputHidden(array(
2015-10-20 00:14:28 -03:00
'name'=>'tokenCSRF',
'value'=>$security->getTokenCSRF()
2015-10-18 19:45:58 -03:00
));
2015-07-13 23:16:28 -03:00
2015-10-18 19:45:58 -03:00
// Print the plugin form
echo $plugin->form();
2018-11-08 20:59:06 -03:00
?>
2015-07-13 23:16:28 -03:00
2018-11-08 20:59:06 -03:00
<?php echo Bootstrap::formClose(); ?>