mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
same spacing for tables
thanks @eeintech
This commit is contained in:
parent
aac05db6bf
commit
053793288b
@ -466,6 +466,24 @@
|
|||||||
background: #eee;
|
background: #eee;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* pricing table widths */
|
||||||
|
.table-price-two tr td:first-child {
|
||||||
|
width: 40%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-price-three tr td:first-child {
|
||||||
|
width: 40%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-price-two tr td:last-child {
|
||||||
|
width: 60%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.table-price-three tr td:last-child {
|
||||||
|
width: 30%;
|
||||||
|
}
|
||||||
|
/* !pricing table widths */
|
||||||
|
|
||||||
.btn-glyph {
|
.btn-glyph {
|
||||||
padding-left: 6px;
|
padding-left: 6px;
|
||||||
padding-right: 6px;
|
padding-right: 6px;
|
||||||
|
@ -4,20 +4,20 @@
|
|||||||
|
|
||||||
{% block pre_form_content %}
|
{% block pre_form_content %}
|
||||||
|
|
||||||
<table class='table table-striped table-condensed'>
|
<table class='table table-striped table-condensed table-price-two'>
|
||||||
<tr>
|
<tr>
|
||||||
<td><b>{% trans 'Part' %}</b></td>
|
<td><b>{% trans 'Part' %}</b></td>
|
||||||
<td colspan='2'>{{ part }}</td>
|
<td>{{ part }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><b>{% trans 'Quantity' %}</b></td>
|
<td><b>{% trans 'Quantity' %}</b></td>
|
||||||
<td colspan='2'>{{ quantity }}</td>
|
<td>{{ quantity }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
{% if part.supplier_count > 0 %}
|
{% if part.supplier_count > 0 %}
|
||||||
<h4>{% trans 'Supplier Pricing' %}</h4>
|
<h4>{% trans 'Supplier Pricing' %}</h4>
|
||||||
<table class='table table-striped table-condensed'>
|
<table class='table table-striped table-condensed table-price-three'>
|
||||||
{% if min_total_buy_price %}
|
{% if min_total_buy_price %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><b>{% trans 'Unit Cost' %}</b></td>
|
<td><b>{% trans 'Unit Cost' %}</b></td>
|
||||||
@ -43,7 +43,7 @@
|
|||||||
|
|
||||||
{% if part.bom_count > 0 %}
|
{% if part.bom_count > 0 %}
|
||||||
<h4>{% trans 'BOM Pricing' %}</h4>
|
<h4>{% trans 'BOM Pricing' %}</h4>
|
||||||
<table class='table table-striped table-condensed'>
|
<table class='table table-striped table-condensed table-price-three'>
|
||||||
{% if min_total_bom_price %}
|
{% if min_total_bom_price %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><b>{% trans 'Unit Cost' %}</b></td>
|
<td><b>{% trans 'Unit Cost' %}</b></td>
|
||||||
@ -76,14 +76,14 @@
|
|||||||
|
|
||||||
{% if total_part_price %}
|
{% if total_part_price %}
|
||||||
<h4>{% trans 'Sale Price' %}</h4>
|
<h4>{% trans 'Sale Price' %}</h4>
|
||||||
<table class='table table-striped table-condensed'>
|
<table class='table table-striped table-condensed table-price-two'>
|
||||||
<tr>
|
<tr>
|
||||||
<td><b>{% trans 'Unit Cost' %}</b></td>
|
<td><b>{% trans 'Unit Cost' %}</b></td>
|
||||||
<td colspan='2'>{% include "price.html" with price=unit_part_price %}</td>
|
<td>{% include "price.html" with price=unit_part_price %}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><b>{% trans 'Total Cost' %}</b></td>
|
<td><b>{% trans 'Total Cost' %}</b></td>
|
||||||
<td colspan='2'>{% include "price.html" with price=total_part_price %}</td>
|
<td>{% include "price.html" with price=total_part_price %}</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
Loading…
Reference in New Issue
Block a user