-
Notifications
You must be signed in to change notification settings - Fork 994
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed issue #10400: No plugin settings in survey
- Loading branch information
1 parent
25dcd4c
commit fc089ff
Showing
2 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 32 additions & 0 deletions
32
application/views/admin/survey/subview/accordion/_plugins_panel.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
/** | ||
* Plugin options panel | ||
*/ | ||
?> | ||
<div id='resources' class="tab-pane fade in"> | ||
This comment has been minimized.
Sorry, something went wrong. |
||
<?php | ||
if (isset($pluginSettings)) | ||
{ | ||
foreach ($pluginSettings as $id => $plugin) | ||
{ | ||
$this->widget('ext.SettingsWidget.SettingsWidget', array( | ||
'settings' => $plugin['settings'], | ||
'form' => false, | ||
'title' => sprintf(gT("Settings for plugin %s"), $plugin['name']), | ||
'prefix' => "plugin[{$plugin['name']}]" | ||
|
||
)); | ||
// foreach ($plugin['settings'] as $name => $setting) | ||
// { | ||
// $name = "plugin[{$plugin['name']}][$name]"; | ||
// echo CHtml::tag('li', array(), $PluginSettings->renderSetting($name, $setting, null, true)); | ||
// } | ||
} | ||
|
||
|
||
// Yii::import('application.helpers.PluginSettingsHelper'); | ||
// $PluginSettings = new PluginSettingsHelper(); | ||
} | ||
|
||
?> | ||
</div> |
Are your sure for id ;)
What did you think if we make a tab for each plugin ? I make a test and a pull request :)