This commit is contained in:
denisvandyshev 2023-12-14 14:13:08 +03:00
parent dd1e910417
commit 07ebadcdde
11 changed files with 136 additions and 47 deletions

Binary file not shown.

View File

@ -34,7 +34,6 @@ urlpatterns = [
path('check_choice/main', index_page), path('check_choice/main', index_page),
path('check_choice/tickets.html', tickets_page) path('check_choice/tickets.html', tickets_page)
] ]

BIN
static/bg7.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 241 KiB

BIN
static/bg_main.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

BIN
static/screen-15.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 222 KiB

BIN
static/success.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

View File

@ -4,10 +4,70 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>Title</title> <title>Title</title>
<style>
body {
font-family: Arial;
background-image: url('{% static "bg_main.jpg" %}' );
background-size: 110vw;
background-repeat: no-repeat;
}
</style>
</head> </head>
<body> <body>
<div>Вы успешно оплатили {{total_price}} P. <div class="container" style="margin-top: 15%">
<br>Возьмите пожалуйста чек <div class="row justify-content-center">
<div class="col-md-5">
<div class="message-box _success">
<img src="{% static 'success.jpg'%}" width="20%">
<i class="fa fa-check-circle" aria-hidden="true"></i>
<h2> Your payment was successful </h2>
<p> Thank you for your payment. we will <br>
be in contact with more details shortly </p>
<meta http-equiv="refresh" content="5; url=main" />
</div>
</div>
</div>
<hr>
</div>
</div> </div>
</body> </body>
</html> </html>
<style>
.centered-div {
text-align: center;
}
._failed{ border-bottom: solid 4px red !important; }
._failed i{ color:red !important; }
._success {
box-shadow: 0 15px 25px #00000019;
width: 100%;
text-align: center;
margin: 40px auto;
border-bottom: solid 4px #28a745;
}
._success i {
font-size: 55px;
color: #28a745;
}
._success h2 {
margin-bottom: 12px;
font-size: 40px;
font-weight: 500;
line-height: 1.2;
margin-top: 10px;
}
._success p {
margin-bottom: 0px;
font-size: 18px;
color: #495057;
font-weight: 500;
}
</style>

View File

