19 lines
891 B
HTML
19 lines
891 B
HTML
<template name="state">
|
|
<div class="col-md-12">
|
|
{{#with controller_state}}
|
|
<img src="{{ bucket_image }}" class="img-responsive center-block" id="bucket_image" />
|
|
<div class="text-center">
|
|
{{controller_id}}:
|
|
{{#with last_sensor_reading}} <strong> {{ temperatureValue }} °C, {{ humidityValue }} % </strong> {{/with}}
|
|
</div>
|
|
<div class="text-center">
|
|
Automatsko zalijevanje:<br /> <strong>{{ pretty_days config.automaticDaysOfWeek }} {{ pretty_time config.automaticDaysOfWeek config.automaticTimeOfDay }}</strong> <button id="run_settings" class="btn btn-default"> <i class="fa fa-wrench"></i> </button>
|
|
</div>
|
|
{{/with}}
|
|
<div>
|
|
<button id="water_now" class="{{ water_now_button_class }}">Zalij sada</button>
|
|
<button id="stop_water_now" class="{{ stop_button_class }}">Prekini zalijevanje</button>
|
|
</div>
|
|
</div>
|
|
</template>
|