{% extends "pos/base.html" %} {% block title %}Room Status Manager{% endblock %} {% block stylesheets %} {% endblock %} {% block content %}

Room Status Manager

Select room statuses first, then save all changes together. Occupied rooms are locked.

{% if messages %} {% for message in messages %}
{{ message }}
{% endfor %} {% endif %}
{% csrf_token %}
Total Rooms: {{ rooms|length }}
{% for room in rooms %} {% with st=room.status|default:"vacant" %} {% endwith %} {% empty %} {% endfor %}
Room Category Floor Current Status Booking New Status
{{ room.room_no }}
{% if room.category %} {{ room.category.name }} {% else %} No Category {% endif %} {% if room.floor %} {{ room.floor }} {% else %} - {% endif %} {{ room.get_status_display }} {% if room.current_booking %} #{{ room.current_booking.booking_code }} {% else %} No active booking {% endif %} {% if room.current_booking or room.status == RoomStatus.OCCUPIED %}
Locked while occupied
{% else %} {% endif %}
No rooms found.
{% endblock %}