style part 3

This commit is contained in:
Łukasz Jędyk 2019-01-13 20:27:23 +01:00
parent a2bc0b224e
commit be223cf8ac
7 changed files with 29 additions and 5 deletions

Binary file not shown.

View File

@ -39,3 +39,12 @@ a {
text-decoration: none !important;
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;
}

View File

@ -21,13 +21,19 @@
<td>{{ room.price }} zł</td>
<td>
{% 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 %}
<form action="{% url 'reservation' %}" method="POST">
{% csrf_token %}
<input type="hidden" name="room" value="{{ room.room_number }}">
<div class="button-box" >
<button>Zarezerwuj</button>
<button>Rezerwuj</button>
</div>
</form>
{% endif %}

View File

@ -1,10 +1,19 @@
{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="stylesheet" type="text/css" href="{% static 'style.css' %}">
<meta charset="UTF-8">
<title>Title</title>
<title>Zarezerwowano pokój</title>
</head>
<body>
{{ status }}
<br>
<center>
<div id="reservationbox">
{{ status }}
</div>
<br>
<button>Wróć na stronę główną</button>
</center>
</body>
</html>