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; 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;
}

View File

@ -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 %}

View File

@ -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>