92 lines
4.3 KiB
HTML
92 lines
4.3 KiB
HTML
|
<a href="/zones/{{ zone.number}}">
|
||
|
<h4>{{ zone.name }}</h3>
|
||
|
</a>
|
||
|
<table>
|
||
|
<tbody>
|
||
|
<tr>
|
||
|
<td class="icon">
|
||
|
<span class="outer_dot">
|
||
|
<span class="inner_icon {{ 'dot_green' if zone.state else 'dot_red' }}"></span>
|
||
|
</span>
|
||
|
</td>
|
||
|
<td class="property">{{ translater.getTranslation("state") }}:</td>
|
||
|
<td class="value" id="state_text_zone_{{ zone.number }}">
|
||
|
{{ translater.getTranslation("switched on") if zone.state else translater.getTranslation("switched off") }}
|
||
|
</td>
|
||
|
<td>
|
||
|
<select id="duration_zone_{{ zone.number }}">
|
||
|
{% for option in zoneManager.systemSettings.webDurationOptions %}
|
||
|
<option value="{{ option }}">{{ option }} {{ translater.getTranslation("minutes") }}</option>
|
||
|
{% endfor %}
|
||
|
</select>
|
||
|
<button onclick="switchZoneStateByValueID({{'"switch_zone_off"' if zone.state else '"switch_zone_on"'}},'{{ zone.number }}', 'duration_zone_{{ zone.number }}', 60)">{{ translater.getTranslation("turn off") if zone.state else translater.getTranslation("turn on") }}</button>
|
||
|
</td>
|
||
|
<td>
|
||
|
<button onclick="refreshZone({{ zone.number }})">
|
||
|
refresh
|
||
|
</button>
|
||
|
</td>
|
||
|
|
||
|
</tr>
|
||
|
{% if (zone.setState == 1 or zone.setState == 2) %}
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td></td>
|
||
|
<td>
|
||
|
{{translater.getTranslation("until") + zone.endTimeSetState|string}}
|
||
|
</td>
|
||
|
<td>
|
||
|
<button onclick="switchZoneState({{'"switch_zone_off"' if zone.state else '"switch_zone_on"'}},'{{ zone.number }}', -1)">{{ translater.getTranslation("cancel") }}</button>
|
||
|
</td>
|
||
|
</tr>
|
||
|
{% endif %}
|
||
|
{% if zone.planedDuration > 0 %}
|
||
|
<tr>
|
||
|
<td></td>
|
||
|
<td></td>
|
||
|
<td>
|
||
|
{{translater.getTranslation("irragation is planed for") + " " + ((zone.planedDuration/60)|int)|string + " " + translater.getTranslation("minutes") + "." }}
|
||
|
</td>
|
||
|
<td>
|
||
|
<button onclick="deleteJobsForZone('delete_jobs_for_zone','{{ zone.number }}')">{{ translater.getTranslation("delete") }}</button>
|
||
|
</td>
|
||
|
</tr>
|
||
|
{% endif %}
|
||
|
<tr>
|
||
|
<td class="icon">
|
||
|
<span class="outer_dot">
|
||
|
<p class="inner_icon">{{'A' if zone.autoMode else 'M'}}</p>
|
||
|
</span>
|
||
|
</td>
|
||
|
<td>
|
||
|
<label class="toggle">
|
||
|
<input type="checkbox" {{ "checked" if zone.autoMode }} onchange="switchZoneMode(this.checked, {{ zone.number }})">
|
||
|
<span class="slider"></span>
|
||
|
<span class="labels" data-on="A" data-off="M"></span>
|
||
|
</label>
|
||
|
</td>
|
||
|
<td class="property">{{ translater.getTranslation("operating mode") }}:</td>
|
||
|
<td class="value">{{translater.getTranslation("automatic mode") if zone.autoMode else translater.getTranslation("manual mode")}}</td>
|
||
|
<td>
|
||
|
<button onclick="executeAction('switch_zone_mode','{{ zone.number }}', '{{ 'manual' if zone.autoMode else 'automatic' }}')">{{translater.getTranslation("switch to manual mode") if zone.autoMode else translater.getTranslation("switch to automatic mode")}}</button>
|
||
|
</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="icon">
|
||
|
<span class="outer_dot">
|
||
|
<span class="inner_icon {{ 'dot_green' if(zone.actualHumidity >= zone.desiredHumidity) else 'dot_red' }}"></span>
|
||
|
</span>
|
||
|
</td>
|
||
|
<td class="property">{{ translater.getTranslation("actual humidity") }}:</td>
|
||
|
<td class="value">{{ zone.actualHumidity}}</td>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<td class="icon">
|
||
|
|
||
|
</td>
|
||
|
<td class="property">{{ translater.getTranslation("desired humidity") }}:</td>
|
||
|
<td class="value">{{ zone.desiredHumidity }}</td>
|
||
|
</tr>
|
||
|
</tbody>
|
||
|
</table>
|
||
|
<p class="zone_number">{{ zone.number }}</p>
|