Add templates for wishlist app
parent
05088bdbdf
commit
5612f788da
@ -0,0 +1,7 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block content %}
|
||||
<h1>Item: {{ object.name }}</h1>
|
||||
|
||||
<p class=description>{{ object.description }}</p>
|
||||
|
||||
{% endblock %}
|
@ -0,0 +1,13 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block content %}
|
||||
<h1>Wishlist of user {{ user }}</h1>
|
||||
{% if object_list %}
|
||||
<ul>
|
||||
{% for item in object_list %}
|
||||
<li>{{ item }}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<p>This wishlist is empty</p>
|
||||
{% endif %}
|
||||
{% endblock %}
|
@ -0,0 +1,19 @@
|
||||
{% extends 'base.html' %}
|
||||
{% block content %}
|
||||
<h1>Wishlist {{ wishlist.name }}</h1>
|
||||
|
||||
{% if wishlist.description %}
|
||||
<p class=description>{{ wishlist.description }}</p>
|
||||
{% endif %}
|
||||
|
||||
{% if object_list %}
|
||||
<ul>
|
||||
{% for item in object_list %}
|
||||
{# TODO: Implement checkboxes and hidden items #}
|
||||
<li>{{ item }}
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<p>This wishlist is empty</p>
|
||||
{% endif %}
|
||||
{% endblock %}
|
Loading…
Reference in New Issue