style part 3
This commit is contained in:
parent
a2bc0b224e
commit
be223cf8ac
BIN
hotel/db.sqlite3
BIN
hotel/db.sqlite3
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -39,3 +39,12 @@ a {
|
|||||||
text-decoration: none !important;
|
text-decoration: none !important;
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
|
#reservationbox {
|
||||||
|
font-family: "Trebuchet MS", Arial, Helvetica, sans-serif;
|
||||||
|
font-size: 30px;
|
||||||
|
background-color: white;
|
||||||
|
color: black;
|
||||||
|
width: 60%;
|
||||||
|
padding: 30px;
|
||||||
|
border: 2px solid grey;
|
||||||
|
}
|
||||||
|
@ -21,13 +21,19 @@
|
|||||||
<td>{{ room.price }} zł</td>
|
<td>{{ room.price }} zł</td>
|
||||||
<td>
|
<td>
|
||||||
{% if room.reserved %}
|
{% if room.reserved %}
|
||||||
ZAREZERWOWANE
|
<form action="{% url 'reservation' %}" method="POST">
|
||||||
|
{% csrf_token %}
|
||||||
|
<input type="hidden" name="room" value="{{ room.room_number }}">
|
||||||
|
<div class="button-box" >
|
||||||
|
<button>Rezerwuj</button>
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
{% else %}
|
{% else %}
|
||||||
<form action="{% url 'reservation' %}" method="POST">
|
<form action="{% url 'reservation' %}" method="POST">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<input type="hidden" name="room" value="{{ room.room_number }}">
|
<input type="hidden" name="room" value="{{ room.room_number }}">
|
||||||
<div class="button-box" >
|
<div class="button-box" >
|
||||||
<button>Zarezerwuj</button>
|
<button>Rezerwuj</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -1,10 +1,19 @@
|
|||||||
|
{% load static %}
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
|
<link rel="stylesheet" type="text/css" href="{% static 'style.css' %}">
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>Title</title>
|
<title>Zarezerwowano pokój</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
{{ status }}
|
<br>
|
||||||
|
<center>
|
||||||
|
<div id="reservationbox">
|
||||||
|
{{ status }}
|
||||||
|
</div>
|
||||||
|
<br>
|
||||||
|
<button>Wróć na stronę główną</button>
|
||||||
|
</center>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue
Block a user