badge updates

This commit is contained in:
Oliver 2021-10-28 22:32:03 +11:00
parent 2778ff55da
commit f542bdc19f
4 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,6 @@
:root { :root {
--primary-color: #335d88; --primary-color: #335d88;
--secondary-color: #e4dfdf; --secondary-color: #f7f5ee;
--highlight-color: #f5efe8; --highlight-color: #f5efe8;
--border-color: #ccc; --border-color: #ccc;
@ -11,7 +11,7 @@
--label-grey: #aaa; --label-grey: #aaa;
--label-yellow: #fdc82a; --label-yellow: #fdc82a;
--bs-body-color: #555; --bs-body-color: #68686a;
} }
.login-screen { .login-screen {
@ -441,7 +441,7 @@
float: right; float: right;
} }
.badge { .badge-right {
float: right; float: right;
} }

View File

@ -501,7 +501,7 @@ function loadManufacturerPartTable(table, url, options) {
} }
if (!row.part_detail.active) { if (!row.part_detail.active) {
html += `<span class='badge rounded-pill bg-warning'>{% trans "Inactive" %}</span>`; html += `<span class='badge badge-right rounded-pill bg-warning'>{% trans "Inactive" %}</span>`;
} }
return html; return html;
@ -758,7 +758,7 @@ function loadSupplierPartTable(table, url, options) {
} }
if (!row.part_detail.active) { if (!row.part_detail.active) {
html += `<span class='badge rounded-pill bg-warning'>{% trans "Inactive" %}</span>`; html += `<span class='badge badge-right rounded-pill bg-warning'>{% trans "Inactive" %}</span>`;
} }
return html; return html;

View File

@ -172,7 +172,7 @@ function renderPart(name, data, parameters, options) {
} }
if (!data.active) { if (!data.active) {
extra += `<span class='badge rounded-pill bg-danger'>{% trans "Inactive" %}</span>`; extra += `<span class='badge badge-right rounded-pill bg-danger'>{% trans "Inactive" %}</span>`;
} }
html += ` html += `

View File

@ -451,7 +451,7 @@ function makePartIcons(part) {
} }
if (!part.active) { if (!part.active) {
html += `<span class='badge rounded-pill bg-warning'>{% trans "Inactive" %}</span>`; html += `<span class='badge badge-right rounded-pill bg-warning'>{% trans "Inactive" %}</span>`;
} }
return html; return html;
@ -528,7 +528,7 @@ function loadPartVariantTable(table, partId, options={}) {
} }
if (!row.active) { if (!row.active) {
html += `<span class='badge rounded-pill bg-warning'>{% trans "Inactive" %}</span>`; html += `<span class='badge badge-right rounded-pill bg-warning'>{% trans "Inactive" %}</span>`;
} }
return html; return html;