web_AI-5/django/didgeridoo/webshop/templates/registration/profile.html

44 lines
1.1 KiB
HTML
Raw Normal View History

2017-12-28 19:22:00 +01:00
{% extends 'webshop/base.html' %}
{% block section_title %}User Profile{% endblock %}
{% block content %}
2018-02-27 20:46:05 +01:00
</br>
2017-12-28 19:22:00 +01:00
<p><b>Username: </b>{{ request.user.username }}</p>
<p><b>Name: </b>
{{ person.salutation }}
{{ request.user.first_name }}
{{ request.user.last_name }}</p>
<p><b>Street: </b>{{ person.street_name }} {{ person.street_number }}</p>
2017-12-28 19:22:00 +01:00
<p><b>City: </b>{{ person.city }}</p>
<form method="post">
{% csrf_token %}
{{ form.as_p }}
</form>
2018-02-27 20:46:05 +01:00
{% if order_list_zip %}
</br>
<h4> Orders:</h4>
<table class="table price-table">
<tr class="table_header">
<th scope="col">ID</th>
<th scope="col">DATE</th>
<th scope="col">STATUS</th>
</tr>
2018-02-28 22:22:28 +01:00
{% for order, order_positions_count in order_list_zip %}
2018-02-27 23:56:41 +01:00
<tr class="table_content">
<td scope="col">{{ order.id }}</td>
<td scope="col">{{ order.date }}</td>
<td scope="col">
<a href="{% url 'order' order.id %}">{{ order.status }}</a>
</td>
</tr>
2018-02-27 22:01:39 +01:00
{% endfor %}
2018-02-27 20:46:05 +01:00
</table>
{% else %}
<p>
you don't have Ordered anything yet.
As soon as you Purchase anything from us you can see your Orders here.
</p>
{% endif %}
2017-12-28 19:22:00 +01:00
{% endblock %}