Fakultas Ilmu Komputer UI

Commit 256964f3 authored by Annisa Devi Nurmalasari's avatar Annisa Devi Nurmalasari
Browse files

[REFACTOR] Mengubah layout dan button toko

parent f3d558c4
......@@ -81,10 +81,10 @@
<div class="col-auto">
{% if toko.status == 'MPA' %}
<a href="{% url 'admin:dec_toko' toko.pk %}"><button class="btn btn-danger me-2">Tolak</button></a>
<a href="{% url 'admin:acc_toko' toko.pk %}"><button class="btn btn-primary">Terima</button></a>
<a href="{% url 'admin:acc_toko' toko.pk %}"><button class="btn btn-secondary">Terima</button></a>
{% else %}
<button class="btn btn-danger me-2" disabled>Tolak</button>
<button class="btn btn-primary" disabled>Terima</button>
<button class="btn btn-secondary" disabled>Terima</button>
{% endif %}
</div>
</div>
......
......@@ -26,13 +26,17 @@
<h1 class="mb-5">Verifikasi Toko</h1>
{% include 'admin/components/filter_button.html' with parent_url='admin:toko' %}
</div>
<div class="row row-cols-1 row-cols-sm-2 row-cols-md-3 row-cols-lg-4 gy-5">
{% for toko in page.object_list %}
<div class="col">
<div class="">
<div class="list-mainan">
<ul class="cards">
{% for toko in page.object_list %}
{% include 'admin/toko/list_toko_card.html' with toko=toko %}
</div>
{% endfor %}
{% endfor %}
</ul>
</div>
</div>
<div class="row mt-3">
{% include 'admin/components/pagination.html' with parent_url='admin:toko' %}
</div>
......
<div class="card">
<li class="card-item">
<div class="card">
<div class="card-header text-end">
{% include 'admin/components/status_header.html' with status=toko.status %}
</div>
{% if toko.foto_profil_toko %}
<img width="18rem" src="{{toko.foto_profil_toko.url}}" class="card-img-top" alt="Logo toko">
<div class="card-image"><img src="{{toko.foto_profil_toko.url}}"></div>
{% else %}
<img width="18rem" src="https://socialistmodernism.com/wp-content/uploads/2017/07/placeholder-image.png" class="card-img-top" alt="Logo toko">
<img width="18rem" src="https://socialistmodernism.com/wp-content/uploads/2017/07/placeholder-image.png" class="card-img-top" alt="Logo toko">
{% endif %}
<div class="card-body">
<div class="card-content">
<h5 class="card-title">{{toko.nama_toko}}</h5>
<p class="card-text">{{toko.nama_cabang}}</p>
<a href="{% url 'admin:detail_toko' toko.pk %}" class="btn btn-secondary">Lihat rincian</a>
<a href="{% url 'admin:detail_toko' toko.pk %}" class="btn btn-primary">Lihat rincian</a>
</div>
</div>
\ No newline at end of file
</div>
</li>
\ 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