Source

satchmo-imagekit / satchmo / apps / satchmo_ext / wishlist / templates / wishlist / index.html

{% extends "shop/base.html" %}
{% load i18n %}
{% load satchmo_category %}

{% block navbar %}
    <li class="first"><a href="{{ shop_base }}/">{% trans "Home" %}</a></li>
    <li>{% trans "Wishlist" %}</li>
{% endblock %}

{% block content %}
{% if wishlist_message %}
<div class="message">
{{ wishlist_message }}
</div>
{% endif %}
<div id="wishlist">
<h3>{% trans "Wishlist" %}</h3>
    {% for wish in wishlist %} 
    {% with wish.product as product %}
        {% if forloop.first %} <ul>  {% endif %}
            <li>
                <div class="wishproduct">
                {% with product.main_image.thumbnail_image as image %}
                <a class="wishimage" href="{{ product.get_absolute_url }}"><img src="{{ image.url }}" width="{{ image.width }}" height="{{ image.height }}" /></a>
                {% endwith %}
                    <a href="{{ product.get_absolute_url }}">{{ product.translated_name }}</a> 
                    <span class="date">{% blocktrans with wish.create_date|date:"y-M-d" as create_date %}added on {{ create_date }}{% endblocktrans %}</span>
                </div>
                <form name="addform" action="{% url satchmo_wishlist_move_to_cart %}" method="POST">
                    <input type="hidden" name="id" value="{{ wish.id }}" />
                    <input type="submit" value="{% trans 'Add to cart' %}" />
                </form>
                <form name="addform" action="{% url satchmo_wishlist_remove %}" method="POST">
                    <input type="hidden" name="id" value="{{ wish.id }}" />
                    <input type="submit" value="{% trans 'Remove from wishlist' %}" />
                </form>
            </li>
        {% if forloop.last %} </ul> {% endif %}
    {% endwith %}
    {% endfor %}
</div>
{% endblock %}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.