mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
show inactive plugins in ui
This commit is contained in:
parent
b706ed2312
commit
55b4ba6207
@ -18,6 +18,12 @@ def plugin_list(*args, **kwargs):
|
||||
return djangosettings.INTEGRATION_PLUGINS
|
||||
|
||||
|
||||
@register.simple_tag()
|
||||
def inactive_plugin_list(*args, **kwargs):
|
||||
""" Return a list of all inactive integration plugins """
|
||||
return djangosettings.INTEGRATION_PLUGINS_INACTIVE
|
||||
|
||||
|
||||
@register.simple_tag()
|
||||
def plugin_settings(plugin, *args, **kwargs):
|
||||
""" Return a list of all settings for a plugin """
|
||||
|
@ -64,6 +64,18 @@
|
||||
<td>{% if plugin.version %}{{ plugin.version }}{% endif %}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
|
||||
{% inactive_plugin_list as in_pl_list %}
|
||||
{% if in_pl_list %}
|
||||
<tr><td colspan="4"></td></tr>
|
||||
<tr><td colspan="4"><h6>{% trans 'Inactiv plugins' %}</h6></td></tr>
|
||||
{% for plugin_key, plugin in in_pl_list.items %}
|
||||
<tr>
|
||||
<td>{{plugin.name}}<span class="text-muted"> - {{plugin.key}}</span></td>
|
||||
<td colspan="3"></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user