{% set title = "Resource Management" %}
{% set about = "Here you can operate with resources. " %}
{% set navigation = [('Admin', ''), ('Resources', '')] %}
{% include 'include_header.html' %}
{% if current_user.is_manager %}
{% endif %}
Id
Image
Color
Resource Name
Status
Tags
Requires Slot
Latest cancel (h)
Min/Max booking (h)
Daily Cost ({{ currency }})
{% if current_user.is_manager %}
Actions
{% endif %}
{% for r in resources %}
{{ r['id'] }}
{% if r['image'] %}
{% endif %}
{{ r['name'] }}
{% set badge_type = 'success' if r['status'] == 'active' else 'light' %}
{{ r['status'] }}
{{ r['tags'] }}
{{ r['requires_slot'] }}
{{ r['latest_cancellation'] }}
{{ r['min_booking'] }} / {{ r['max_booking'] }}
{{ r['daily_cost'] }}
{% if current_user.is_manager %}
{% endif %}
{% endfor %}