{% load static %}
Motion Sensor
{% if motionsensor %} {% for ms in motionsensor %}

Current Status

{{ ms.status }}

{% comment %} {% endcomment %}
{% if ms.status == "Activity Detected" %} {% endif %}
{% endfor %} {% elif ms_dependent %} {% for ms in ms_dependent %}

Current Status

{{ ms.status }}

{% if ms.status == "Activity Detected" %} {% endif %}
{% if is_dependent %} {% else %}
{% endif %} {% endfor %} {% else %}

No Motion Sensor System Registered

{% endif %} {% if is_dependent %} {% elif not motionsensor %} {% endif %}
{% if motionsensor or ms_dependent %} {% endif %}