{% extends "pos/base.html" %} {% block title %}{% if is_edit %}Edit{% else %}Add{% endif %} Category{% endblock %} {% block heading %}{% if is_edit %}Edit{% else %}Add{% endif %} Room Category{% endblock %} {% if form.errors %}
Fix the errors below.
{% endif %} {% block content %}
{% csrf_token %}
{{ form.code }}
{{ form.name }}
{{ form.capacity_adults }}
{{ form.capacity_children }}
{{ form.base_rate }}
{{ form.description }}
{{ form.photo }} Recommended: 1200×600px, JPG/PNG/WebP, ≤5MB (auto center-crop to 4×2 inch ratio)
{% if is_edit and obj.photo %}
Current
{% endif %}
Cancel
{% endblock %}