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

25 lines
597 B
PHP
Raw Normal View History

2015-10-19 00:45:58 +02:00
<?php
2015-07-14 04:16:28 +02:00
HTML::title(array('title'=>$plugin->name(), 'icon'=>'puzzle-piece'));
2015-07-14 04:16:28 +02:00
2015-10-19 00:45:58 +02:00
HTML::formOpen(array('id'=>'jsformplugin'));
2015-07-14 04:16:28 +02:00
2015-10-19 00:45:58 +02:00
// Security token
HTML::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();
2015-07-14 04:16:28 +02:00
if($plugin->formButtons()) {
// Form buttons
echo '<div class="uk-form-row uk-margin-bottom">
<button class="uk-button uk-button-primary" type="submit">'.$L->g('Save').'</button>
<a class="uk-button" href="'.HTML_PATH_ADMIN_ROOT.'plugins">'.$L->g('Cancel').'</a>
</div>';
}
2015-10-19 00:45:58 +02:00
HTML::formClose();