@ -6,24 +6,26 @@
<title>Title</title> <title>Title</title>
<style> <style>
body { body {
background-image: url('{% static "bg6.jpg" %}' ); background-image: url('{% static "bg_main.jpg" %}' );
background-size: inherit; background-size: 110vw;
background-repeat: no-repeat;
font-family: Arial;
} }
</style> </style>
</head> </head>
<body> <body>
<div style="font-size: 50px;background-color: #eceeef; width: 45%; border-radius: 10px; margin-top: 10% ; margin-left: 5%" > <div style="font-size: 50px; width: 45%; border-radius: 10px; margin-top: 10% ; margin-left: 30%" >
<div style="color: black">Ваш выбор: <br> {{tickets.0}} - {{quantity1}} <div style="color: black" class="centered-div">Ваш выбор: <br> {{tickets.0}} - {{quantity1}} шт.
<br> {{tickets.1}} - {{quantity2}} <br> {{tickets.1}} - {{quantity2}} шт.
<br> {{tickets.2}} - {{quantity3}} <br> {{tickets.2}} - {{quantity3}} шт.
<br> Сумма к оплате - {{total_price}} P. <br> Сумма к оплате - {{total_price}} P.
</div> </div>
<div class="centered-div" >Выберите способ оплаты: <div class="centered-div" >Выберите способ оплаты:
<br> <br>
<a href="#openQR" ><img src='{% static "sbp.jpg"%}'></a> <a href="#openQR" ><img src='{% static "sbp.jpg"%}' width="20%"></a>
<a href="#opencash" ><img src='{% static "cash.jpg"%}' width="20%"></a> <a href="#opencash" ><img src='{% static "cash.jpg"%}' width="20%"></a>
<a href="#openBN" ><img src='{% static "webmoney.jpg"%}' width="20%"></a> <a href="#openBN" ><img src='{% static "webmoney.jpg"%}' width="24%"></a>
</div> </div>
</div> </div>
@ -32,14 +34,14 @@
<div class="modal-dialog"> <div class="modal-dialog">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
<h3 class="modal-title">Заголовок</h3>
<a href="#close" title="Close" class="close">×</a> <a href="#close" title="Close" class="close">×</a>
</div> </div>
<div class="modal-body"> <div class="modal-body centered-div">
<ul>
<li><a href="QR.html" ><img src="http://qrcoder.ru/code/?http%3A%2F%2F127.0.0.1%3A8000%2Fcheck_choice%2FQR.html&4&0" width="148" height="148" border="0" title="QR код"></a></li> <a href="QR.html" ><img src="http://qrcoder.ru/code/?http%3A%2F%2F127.0.0.1%3A8000%2Fcheck_choice%2FQR.html&4&0" width="350" height="350" border="0" title="QR код"></a>
<meta http-equiv="refresh" content="3;url=main" />
</ul>
</div> </div>
</div> </div>
</div> </div>
@ -49,15 +51,15 @@
<div class="modal-dialog"> <div class="modal-dialog">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
<h3 class="modal-title">Заголовок</h3>
<a href="#close" title="Close" class="close">×</a> <a href="#close" title="Close" class="close">×</a>
</div> </div>
<div class="modal-body"> <div class="modal-body centered-div" style="font-size: 32px">
<ul>
<li>Внесите в купюроприемник сумму наличных, равную {{total_price}} P.</li> Внесите в купюроприемник сумму наличных, равную {{total_price}} P. и нажмите "Далее"
<meta http-equiv="refresh" content="3;url=main" /> <a href="QR.html"><br><br><button style="font-size: 32px" >Далее</button></a>
</ul>
</div> </div>
</div> </div>
</div> </div>
@ -67,15 +69,15 @@
<div class="modal-dialog"> <div class="modal-dialog">
<div class="modal-content"> <div class="modal-content">
<div class="modal-header"> <div class="modal-header">
<h3 class="modal-title">Заголовок</h3>
<a href="#close" title="Close" class="close">×</a> <a href="#close" title="Close" class="close">×</a>
</div> </div>
<div class="modal-body"> <div class="modal-body centered-div" style="font-size: 32px">
<ul>
<li>едуйте инструкциям на терминале</li> едуйте инструкциям на терминале
<meta http-equiv="refresh" content="3;url=main" /> <a href="QR.html"><br><br><button style="font-size: 32px" >Далее</button></a>
</ul>
</div> </div>
</div> </div>
</div> </div>
@ -83,6 +85,8 @@
</body> </body>
</html> </html>
@ -121,7 +125,7 @@
} }
@media (min-width: 576px) { @media (min-width: 576px) {
.modal-dialog { .modal-dialog {
max-width: 500px; max-width: 750px;
margin: 30px auto; /* отображение окна по центру */ margin: 30px auto; /* отображение окна по центру */
} }
} }

View File

