summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorSimo Sorce <simo@redhat.com>2014-10-10 15:52:01 -0400
committerPatrick Uiterwijk <puiterwijk@redhat.com>2014-10-24 18:02:20 +0200
commitcecf9f6c60a048f4f7c947a969f1610695d1d3be (patch)
tree3f70a3a3aed024a2f5cbca34b39d860b73ef4c7a /templates
parent19d7bd78989ae6ee603ff4f49517fd25f6bc79d0 (diff)
downloadipsilon.git-cecf9f6c60a048f4f7c947a969f1610695d1d3be.tar.gz
ipsilon.git-cecf9f6c60a048f4f7c947a969f1610695d1d3be.tar.xz
ipsilon.git-cecf9f6c60a048f4f7c947a969f1610695d1d3be.zip
Do not overwrite default plugin options
Change the admin plugin to not overwrite the plugin default options, and only use the sanctioned pluginObject interfaces to read/write config values. Signed-off-by: Simo Sorce <simo@redhat.com> Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/admin/plugin_config.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/admin/plugin_config.html b/templates/admin/plugin_config.html
index d95bf75..70d56f0 100644
--- a/templates/admin/plugin_config.html
+++ b/templates/admin/plugin_config.html
@@ -12,9 +12,9 @@
{% for o in options_order %}
<div class="form-group">
<label for="{{ o }}">{{ o }}:</label>
- <input type="text" class="form-control" name="{{ o }}" value="{{ options[o][2] }}">
+ <input type="text" class="form-control" name="{{ o }}" value="{{ plugin.get_config_value(o) }}">
</div>
- <span class="help-block">{{ options[o][0] }}</span>
+ <span class="help-block">{{ plugin.get_config_desc(o) }}</span>
{% endfor %}
<button id="submit" class="btn btn-primary" name="submit" type="submit" value="Submit">