Fakultas Ilmu Komputer UI

Commit 43870ef1 authored by Annisa Devi Nurmalasari's avatar Annisa Devi Nurmalasari
Browse files

[REFACTOR] Mengubah layout toko

parent e06dcd96
......@@ -26,17 +26,13 @@
<h1 class="mb-5">Verifikasi Toko</h1>
{% include 'admin/components/filter_button.html' with parent_url='admin:toko' %}
</div>
<div class="">
<div class="list-mainan">
<ul class="cards">
{% for toko in page.object_list %}
<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">
{% include 'admin/toko/list_toko_card.html' with toko=toko %}
{% endfor %}
</ul>
</div>
</div>
{% endfor %}
</div>
<div class="row mt-3">
{% include 'admin/components/pagination.html' with parent_url='admin:toko' %}
</div>
......
<li class="card-item">
<div class="card">
<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 %}
<div class="card-image"><img src="{{toko.foto_profil_toko.url}}"></div>
<img width="18rem" src="{{toko.foto_profil_toko.url}}" class="card-img-top" alt="Logo toko">
{% 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-content">
<div class="card-body">
<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-primary">Lihat rincian</a>
<a href="{% url 'admin:detail_toko' toko.pk %}" class="btn btn-secondary">Lihat rincian</a>
</div>
</div>
</li>
\ No newline at end of file
</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