From 4bfeb96c4cabd2c0131ca0ac823fd56938268ee2 Mon Sep 17 00:00:00 2001 From: Wahyudin Date: Tue, 27 Oct 2026 14:05:39 +0700 Subject: [PATCH] style: fix text wrapping and column compression in Configuration Item table --- templates/ci_list.html | 85 ++++++++++++++++++++++++------------------ 1 file changed, 48 insertions(+), 37 deletions(-) diff --git a/templates/ci_list.html b/templates/ci_list.html index a11cbc0..c21f5b1 100644 --- a/templates/ci_list.html +++ b/templates/ci_list.html @@ -116,30 +116,30 @@
- +
- - - - - - - - - - + + + + + + + + + + {% for item in items %} - - + - - - - - - -
NoKode ItemNama & KomponenKategoriNomor Seri (S/N)Perangkat / PenggunaKondisiStatusAksi
NoKode ItemNama & KomponenKategoriNomor Seri (S/N)Perangkat / PenggunaKondisiStatusAksi
{{ forloop.counter }} + {{ forloop.counter }} {{ item.ci_code }} + {{ item.name }} @@ -147,51 +147,62 @@

{{ item.brand|default:"" }} {{ item.model_series|default:"" }}

{% endif %}
- {{ item.get_category_display }} + + {% if item.category == 'storage' %}Storage + {% elif item.category == 'memory' %}Memory (RAM) + {% elif item.category == 'processor' %}Processor (CPU) + {% elif item.category == 'motherboard' %}Motherboard + {% elif item.category == 'gpu' %}GPU / VGA + {% elif item.category == 'peripheral' %}Peripheral + {% elif item.category == 'network' %}Network Component + {% elif item.category == 'power' %}Power Supply & UPS + {% else %}{{ item.get_category_display }} + {% endif %} + {{ item.serial_number|default:"-" }} + {% if item.installed_on %}
- {{ item.installed_on.unit_code }} + {{ item.installed_on.unit_code }}
-

{{ item.installed_on.asset.name }}

+

{{ item.installed_on.asset.name }}

{% if item.installed_on.assigned_to %} -

PIC: {{ item.installed_on.assigned_to.name }}

+

PIC: {{ item.installed_on.assigned_to.name }}

{% endif %} {% elif item.assigned_to %} -

{{ item.assigned_to.name }}

-

Pegang Langsung

+

{{ item.assigned_to.name }}

+

Pegang Langsung

{% else %} - Gudang / Tidak terpasang + Gudang / Tidak terpasang {% endif %}
- {% if item.condition == 'new' or item.condition == 'good' %} - {{ item.get_condition_display }} + + {% if item.condition == 'new' %} + Baru + {% elif item.condition == 'good' %} + Bagus / Normal {% elif item.condition == 'fair' %} - {{ item.get_condition_display }} - {% elif item.condition == 'poor' %} - {{ item.get_condition_display }} + Cukup / Bekas + {% elif item.condition == 'damaged' %} + Rusak {% else %} - {{ item.get_condition_display }} + {{ item.get_condition_display }} {% endif %} + {% if item.status == 'available' %} - Tersedia + Tersedia {% elif item.status == 'in_use' %} - Digunakan + Digunakan {% elif item.status == 'under_repair' or item.status == 'under_inspection' %} - Maintenance + Maintenance {% else %} - Pensiun + Pensiun {% endif %} +