From 8fdaab233c8c593a45629b5efe2b6c176956e390 Mon Sep 17 00:00:00 2001 From: Oliver Date: Wed, 27 Oct 2021 22:44:33 +1100 Subject: [PATCH] Refactor build page --- InvenTree/InvenTree/static/css/inventree.css | 6 +- .../build/templates/build/build_base.html | 98 +++++++++---------- InvenTree/templates/page_base.html | 26 +++-- 3 files changed, 63 insertions(+), 67 deletions(-) diff --git a/InvenTree/InvenTree/static/css/inventree.css b/InvenTree/InvenTree/static/css/inventree.css index 3b1e34922d..7267d385b7 100644 --- a/InvenTree/InvenTree/static/css/inventree.css +++ b/InvenTree/InvenTree/static/css/inventree.css @@ -564,8 +564,6 @@ margin: 2px; padding: 3px; object-fit: contain; - border: 1px solid #ddd; - border-radius: 3px; } .part-thumb-container:hover .part-thumb-overlay { @@ -974,6 +972,10 @@ input[type="submit"] { display: none; } +.panel-inventree .card { + padding: 10px; +} + .float-right { float: right; } diff --git a/InvenTree/build/templates/build/build_base.html b/InvenTree/build/templates/build/build_base.html index 43b739647a..845481ece1 100644 --- a/InvenTree/build/templates/build/build_base.html +++ b/InvenTree/build/templates/build/build_base.html @@ -14,63 +14,59 @@ {% endblock %} -{% block heading %} -

- {% trans "Build Order" %} - {% if user.is_staff and roles.build.change %} - - {% endif %} -

-{% endblock %} - {% block details_left %} - -
- -
- -
-
- -
- + +
+ + {% if roles.build.change %} +
+ + +
+ {% if build.active %} + - + {% endif %} + {% endif %}
- - {% if roles.build.change %} -
- - -
- {% if build.active %} - - {% endif %} - {% endif %}
- {% endblock %} {% block details_right %} diff --git a/InvenTree/templates/page_base.html b/InvenTree/templates/page_base.html index 4980fb7d47..de28935295 100644 --- a/InvenTree/templates/page_base.html +++ b/InvenTree/templates/page_base.html @@ -5,30 +5,28 @@ {% block content %} -
-
- {% block heading %} - block heading - {% endblock %} -
+
- {% block details %}
- {% block details_left %} - block details_left - {% endblock %} +
+ {% block details_left %} + block details_left + {% endblock %} +
- {% block details_right %} - block details_right - {% endblock %} +
+ {% block details_right %} + block details_right + {% endblock %} +
- {% endblock %}
+ {% block page_content %} block page_content {% endblock %}