ResortApp/templates/diaxeirisi/Dashboard.Rooms.html
Argyrios Deligiannidis e84cc555a2 alion
2022-06-26 23:19:01 +03:00

69 lines
3.2 KiB
HTML

{% load dictionary_access %}
{% load static %}
{% include "diaxeirisi/00_head.html" %}
<body id="app-container" class="menu-default show-spinner">
{% include "diaxeirisi/01_menu.html" %}
<main>
<div class="container-fluid">
<div class="row mb-4">
<div class="col-12">
<h2>Δωμάτια</h2>
<div class="separator mb-5"></div>
</div>
<div class="col-12 mb-4">
<div class="card">
<div class="card-body">
<table class="data-table data-table-rooms">
<thead>
<tr>
<th>Αριθμός</th>
<th>Κατάσταση</th>
<th>Κατηγορία</th>
<th>Κρεβάτια</th>
<th>Χωρητικότητα</th>
<th>Τιμή</th>
<th>Προβολή</th>
</tr>
</thead>
<tbody>
{% for room in RoomObj %}
<tr>
<td>{{ room.number }}</td>
<td>
{% if room.id in Booked.keys %}
<a href="/dx/{{ Booked|get_item:room.id|get_item:'b_id' }}/update">
<span class="badge badge-pill badge-outline-danger mb-1">Κατειλημμένο απο:<br>{{ Booked|get_item:room.id|get_item:'b_surname' }} {{ Booked|get_item:room.id|get_item:'b_name' }}</span>
</a>
{% else %}
<span class="badge badge-pill badge-outline-success mb-1">Ελεύθερο</span>
{% endif %}
</td>
<td>{{ room.category }}</td>
<td>{{ room.beds }}</td>
<td>{{ room.capacity }}</td>
<td>{{ room.price}}</td>
<td>
<a href="/dx/room/{{ room.id }}/update">
<button type="button" class="btn btn-outline-primary">
Επεξεργασία</button>
</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</main>
{% include "diaxeirisi/99_footer.html" %}