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 @@
| No | -Kode Item | -Nama & Komponen | -Kategori | -Nomor Seri (S/N) | -Perangkat / Pengguna | -Kondisi | -Status | -Aksi | +|||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| No | +Kode Item | +Nama & Komponen | +Kategori | +Nomor Seri (S/N) | +Perangkat / Pengguna | +Kondisi | +Status | +Aksi | |||||||||
| {{ 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 %} | -+ |