поправил страницу выбора места
This commit is contained in:
parent
c08a38f313
commit
7d7afd64a7
@ -4,3 +4,11 @@
|
|||||||
body {
|
body {
|
||||||
background-color: #0d1d3a;
|
background-color: #0d1d3a;
|
||||||
}
|
}
|
||||||
|
html::-webkit-scrollbar {
|
||||||
|
width: 0.8vw;
|
||||||
|
}
|
||||||
|
html::-webkit-scrollbar-thumb {
|
||||||
|
background-color: #eaeaea;
|
||||||
|
border-radius: 5vw;
|
||||||
|
border: 4px solid #0d1d3a;
|
||||||
|
}
|
||||||
@ -18,3 +18,11 @@
|
|||||||
width: 25vw !important;
|
width: 25vw !important;
|
||||||
border-radius: 3vw;
|
border-radius: 3vw;
|
||||||
}
|
}
|
||||||
|
.film_card_column::-webkit-scrollbar {
|
||||||
|
height: 7px;
|
||||||
|
}
|
||||||
|
.film_card_column::-webkit-scrollbar-thumb {
|
||||||
|
background-color: #0d1d3a;
|
||||||
|
border-radius: 5vw;
|
||||||
|
border: 1px solid #ffffff;
|
||||||
|
}
|
||||||
@ -1,36 +1,19 @@
|
|||||||
.seats_card {
|
.seats_card {
|
||||||
|
margin-left: 27%;
|
||||||
|
margin-right: 27%;
|
||||||
|
margin-top: 2vw;
|
||||||
|
margin-bottom: 5vw;
|
||||||
background-color: #eaeaea;
|
background-color: #eaeaea;
|
||||||
border-radius: 3vw;
|
border-radius: 3vw;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: column;
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
width: 46%;
|
||||||
width: 50%;
|
|
||||||
margin: 0 auto;
|
|
||||||
margin-top: 2vw;
|
|
||||||
|
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
}
|
}
|
||||||
.card_body {
|
|
||||||
width: 80%;
|
|
||||||
}
|
|
||||||
.line {
|
|
||||||
width: 30%;
|
|
||||||
height: 0.5vw;
|
|
||||||
background-color: black;
|
|
||||||
position: absolute;
|
|
||||||
top: 70%;
|
|
||||||
border-radius: 3vw;
|
|
||||||
margin-left: 5%;
|
|
||||||
margin-top: 8vw;
|
|
||||||
}
|
|
||||||
h6 {
|
|
||||||
text-align: center;
|
|
||||||
margin-top: 0.4vw;
|
|
||||||
}
|
|
||||||
.seat_number {
|
.seat_number {
|
||||||
width: 1vw;
|
width: 1vw;
|
||||||
height: 1.1vw;
|
height: 1.1vw;
|
||||||
@ -54,29 +37,34 @@ h6 {
|
|||||||
border-radius: 3vw;
|
border-radius: 3vw;
|
||||||
}
|
}
|
||||||
.film_info_block {
|
.film_info_block {
|
||||||
margin-right: 25%;
|
margin-top: 5vw;
|
||||||
margin-left: 25%;
|
margin-right: 27%;
|
||||||
width: 50%;
|
margin-left: 27%;
|
||||||
|
width: 46%;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
|
height: 20vw;
|
||||||
}
|
}
|
||||||
.film_info_text_block {
|
.film_info_text_block {
|
||||||
height: 20vw;
|
height: 20vw;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
flex-wrap: nowrap;
|
flex-wrap: nowrap;
|
||||||
justify-content: space-evenly;
|
justify-content: flex-start;
|
||||||
margin: 2vw;
|
align-items: flex-start;
|
||||||
|
margin-left: 1vw;
|
||||||
}
|
}
|
||||||
.film_info_text {
|
.film_info_text, .film_info_description {
|
||||||
color: #eaeaea;
|
color: #eaeaea;
|
||||||
}
|
}
|
||||||
|
.film_info_description {
|
||||||
|
max-height: 9.9vw;
|
||||||
|
overflow-y: auto;
|
||||||
|
}
|
||||||
.cell {
|
.cell {
|
||||||
background-color: transparent !important;
|
background-color: transparent !important;
|
||||||
}
|
|
||||||
.cell {
|
|
||||||
height: 4vw;
|
height: 4vw;
|
||||||
width: 3.5vw;
|
width: 3.5vw;
|
||||||
}
|
}
|
||||||
@ -84,4 +72,20 @@ h6 {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
width: 3vw;
|
||||||
|
}
|
||||||
|
.seats_card::-webkit-scrollbar {
|
||||||
|
height: 7px;
|
||||||
|
}
|
||||||
|
.seats_card::-webkit-scrollbar-thumb {
|
||||||
|
background-color: #0d1d3a;
|
||||||
|
border-radius: 5vw;
|
||||||
|
border: 1px solid #eaeaea;
|
||||||
|
}
|
||||||
|
.film_info_description::-webkit-scrollbar {
|
||||||
|
width: 5px;
|
||||||
|
}
|
||||||
|
.film_info_description::-webkit-scrollbar-thumb {
|
||||||
|
background-color: #eaeaea;
|
||||||
|
border-radius: 5vw;
|
||||||
}
|
}
|
||||||
0
CineSync/templates/tickets/ticket_details.html
Normal file
0
CineSync/templates/tickets/ticket_details.html
Normal file
@ -14,15 +14,20 @@
|
|||||||
<h1 class="film_info_text">{{ session.film.name }}</h1>
|
<h1 class="film_info_text">{{ session.film.name }}</h1>
|
||||||
<p class="film_info_text">{{ session.auditorium.number }}</p>
|
<p class="film_info_text">{{ session.auditorium.number }}</p>
|
||||||
<p class="film_info_text">{{ session.start_datetime }}</p>
|
<p class="film_info_text">{{ session.start_datetime }}</p>
|
||||||
|
<p class="film_info_description">{{ session.film.description }}</p>
|
||||||
|
<div class="tags_block">
|
||||||
|
{% for genre in session.film.genres.all %}
|
||||||
|
<div class="badge text-bg-secondary genre">{{genre.name}}</div>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="seats_card" style="height: {{ height }}vw;">
|
<div class="seats_card" style="height: {{ height }}vw;">
|
||||||
<div class="card_body">
|
|
||||||
<table>
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
{% for row in session.auditorium.row_count|get_range %}
|
{% for row in session.auditorium.row_count|get_range %}
|
||||||
<tr>
|
<tr>
|
||||||
<td class="row_number_cell cell">{{ row }}</td>
|
<td class="row_number_cell cell">Ряд {{ row }}</td>
|
||||||
{% for seat in seats %}
|
{% for seat in seats %}
|
||||||
<td class="cell">
|
<td class="cell">
|
||||||
<a class="film_session">
|
<a class="film_session">
|
||||||
@ -38,6 +43,5 @@
|
|||||||
<button class="btn btn-primary buy_btn">Купить билет</button>
|
<button class="btn btn-primary buy_btn">Купить билет</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
@ -45,7 +45,7 @@ def session_view(request, sess_id):
|
|||||||
FilmSession.objects.all(),
|
FilmSession.objects.all(),
|
||||||
id=sess_id,
|
id=sess_id,
|
||||||
)
|
)
|
||||||
height = session.auditorium.row_count * 6
|
height = round(session.auditorium.row_count * 4 + 7)
|
||||||
context = {
|
context = {
|
||||||
'session': session,
|
'session': session,
|
||||||
'seats': Row.objects.filter(auditorium_id=session.auditorium.id),
|
'seats': Row.objects.filter(auditorium_id=session.auditorium.id),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user