{% extends 'base/layout.html' %} {% load static %} {% block title %}Route Planner{% endblock %} {% block content %}

Route Planner

{% csrf_token %} {% if cable %} {% endif %} {# === Endpoints === #}
Endpoints
{% if cable %}
Route for cable {{ cable }}
Start: {{ start_structure|default:"(unresolved)" }}
End: {{ end_structure|default:"(unresolved)" }}
{# Hidden inputs carry the values since selects are omitted #} {% if start_structure %} {% endif %} {% if end_structure %} {% endif %} {% else %}
{{ form.start_structure }}
{{ form.end_structure }}
{% endif %}
{# === Constraints === #} {# === Preferences === #}
Preferences
0%
200%
{# === Find Route Button === #}
{# === Results === #}
{% if cable %}

Click Find Route to plan the cable's route.

{% else %}

Select endpoints and click Find Route.

{% endif %}
{% endblock %} {% block javascript %} {{ block.super }} {% endblock %}