Fakultas Ilmu Komputer UI

Commit f3d558c4 authored by Annisa Devi Nurmalasari's avatar Annisa Devi Nurmalasari
Browse files

[REFACTOR] Mengubah button request pengadaan

parent c16ebe34
......@@ -179,13 +179,13 @@
<div class="col-auto">
{% if active == 'req_pgdn' and req.status == 'MPA' %}
<a href="{% url 'admin:dec_req_pengadaan' req.pk %}"><button class="btn btn-danger me-2">Tolak</button></a>
<a href="{% url 'admin:acc_req_pengadaan' req.pk %}"><button class="btn btn-primary">Terima</button></a>
<a href="{% url 'admin:acc_req_pengadaan' req.pk %}"><button class="btn btn-secondary">Terima</button></a>
{% elif active == 'proyek_pgdn' and req.status_proyek == 'MPA' %}
<a href="{% url 'admin:dec_proyek_pengadaan' req.pk %}"><button class="btn btn-danger me-2">Tolak</button></a>
<a href="{% url 'admin:acc_proyek_pengadaan' req.pk %}"><button class="btn btn-primary">Terima</button></a>
<a href="{% url 'admin:acc_proyek_pengadaan' req.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>
......
......@@ -38,9 +38,9 @@
<div class="col-12 col-sm-8 col-lg-9">
<p>{{req.toko.deskripsi_toko}}</p>
{% if active == 'req_pgdn' %}
<a href="{% url 'admin:detail_req_pengadaan' req.pk %}" class="btn btn-secondary">Lihat rincian</a>
<a href="{% url 'admin:detail_req_pengadaan' req.pk %}" class="btn btn-primary">Lihat rincian</a>
{% elif active == 'proyek_pgdn' %}
<a href="{% url 'admin:detail_proyek_pengadaan' req.pk %}" class="btn btn-secondary">Lihat rincian</a>
<a href="{% url 'admin:detail_proyek_pengadaan' req.pk %}" class="btn btn-primary">Lihat rincian</a>
{% endif %}
</div>
</div>
......
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