2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-04-30 12:36:45 +00:00

Refactor part settings page

This commit is contained in:
Oliver 2021-11-02 11:31:24 +11:00
parent 2abcb114a8
commit 66b078e4b9

View File

@ -9,8 +9,6 @@
{% block content %} {% block content %}
<h4>{% trans "Part Options" %}</h4>
<table class='table table-striped table-condensed'> <table class='table table-striped table-condensed'>
<tbody> <tbody>
{% include "InvenTree/settings/setting.html" with key="PART_IPN_REGEX" %} {% include "InvenTree/settings/setting.html" with key="PART_IPN_REGEX" %}
@ -40,12 +38,17 @@
</tbody> </tbody>
</table> </table>
<h4>{% trans "Part Import" %}</h4> <div class='panel-heading'>
<div class='d-flex flex-span'>
<button class='btn btn-success' id='import-part'> <h4>{% trans "Part Import" %}</h4>
<span class='fas fa-plus-circle'></span> {% trans "Import Part" %} {% include "spacer.html" %}
</button> <div class='btn-group' role='group'>
<button class='btn btn-success' id='import-part'>
<span class='fas fa-plus-circle'></span> {% trans "Import Part" %}
</button>
</div>
</div>
</div>
<table class='table table-striped table-condensed'> <table class='table table-striped table-condensed'>
<tbody> <tbody>
@ -53,14 +56,16 @@
</tbody> </tbody>
</table> </table>
<div class='panel-heading'>
<span class='d-flex flex-span'>
<h4>{% trans "Part Parameter Templates" %}</h4> <h4>{% trans "Part Parameter Templates" %}</h4>
{% include "spacer.html" %}
<div id='param-buttons'> <div class='btn-group' role='group'>
<button class='btn btn-success' id='new-param'> <button class='btn btn-success' id='new-param'>
<span class='fas fa-plus-circle'></span> {% trans "New Parameter" %} <span class='fas fa-plus-circle'></span> {% trans "New Parameter" %}
</button> </button>
</div>
</span>
</div> </div>
<table class='table table-striped table-condensed' id='param-table' data-toolbar='#param-buttons'> <table class='table table-striped table-condensed' id='param-table' data-toolbar='#param-buttons'>