Added time to unlock display

This commit is contained in:
Jared
2017-04-01 22:27:24 +00:00
parent b726139474
commit 0f499d3ae9
4 changed files with 20 additions and 4 deletions
+2 -1
View File
@@ -26,8 +26,9 @@
<a href="/open/tools"><div class="big-button">Open tools</div></a>
<br>
<div class="disable-lock">
<a href="#"><div class="big-button" onclick="lock_fridge()">Lock</div></a>
<a href="{% if locked %}/unlock-fridge{% else %}#{% endif %}" {% if locked %}class="locked"{% endif %}><div class="big-button" {% if not locked %}onclick="lock_fridge()"{% endif %}>{% if locked %}Unlock{% else %}Lock{% endif %}</div></a>
<input type="text" name="period" placeholder="Duration (h)" id="period" class="duration-input">
{% if locked %}<p class="locked_till">The fridge will be locked until {{ timestring }}</p>{% endif %}
</div>
</div>
<div class="shadow" onclick="overlay_out()"></div>