{% extends 'base.html' %} {% load static from staticfiles %} {% block title %} | {% if object %} Squad {{ object }} {% else %} New Squad {% endif %} {% endblock title %} {% block content %}
{% if object %}

Editing {{ object }}

{% else %}

New Squad

{% endif %}
{% csrf_token %} {{ form.non_field_errors }} {% if instructions %} {# No, we dont' have to close that

tag. This is HTML5 baby! #}

{{ instructions }} {% endif %} {{ form.as_table }}

{% if docstring %}

{{ docstring }}{% endif %} {# only show add host button if the squad is saved #} {% if object %}

Delete Squad

{% endif %}
{# Only show host list if it's not a new squad #} {% if object %}

Hosts {% if object %} Add Host {% endif %}

{% endif %}
{# endrow #} {% endblock content %} {% block script %} {# the box for each host #} {# the inner grid of proc data for each host #} {% endblock script %}