Fix order logic. Currently you can change contact data ant it's working correctly
This commit is contained in:
@@ -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 %}
|
||||
|
Reference in New Issue
Block a user