- Navbar icon with badge count for wishlist - Wishlist page with cards - Cards can be moved to cart or removed in a click - Separated all wishlist related methods into wishlist.js - Made a common js method(util) to add/remove wishlist items - Bug fix: Make sure items are removed from session user's wishlist
24 lines
677 B
HTML
24 lines
677 B
HTML
{% extends "templates/web.html" %}
|
|
|
|
{% block title %} {{ _("Wishlist") }} {% endblock %}
|
|
|
|
{% block header %}<h3 class="shopping-cart-header mt-2 mb-6">{{ _("Wishlist") }}</h1>{% endblock %}
|
|
|
|
{% block page_content %}
|
|
{% if items %}
|
|
<div class="row">
|
|
<div class="col-12 col-md-11 item-card-group-section">
|
|
<div class="row products-list">
|
|
{% from "erpnext/templates/includes/macros.html" import wishlist_card %}
|
|
{% for item in items %}
|
|
{{ wishlist_card(item, settings) }}
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% else %}
|
|
<!-- TODO: Make empty state for wishlist -->
|
|
{% include "erpnext/www/all-products/not_found.html" %}
|
|
{% endif %}
|
|
|
|
{% endblock %} |