{% extends 'inventaris/base.html' %} {% load static %} {% load currency_filters %} {% block title %}Daftar Barang - Inventaris HMI{% endblock %} {% block page_title %}Daftar Barang{% endblock %} {% block page_subtitle %}Kelola inventaris barang organisasi HMI{% endblock %} {% block content %}

Inventaris Barang

Total

{{ page_obj.paginator.count }}

Aktif

{{ aktif_count|default:0 }}

Dipinjam

{{ dipinjam_count|default:0 }}

Rusak

{{ rusak_count|default:0 }}

Filter & Pencarian

Rp
Rp
Reset
{% if request.GET.search or request.GET.kategori or request.GET.status or request.GET.kondisi or request.GET.lokasi or request.GET.tahun_perolehan or request.GET.harga_min or request.GET.harga_max %}
Filter Aktif: {% if request.GET.search %} Pencarian: "{{ request.GET.search }}" {% endif %} {% if request.GET.kategori %} Kategori: "{{ request.GET.kategori }}" {% endif %} {% if request.GET.status %} Status: "{{ request.GET.status }}" {% endif %}
Hapus Semua
{% endif %}
{% for barang in page_obj %}
{% if barang.gambar %} {{ barang.nama }} {% else %}
{% endif %}
{{ barang.get_status_display|slice:":3" }}

{{ barang.nama }}

{{ barang.kode_barang }}

{{ barang.kondisi.nama }}
{{ barang.harga_perolehan|currency }} {{ barang.tahun_perolehan }}
{% endfor %}
{% if page_obj.has_other_pages %}
{% if page_obj.has_previous %} {% else %}
{% endif %}
{{ page_obj.number }} / {{ page_obj.paginator.num_pages }}
{% if page_obj.has_next %} {% else %}
{% endif %}
{% endif %}
{% endblock %} {% block extra_js %} {% endblock %}