47 lines
1.4 KiB
HTML
47 lines
1.4 KiB
HTML
{% load static %}
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<link rel="stylesheet" type="text/css" href="{% static 'style.css' %}">
|
|
<meta charset="UTF-8">
|
|
<title>Hotel INO Scrum</title>
|
|
</head>
|
|
<body>
|
|
<h1>Hotel INO Scrum</h1>
|
|
<center><h3>Lista pokoi dostępnych w naszym hotelu</h3></center>
|
|
<table id="hotels">
|
|
<th>Numer pokoju</th>
|
|
<th>Typ pokoju</th>
|
|
<th>Cena</th>
|
|
<th>Rezerwacja</th>
|
|
{% for room in rooms %}
|
|
<tr>
|
|
<td>{{ room.room_number }}</td>
|
|
<td>{{ room.room_type }}</td>
|
|
<td>{{ room.price }} zł</td>
|
|
<td>
|
|
{% if room.reserved %}
|
|
<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>Rezerwuj</button>
|
|
</div>
|
|
</form>
|
|
{% endif %}
|
|
</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
|
|
</body>
|
|
</html>
|