{% extends "base.html" %} {% block app_content %}

All Bookings


{% for booking in bookings %} {% set booking_status_text = booking_status_id_to_text[booking.status_id] %} {% set booking_user = user_id_to_name[booking.user_id] %} {% set text_color = '#808080' %} {% if booking_status_text == 'new' %} {% set text_color = '#808080' %} {% elif booking_status_text == 'deploying' %} {% set text_color = '#f4d03f' %} {% elif booking_status_text == 'active' %} {% set text_color = '#239b56' %} {% elif booking_status_text == 'expired' %} {% set text_color = '#eb984e' %} {% elif booking_status_text == 'failed' %} {% set text_color = '#ff0000' %} {% elif booking_status_text == 'cancelled' %} {% set text_color = '#cfcbcb' %} {% endif -%} {% endfor %}
# User Flavor IP Created On Expires On Status Action
{{ booking.id }} {{ booking_user }} {{ booking.scenario }} {{ booking.floating_ip }} {{ booking.created_on }} {{ booking.expires_on }} {{ booking_status_text }}
{% if prev_url %} Newer bookings   {% endif %} {% if next_url %} Previous bookings {% endif %}
{% endblock %}