Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Fixing menu view filter in the customer website #36

Merged
merged 1 commit into from
May 31, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 4 additions & 7 deletions menus/templates/menu.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,11 @@ <h2>Menu</h2>
<div class="row menu-container" data-aos="fade-up" data-aos-delay="200">
{% for menu in menus %}
<div class="col-lg-6 menu-item
{% if menu.category == 'Starters' %}

{% elif menu.category == 'Salads' %}

{% elif menu.category == 'Specialty' %}

{% if menu.category == 'Starters' %}filter-starters
{% elif menu.category == 'Salads' %}filter-salads
{% elif menu.category == 'Specialty' %}filter-specialty
{% endif %}">
<img src="{{ menu.image.url }}" class="menu-img" alt=" {{ menu.name }} Not found" />
<img src="{{ menu.image.url }}" class="menu-img" alt="{{ menu.name }} Not found" />
<div class="menu-content">
<a href="">{{ menu.name }}</a><span>RM {{ menu.price }}</span>
</div>
Expand Down
Loading