Fix order logic. Currently you can change contact data ant it's working correctly

This commit is contained in:
2022-09-28 22:49:15 +03:00
parent dddf4ba47e
commit 19b246ec06
17 changed files with 370 additions and 17 deletions

View File

@@ -1,13 +1,26 @@
{% extends 'base.html' %}
{% block title %} Аккаунт | вход {% endblock %}
{% block styles %}
<style>
.order-wrapper {
border: var(--brand-color) solid 3px;
border-radius: 1em;
margin: 1em;
padding: 1em;
}
</style>
{% endblock %}
{% block content %}
<h1 class=deprecated-page-header"> Список заказов </h1>
{% if user.is_authenticated %}
тут должен быть список заказов...
{% else %}
<h3>Вы не можете просматривать заказы не войдя в аккаунт</h3>
Используйте меню аккаунта для регистрации или входа
{% endif %}
{% for order in orders %}
<div class="order-wrapper">
<span class="order-pub-date">{{ order.create_time }}</span>
<h3>{{ order.name }}</h3>
<p>{{ order.description }}</p>
</div>
{% endfor %}
{% endblock %}