Plugin overview

This commit is contained in:
Matthias 2021-09-17 22:49:43 +02:00
parent 771c453c40
commit 733303fb66
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076
3 changed files with 41 additions and 0 deletions

View File

@ -122,6 +122,12 @@
<strong>{% trans "Plugin Settings" %}</strong> <strong>{% trans "Plugin Settings" %}</strong>
</li> </li>
<li class='list-group-item' title='{% trans "Plugin" %}'>
<a href='#' class='nav-toggle' id='select-plugin'>
<span class='fas fa-plug'></span> {% trans "Plugin" %}
</a>
</li>
{% plugin_list as pl_list %} {% plugin_list as pl_list %}
{% for plugin_key, plugin in pl_list.items %} {% for plugin_key, plugin in pl_list.items %}
{% if plugin.has_settings %} {% if plugin.has_settings %}

View File

@ -0,0 +1,34 @@
{% extends "panel.html" %}
{% load i18n %}
{% load inventree_extras %}
{% load plugin_extras %}
{% block label %}plugin{% endblock %}
{% block heading %}
{% trans "Plugin Settings" %}
{% endblock %}
{% block content %}
<h4>{% trans "Plugin list" %}</h4>
<table class='table table-striped table-condensed'>
<thead>
<tr>
<th>{% trans "Name" %}</th>
</tr>
</thead>
<tbody>
{% plugin_list as pl_list %}
{% for plugin_key, plugin in pl_list.items %}
<tr>
<td>{{plugin_key}} - {{ plugin.plugin_name}}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}

View File

@ -34,6 +34,7 @@
{% include "InvenTree/settings/build.html" %} {% include "InvenTree/settings/build.html" %}
{% include "InvenTree/settings/po.html" %} {% include "InvenTree/settings/po.html" %}
{% include "InvenTree/settings/so.html" %} {% include "InvenTree/settings/so.html" %}
{% include "InvenTree/settings/plugin.html" %}
{% plugin_list as pl_list %} {% plugin_list as pl_list %}
{% for plugin_key, plugin in pl_list.items %} {% for plugin_key, plugin in pl_list.items %}