Skip to content

Commit

Permalink
Add backgroud for succes page content. Remove excess content
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtemijRodionov committed Nov 24, 2018
1 parent 1ff5a75 commit 43f7c81
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 11 deletions.
7 changes: 6 additions & 1 deletion front/less/pages/order.less
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,12 @@ div.info {
}

.page-info-message {
.white-plate;

font-size: @f-size-base + 10;
padding: 5px 30px;
margin: 20px 0 20px;
width: 60%;

a {
color: @c-text-red;
Expand Down Expand Up @@ -202,7 +207,7 @@ div.info {
clear: both;
position: relative;
}

&-row:nth-child(odd) .div-table-cell {
background: @c-white;
}
Expand Down
25 changes: 15 additions & 10 deletions templates/ecommerce/order/success.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,44 @@

{% load se_extras %}
{% load pages_extras %}
{% load static %}

{% block stylesheets %}
{{ block.super }}
<link rel="stylesheet" href="{% static 'css/pages.min.css' %}">
{% endblock %}

{% block title %}Спасибо за Ваш заказ{% endblock %}

{% block content %}
<div class="container">
{% if yandex %}
<h1>Спасибо, Ваш заказ оплачен!</h1>
{% else %}
<h1>Заказ принят</h1>
{% endif %}
<div class="page-info-message js-purchased-order"
data-id="{{ order.fake_order_number }}"
data-positions="{{ positions_json }}"
data-total-revenue="{{ total_revenue }}">
<p>Номер вашего заказа {{ order.fake_order_number }}</p>
<p>{% time_to_call %}</p>
<p>Телефон магазина: <a href="tel:{{ shop.cps_phone }}">8 (812) {{ shop.cps_formatted_phone }}</a></p>
{% if yandex %}
<h1>Спасибо, Ваш заказ оплачен!</h1>
{% else %}
<h1>Заказ принят</h1>
{% endif %}

<p>Номер вашего заказа {{ order.fake_order_number }}</p>
{% if order.email %}
<p>Электронная почта: {{ order.email }}</p>
{% endif %}

{% if order.city %}
<p>Город: {{ order.city }}</p>
{% endif %}
<br>
<p>Телефон магазина: <a href="tel:{{ shop.cps_phone }}">8 (812) {{ shop.cps_formatted_phone }}</a></p>
<p>Режим работы:</p>
<ul class="working-hours">
<li>ПН-ПТ 10:00-18:00</li>
<li>ПТ 10:00-17:00</li>
<li>СБ-ВС - выходной</li>
</ul>

<a class="btn btn-pink" href="/">Вернуться на главную</a>
</div>
<a class="btn btn-pink" href="/">Вернуться на главную</a>
</div>
{% endblock %}

0 comments on commit 43f7c81

Please sign in to comment.