ioc-invicta/web/templates/data/led.html

25 lines
719 B
HTML
Raw Permalink Normal View History

2023-11-19 13:03:35 +01:00
{% extends 'data/base.html' %}
{% block title %}LED{% endblock %}
{% block body %}
{% for message in get_flashed_messages() %}
<div class="flash">{{ message }}</div>
<br />
{% endfor %}
<form method="POST">
<label for="device_id">deviceID:</label>
<br />
<select name="device_id" id="device_id">
{% for i, id in data %}
<option value="{{ id['device_id'] }}">{{ i }}</option>
{% endfor %}
</select>
<br /><br />
<label for="data">data:</label>
<p>Set 0 to toggle, or any number to set the frequency.</p>
<input type="number" name="period" id="period" required value="0"/>
<br /><br />
<button type="submit">Shine</button>
<a href="{{ url_for('data.view_all') }}">back</a>
</form>
{% endblock %}