@ -9,12 +9,15 @@
<title>Title</title> <title>Title</title>
<style> <style>
body { body {
background-image: url('{% static "bg.jpg" %}'); background-image: url('{% static "bg_main.jpg" %}');
font-family: Arial;
background-size: 110vw;
background-repeat: no-repeat;
} }
</style> </style>
</head> </head>
<body > <body style="font-family: 'Fredoka One', cursive">
<h1 class="centered-div" style="font-size: 72px; margin-bottom: 50px;">ЗООПАРК "СКАЗКА"</h1> <h1 class="centered-div" style="font-size: 72px; margin-bottom: 50px;">Симферопольский Зоопарк</h1>
<div class="centered-div"> <div class="centered-div">
<a href="tickets.html"><button type="button" style="width: 800px; height: 150px; font-size: 50px; opacity: 0.7; margin-bottom: 50px; border-radius: 10px;">Билеты</button></a> <a href="tickets.html"><button type="button" style="width: 800px; height: 150px; font-size: 50px; opacity: 0.7; margin-bottom: 50px; border-radius: 10px;">Билеты</button></a>
</div> </div>
@ -22,7 +25,23 @@
<a href="#info"><button type="button" style="width: 800px; height: 150px; font-size: 50px; opacity: 0.7; margin-bottom: 50px; border-radius: 10px;">Наши правила</button></a> <a href="#info"><button type="button" style="width: 800px; height: 150px; font-size: 50px; opacity: 0.7; margin-bottom: 50px; border-radius: 10px;">Наши правила</button></a>
</div> </div>
<div id="info" class="modal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h3 class="modal-title">Заголовок</h3>
<a href="#close" title="Close" class="close">×</a>
</div>
<div class="modal-body">
<ul>
<li>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec, pellentesque eu, pretium quis, sem. Nulla consequat massa quis enim. Donec pede justo, fringilla vel, aliquet nec, vulputate eget, arcu. In enim justo, rhoncus ut, imperdiet a, venenatis vitae, justo. Nullam dictum felis eu pede mollis pretium. Integer tincidunt. Cras dapibus. Vivamus elementum semper nisi. Aenean vulputate eleifend tellus. Aenean leo ligula, porttitor eu, consequat vitae, eleifend ac, enim. Aliquam lorem ante, dapibus in, viverra quis, feugiat a, tellus. Phasellus viverra nulla ut metus varius laoreet. Quisque rutrum. Aenean imperdiet. Etiam ultricies nisi vel augue. Curabitur ullamcorper ultricies nisi. Nam eget dui. Etiam rhoncus. Maecenas tempus, tellus eget condimentum rhoncus, sem quam semper libero, sit amet adipiscing sem neque sed ipsum. Nam quam nunc, blandit vel, luctus pulvinar, hendrerit id, lorem. Maecenas nec odio et ante tincidunt tempus. Donec vitae sapien ut libero venenatis faucibus. Nullam quis ante. Etiam sit amet orci eget eros faucibus tincidunt. Duis leo. Sed fringilla mauris sit amet nibh. Donec sodales sagittis magna. Sed consequat, leo eget bibendum sodales, augue velit cursus nunc,</li>
</ul>
</div>
</div>
</div>
</div>
<script src="{% static '/js/jquery-3.7.1.min.js' %}"></script> <script src="{% static '/js/jquery-3.7.1.min.js' %}"></script>
<script src="{% static '/js/custom.js' %}"></script> <script src="{% static '/js/custom.js' %}"></script>
</body> </body>

View File

