Fakultas Ilmu Komputer UI

Commit 59d2cd7f authored by Annisa Devi Nurmalasari's avatar Annisa Devi Nurmalasari
Browse files

[REFACTOR] Menambahkan if else image pada dashboard_card

parent 595a60a0
<div class="card">
{% load static %}
<div class="card card-landing">
<div class="card-body">
<div class="navbar container-fluid" id="card-dashboard">
<div class="col">
<h2 class="card-title">{{count}}</h2>
<p class="card-text"><span style="font-weight: bold;">{{desc}}</span> menunggu persetujuan</p>
<a href="{{link}}" class="btn btn-primary">Lihat daftar</a>
<div class="lihat-daftar">
<a href="{{link}}" class="btn btn-primary">Lihat daftar</a>
</div>
</div>
<div class="">
{% if desc == 'request investasi' %}
<img style="width: 4rem; height: 4rem;" src="{% static 'admin/investasi.svg' %}">
{% endif %}
{% if desc == 'request pengadaan mainan' %}
<img style="width: 4rem; height: 4rem;" src="{% static 'admin/pengadaan.svg' %}">
{% endif %}
{% if desc == 'request toko' %}
<img style="width: 4rem; height: 4rem;" src="{% static 'admin/toko.svg' %}">
{% endif %}
{% if desc == 'proyek pengadaan mainan' %}
<img style="width: 4rem; height: 4rem;" src="{% static 'admin/proyek_pengadaan.svg' %}">
{% endif %}
</div>
<em class="bi bi-reception-4" id="ic-card"></em>
</div>
</div>
</div>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment