{% extends 'base/base.html'%} {% block content%}
Room No | Room Type | Price | Customer Name | Booked On | Booking Data | Edit | Delete |
---|---|---|---|---|---|---|---|
{{room.room_no}} | {{room.room_type}} | {{room.price}} | {% with data=room.booking_set.all.0 %}{{data.user_id.username}} | {{data.booked_on}} | {% if room.is_available%} Available {% else %} {{data.start_day}} to {{data.end_day}} {% endif %} | Edit | Delete | {% endwith %}
Sorry no rooom has been added by you, please add a room now Here
{% endif %}