@ -9,21 +9,25 @@
<title>Tickets</title> <title>Tickets</title>
<style> <style>
body { body {
background-image: url('{% static "bg5.jpg" %}'); background-image: url('{% static "bg_main.jpg" %}');
opacity: 100%;
font-family: Arial;
background-size: 110vw;
background-repeat: no-repeat;
} }
</style> </style>
</head> </head>
<body> <body>
<h1 class="centered-div" style="font-size: 72px; margin-bottom: 50px; margin-top: 0; color: mediumseagreen">Пожалуйста, выберите тип билетов и укажите их количество</h1> <h1 class="centered-div" style="font-size: 72px; margin-bottom: 50px; margin-top: 0; ">Пожалуйста, выберите тип билетов и укажите их количество</h1>
<form action="{% url 'check_choice' %}" > <form action="{% url 'check_choice' %}" >
<table style="margin-left: 300px"> <table style="margin-left: 300px">
<thead> <thead>
<tr> <tr>
<th style="color: mediumseagreen; font-size: 50px"> Наименование</th> <th style=" font-size: 50px"> Наименование</th>
<th style="color: mediumseagreen; font-size: 50px; padding-left: 100px"> Цена</th> <th style=" font-size: 50px; padding-left: 100px"> Цена</th>
<th style="color: mediumseagreen; font-size: 50px; padding-left: 100px""> Количество</th> <th style=" font-size: 50px; padding-left: 100px""> Количество</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -31,9 +35,9 @@
<tr> <tr>
<td class="centered-div"><button type="button" style="width: 650px; height: 90px; font-size: 50px; opacity: 0.7; margin-bottom: 50px; border-radius: 10px;">{{tickets.0}} </button></td> <td class="centered-div"><button type="button" style="width: 650px; height: 90px; font-size: 50px; opacity: 0.7; margin-bottom: 50px; border-radius: 10px;">{{tickets.0}} </button></td>
<td class="centered-div"><button style="width: 250px; height: 90px; font-size: 50px; opacity: 0.7; margin-bottom: 50px; margin-left: 100px; border-radius: 10px;"> {{tickets.0.price}} P. </button></td> <td class="centered-div"><button type="button" style="width: 250px; height: 90px; font-size: 50px; opacity: 0.7; margin-bottom: 50px; margin-left: 100px; border-radius: 10px;"> {{tickets.0.price}} P. </button></td>
<td class="centered-div product-data"> <td class="centered-div product-data">
<button style="border: none; background: transparent; margin-bottom: 75px"><span class="change minus" style="font-size: 75px; color: mediumseagreen; margin-left: 10px; font-weight: bold"> <button style="border: none; background: transparent; margin-bottom: 75px"><span class="change minus" style="font-size: 75px; color: red; margin-left: 10px; font-weight: bold">
- -
</span> </span>
<input type="text" class="qty-input" value="{{tickets.0.quantity}}" name="ticket1" style="border: none; font-size: 50px; width: 25px; background: transparent;"> <input type="text" class="qty-input" value="{{tickets.0.quantity}}" name="ticket1" style="border: none; font-size: 50px; width: 25px; background: transparent;">
@ -46,9 +50,9 @@
<tr> <tr>
<td class="centered-div"><button type="button" style="width: 650px; height: 90px; font-size: 50px; opacity: 0.7; margin-bottom: 50px; border-radius: 10px;">{{tickets.1}} </button></td> <td class="centered-div"><button type="button" style="width: 650px; height: 90px; font-size: 50px; opacity: 0.7; margin-bottom: 50px; border-radius: 10px;">{{tickets.1}} </button></td>
<td class="centered-div"><button style="width: 250px; height: 90px; font-size: 50px; opacity: 0.7; margin-bottom: 50px; margin-left: 100px; border-radius: 10px;"> {{tickets.1.price}} P. </button></td> <td class="centered-div"><button type="button" style="width: 250px; height: 90px; font-size: 50px; opacity: 0.7; margin-bottom: 50px; margin-left: 100px; border-radius: 10px;"> {{tickets.1.price}} P. </button></td>
<td class="centered-div product-data"> <td class="centered-div product-data">
<button style="border: none; background: transparent; margin-bottom: 75px"> <span class="change minus" style="font-size: 75px; color: mediumseagreen; margin-left: 10px; font-weight: bold"> <button style="border: none; background: transparent; margin-bottom: 75px"> <span class="change minus" style="font-size: 75px; color: red; margin-left: 10px; font-weight: bold">
- -
</span> </span>
<input type="text" class="qty-input" value="{{tickets.1.quantity}}" name="ticket2" style="border: none; font-size: 50px; width: 25px; background: transparent;"> <input type="text" class="qty-input" value="{{tickets.1.quantity}}" name="ticket2" style="border: none; font-size: 50px; width: 25px; background: transparent;">
@ -59,9 +63,9 @@
<tr> <tr>
<td class="centered-div"><button type="button" style="width: 650px; height: 90px; font-size: 50px; opacity: 0.7; margin-bottom: 50px; border-radius: 10px;">{{tickets.2}} </button></td> <td class="centered-div"><button type="button" style="width: 650px; height: 90px; font-size: 50px; opacity: 0.7; margin-bottom: 50px; border-radius: 10px;">{{tickets.2}} </button></td>
<td class="centered-div"><button style="width: 250px; height: 90px; font-size: 50px; opacity: 0.7; margin-bottom: 50px; margin-left: 100px; border-radius: 10px;"> {{tickets.2.price}} P. </button></td> <td class="centered-div"><button type="button" style="width: 250px; height: 90px; font-size: 50px; opacity: 0.7; margin-bottom: 50px; margin-left: 100px; border-radius: 10px;"> {{tickets.2.price}} P. </button></td>
<td class="centered-div product-data"> <td class="centered-div product-data">
<button style="border: none; background: transparent; margin-bottom: 75px"><span class="change minus" style="font-size: 75px; color: mediumseagreen; margin-left: 10px; font-weight: bold"> <button style="border: none; background: transparent; margin-bottom: 75px"><span class="change minus" style="font-size: 75px; color: red; margin-left: 10px; font-weight: bold">
- -
</span> </span>
<input type="text" class="qty-input" value="{{tickets.2.quantity}}" name="ticket3" style="border: none; font-size: 50px; width: 25px; background: transparent;"> <input type="text" class="qty-input" value="{{tickets.2.quantity}}" name="ticket3" style="border: none; font-size: 50px; width: 25px; background: transparent;">
@ -100,6 +104,9 @@
</form> </form>
<div style="color: darkred; font-size: 24px;">* Сопровождающие льготных посетителей приобретают "Взрослый билет". Льготникам потребуется показать документы на право льготы охраннику</div> <div style="color: darkred; font-size: 24px;">* Сопровождающие льготных посетителей приобретают "Взрослый билет". Льготникам потребуется показать документы на право льготы охраннику</div>