Add state to wishlist items
This commit is contained in:
parent
6417a0445c
commit
86ea93545b
|
|
@ -15,6 +15,7 @@
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="col">Item</th>
|
<th scope="col">Item</th>
|
||||||
|
<th scope="col">State</th>
|
||||||
<th scope="col">Action</th>
|
<th scope="col">Action</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
@ -22,6 +23,11 @@
|
||||||
{% for user_wishlist_item in user_wishlist_items %}
|
{% for user_wishlist_item in user_wishlist_items %}
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{{ user_wishlist_item.item_url }}">{{ user_wishlist_item.item }}</a></td>
|
<td><a href="{{ user_wishlist_item.item_url }}">{{ user_wishlist_item.item }}</a></td>
|
||||||
|
{% if user_wishlist_item.received_at > 0 %}
|
||||||
|
<td>Got it!</td>
|
||||||
|
{% else %}
|
||||||
|
<td>Not yet!</td>
|
||||||
|
{% endif %}
|
||||||
{% if my_wishlist %}
|
{% if my_wishlist %}
|
||||||
{% if user_wishlist_item.received_at > 0 %}
|
{% if user_wishlist_item.received_at > 0 %}
|
||||||
<td>Got it!</td>
|
<td>Got it!</td>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
{% extends "authorized.html" %}
|
{% extends "authorized.html" %}
|
||||||
{% block title %}Wish Lists{% endblock %}
|
{% block title %}Wish Lists{% endblock %}
|
||||||
{% block center %}
|
{% block center %}
|
||||||
<h1>Users</h1>
|
<h1>Wishlists</h1>
|
||||||
<table class="table table-striped table-bordered">
|
<table class="table table-striped table-bordered">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue