From 1b645deff7d2cf7aaae7e743d1b46f89dd79f237 Mon Sep 17 00:00:00 2001 From: Wahyudin Date: Tue, 27 Oct 2026 14:12:28 +0700 Subject: [PATCH] style: fix text stacking in Stok and Lokasi columns on Consumable Item table --- templates/consumable_list.html | 68 ++++++++++++++++++++-------------- 1 file changed, 41 insertions(+), 27 deletions(-) diff --git a/templates/consumable_list.html b/templates/consumable_list.html index 1c69696..8db33c4 100644 --- a/templates/consumable_list.html +++ b/templates/consumable_list.html @@ -140,31 +140,31 @@
- +
- - - + + + - + - - - - - + + + + + {% for item in page_obj %} - - + - - - - - - -
NoKode Item
NoKode Item Nama Barang & MerekKategoriKategori SpesifikasiSatuanStokLokasiStatusAksiSatuanStokLokasiStatusAksi
{{ forloop.counter }} + {{ forloop.counter }} {{ item.item_code }} + {{ item.name }} @@ -172,33 +172,47 @@

Merek: {{ item.brand }}

{% endif %}
- {{ item.get_category_display }} + + {% if item.category == 'cable' %}Kabel (UTP & FO) + {% elif item.category == 'connector' %}Konektor & Barrel + {% elif item.category == 'maintenance' %}Bahan Perawatan + {% elif item.category == 'fastener' %}Baut, Mur & Ties + {% elif item.category == 'electrical' %}Kelistrikan & Isolasi + {% elif item.category == 'cleaning' %}Cleaning Supplies + {% elif item.category == 'tools_acc' %}Aksesori & Tools + {% else %}{{ item.get_category_display }} + {% endif %} {{ item.specification|default:"-" }} + {{ item.base_unit }} - {{ item.formatted_stock }} - / - {{ item.minimum_stock|floatformat:0 }} + +
+ {{ item.formatted_stock }} +
+
+ Min: {{ item.minimum_stock|floatformat:0 }} {{ item.base_unit }} +
- {{ item.location }} + +
+ + {{ item.location }} +
+ {% if item.stock_status == 'out_of_stock' %} - Habis + Habis {% elif item.stock_status == 'low_stock' %} - Menipis + Menipis {% else %} - Aman + Aman {% endif %} +