There is an issue with plugin enable/disable/enable. Plugin modules are not reloaded, because of Python import cache. It's OK, we can probably resolve this.
29 lines
727 B
HTML
29 lines
727 B
HTML
{% extends "index.html" %}
|
|
|
|
{% block workspace_header %}{{ plugin_name }}{% endblock %}
|
|
|
|
{% block workspace_content %}
|
|
Enabled: <form method="POST" action="{{ url_for('toggle_plugin', name=plugin_name) }}">
|
|
<input type="checkbox" name="enabled" onchange="this.form.submit()" {% if is_enabled %}checked{% endif %} />
|
|
</form>
|
|
|
|
{% if is_enabled %}
|
|
<h2>Configuration</h2>
|
|
|
|
{% if config_unique %}
|
|
<h3>Unique settings</h3>
|
|
{% for key, value in config_unique.items() %}
|
|
<p>{{ key }}: <pre>{{ value }}</pre></p>
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
{% if config_defaults %}
|
|
<h3>Default settings</h3>
|
|
{% for key, value in config_defaults.items() %}
|
|
<p>{{ key }}: <pre>{{ value }}</pre></p>
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
{% endif %}
|
|
{% endblock %}
|