-
Notifications
You must be signed in to change notification settings - Fork 988
/
configure.php
28 lines (26 loc) · 1.43 KB
/
configure.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<div class="pagetitle h3"><?php echo sprintf(gT("Settings for plugin: %s"), $plugin['name']); ?></div>
<div class="col-md-6 col-md-offset-1">
<?php
$title = isset($properties['pluginName']) ? sprintf(gT("Settings for plugin: %s"), $properties['pluginName']) : null;
if (is_null($title)) $title = isset($plugin['name']) ? sprintf(gT("Settings for plugin %s"), $plugin['name']) : null;
$this->widget('ext.SettingsWidget.SettingsWidget', array(
'settings' => $settings,
'formHtmlOptions' => array(
'id' => "pluginsettings-{$plugin['name']}",
),
'labelWidth'=>4,
'controlWidth'=>6,
'method' => 'post',
'additionalHtml' => "
<div class='form-group'>
<div class='col-sm-6 col-md-offset-4'>
". (Permission::model()->hasGlobalPermission('settings','update')?"
<button name='save' class='btn btn-success' type='submit'><span class='glyphicon glyphicon-ok'></span> ".gT('Save')."</button>
<button name='redirect' value='" . App()->createUrl("admin/pluginmanager/sa/index") . "' class='btn btn-default' type='submit'><span class='glyphicon glyphicon-saved'></span> ".gT('Save and close')."</button>
":'')."
<a class='btn btn-danger' href='" . App()->createurl('admin/pluginmanager/sa/index') . "'>".gT('Close')."</a>
</div>
</div>"
));
?>
</div>