21 lines
559 B
HTML
21 lines
559 B
HTML
|
{% for message in get_flashed_messages() %}
|
||
|
<div class="flash">{{ message }}</div>
|
||
|
<br>
|
||
|
{% endfor %}
|
||
|
<form method="POST">
|
||
|
<label for="device_id">deviceID:</label>
|
||
|
<br>
|
||
|
<input name="device_id" id="device_id" required>
|
||
|
<br><br>
|
||
|
<label for="sensor_type">sensor type:</label>
|
||
|
<br>
|
||
|
<input name="sensor_type" id="sensor_type" required>
|
||
|
<br><br>
|
||
|
<label for="data">data:</label>
|
||
|
<br>
|
||
|
<input type="number" name="data" id="data" required>
|
||
|
<br><br>
|
||
|
<button type="submit">add</button>
|
||
|
<a href="{{ url_for('data.view_all') }}">back</a>
|
||
|
</form>
|