25 lines
666 B
HTML
25 lines
666 B
HTML
|
{% extends 'data/base.html' %}
|
||
|
{% block title %}OLED{% 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>
|
||
|
<br />
|
||
|
<input type="text" name="text" id="text" maxlength="154" required>
|
||
|
<br /><br />
|
||
|
<button type="submit">Write</button>
|
||
|
<a href="{{ url_for('data.view_all') }}">back</a>
|
||
|
</form>
|
||
|
{% endblock %}
|