Commit 8c19b3cb authored by Kristian Tan's avatar Kristian Tan

Able to remove device when its turned on

parent ec36fada
......@@ -20,10 +20,11 @@
{{ pins[pin].name }} :
{% if pins[pin].state == true %}
(<a href="/toggle/{{pin}}">turn off</a>)
(<a href="/remove/{{pin}}">remove</a>)
{% else %}
(<a href="/toggle/{{pin}}">turn on</a>)
(<a href="/remove/{{pin}}">remove</a>)
</p>
(<a href="/remove/{{pin}}">remove</a>)
{% endif %}
{% endif %}
{% endfor %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment