2015-10-19 00:45:58 +02:00
|
|
|
<?php
|
2015-07-14 04:16:28 +02:00
|
|
|
|
2017-05-27 19:46:46 +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',
|
2015-11-28 15:47:03 +01:00
|
|
|
'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
|
2017-05-27 19:46:46 +02:00
|
|
|
echo $plugin->form();
|
2015-07-14 04:16:28 +02:00
|
|
|
|
2017-06-19 23:14:38 +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
|
|
|
|
2015-11-28 15:47:03 +01:00
|
|
|
HTML::formClose();
|