{% load crispy_forms_tags %}
Your Switch
{% if switches %}
{% comment %} {% endcomment %} {% for switch in switches %} {% endfor %}
SN LocationStatusToggle
{{ switch.sn }} {{ switch.location }} {% if switch.status == 1 %} {% else %} {% endif %}
{% elif switches_dependent %}
{% for switch in switches_dependent %} {% endfor %}
ID Location Toggle
{{ switch.sn }} {{ switch.location }} {% if switch.status == 1 %} {% else %} {% endif %}
{% else %}

No Switches Registered

{% endif %} {% if is_dependent %} {% else %} {% endif %}