make tables responsive

This commit is contained in:
Matthias Mair 2021-11-17 19:23:12 +00:00
parent e97af4c074
commit df9d83b3d6
2 changed files with 8 additions and 0 deletions

View File

@ -16,6 +16,7 @@
{% trans "Changing the settings below require you to immediatly restart InvenTree. Do not change this while under active usage." %} {% trans "Changing the settings below require you to immediatly restart InvenTree. Do not change this while under active usage." %}
</div> </div>
<div class='table-responsive'>
<table class='table table-striped table-condensed'> <table class='table table-striped table-condensed'>
<tbody> <tbody>
{% include "InvenTree/settings/setting.html" with key="ENABLE_PLUGINS_URL" %} {% include "InvenTree/settings/setting.html" with key="ENABLE_PLUGINS_URL" %}
@ -24,12 +25,14 @@
{% include "InvenTree/settings/setting.html" with key="ENABLE_PLUGINS_APP"%} {% include "InvenTree/settings/setting.html" with key="ENABLE_PLUGINS_APP"%}
</tbody> </tbody>
</table> </table>
</div>
<h4>{% trans "Plugin list" %} <h4>{% trans "Plugin list" %}
{% url 'admin:plugin_pluginconfig_changelist' as url %} {% url 'admin:plugin_pluginconfig_changelist' as url %}
{% include "admin_button.html" with url=url %} {% include "admin_button.html" with url=url %}
</h4> </h4>
<div class='table-responsive'>
<table class='table table-striped table-condensed'> <table class='table table-striped table-condensed'>
<thead> <thead>
<tr> <tr>
@ -94,5 +97,6 @@
{% endif %} {% endif %}
</tbody> </tbody>
</table> </table>
</div>
{% endblock %} {% endblock %}

View File

@ -15,6 +15,7 @@
<div class="row"> <div class="row">
<div class="col-md-6"> <div class="col-md-6">
<h4>{% trans "Plugin information" %}</h4> <h4>{% trans "Plugin information" %}</h4>
<div class='table-responsive'>
<table class='table table-striped table-condensed'> <table class='table table-striped table-condensed'>
<col width='25'> <col width='25'>
<tr> <tr>
@ -63,6 +64,7 @@
</tr> </tr>
{% endif %} {% endif %}
</table> </table>
</div>
{% if plugin.is_package == False %} {% if plugin.is_package == False %}
<p>{% trans 'The code information is pulled from the latest git commit for this plugin. It might not reflect official version numbers or information but the actual code running.' %}</p> <p>{% trans 'The code information is pulled from the latest git commit for this plugin. It might not reflect official version numbers or information but the actual code running.' %}</p>
@ -70,6 +72,7 @@
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<h4>{% trans "Package information" %}</h4> <h4>{% trans "Package information" %}</h4>
<div class='table-responsive'>
<table class='table table-striped table-condensed'> <table class='table table-striped table-condensed'>
<col width='25'> <col width='25'>
<tr> <tr>
@ -119,6 +122,7 @@
</table> </table>
</div> </div>
</div> </div>
</div>
{% mixin_enabled plugin 'globalsettings' as globalsettings %} {% mixin_enabled plugin 'globalsettings' as globalsettings %}
{% if globalsettings %} {% if globalsettings %}