parent
18e78b7783
commit
ab12bf7b02
|
@ -64,7 +64,8 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
<button onclick="buttonDeleteJobById('all')">{{ translater.getTranslation("delete and cancel all jobs")}}</button>
|
<p id="text_no_jobs">{{ translater.getTranslation("currently there are no planned jobs.")}}</p>
|
||||||
|
<button id="button_delete_all_jobs" onclick="buttonDeleteJobById('all')">{{ translater.getTranslation("delete and cancel all jobs")}}</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -36,6 +36,7 @@ class Translater:
|
||||||
"delete": "löschen",
|
"delete": "löschen",
|
||||||
"delete and cancel all jobs": "alle Aufträge löschen und abbrechen",
|
"delete and cancel all jobs": "alle Aufträge löschen und abbrechen",
|
||||||
"switch all to": "stelle alle um auf",
|
"switch all to": "stelle alle um auf",
|
||||||
|
"currently there are no planned jobs.": "momentan sind keine Aufträge geplant."
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,11 @@ function refreshZone(zone_json) {
|
||||||
|
|
||||||
|
|
||||||
function refreshPipeline(pipeline_html) {
|
function refreshPipeline(pipeline_html) {
|
||||||
document.getElementById("jobListBody").innerHTML = pipeline_html;
|
//alert("refreshing Pipeline");
|
||||||
|
var jobListBody = document.getElementById("jobListBody");
|
||||||
|
jobListBody.innerHTML = pipeline_html;
|
||||||
|
document.getElementById("text_no_jobs").style.display = jobListBody.childElementCount ? 'none' : 'block';
|
||||||
|
document.getElementById("button_delete_all_jobs").style.display = jobListBody.childElementCount ? 'block' : 'none';
|
||||||
}
|
}
|
||||||
|
|
||||||
function buttonDeleteJobById(jobId) {
|
function buttonDeleteJobById(jobId) {
|
||||||
|
|
8
Zone.py
8
Zone.py
|
@ -55,6 +55,9 @@ class Zone:
|
||||||
self.state = False
|
self.state = False
|
||||||
case 2:
|
case 2:
|
||||||
if (self.timeOver()):
|
if (self.timeOver()):
|
||||||
|
if (self.planedDuration > 0):
|
||||||
|
self.setState = 3
|
||||||
|
else:
|
||||||
self.setState = 0
|
self.setState = 0
|
||||||
self.refreshStateAutomode()
|
self.refreshStateAutomode()
|
||||||
else:
|
else:
|
||||||
|
@ -81,6 +84,9 @@ class Zone:
|
||||||
self.state = False
|
self.state = False
|
||||||
case 2:
|
case 2:
|
||||||
if (self.timeOver()):
|
if (self.timeOver()):
|
||||||
|
if (self.planedDuration > 0):
|
||||||
|
self.setState = 3
|
||||||
|
else:
|
||||||
self.setState = 0
|
self.setState = 0
|
||||||
self.state = False
|
self.state = False
|
||||||
else:
|
else:
|
||||||
|
@ -112,7 +118,7 @@ class Zone:
|
||||||
self.setState = 2
|
self.setState = 2
|
||||||
self.endTimeSetState = time.time() + duration
|
self.endTimeSetState = time.time() + duration
|
||||||
else:
|
else:
|
||||||
if(self.setState == 1):
|
if(self.setState == 1 or self.setState == 2):
|
||||||
pass
|
pass
|
||||||
elif(state):
|
elif(state):
|
||||||
self.setState = 3
|
self.setState = 3
|
||||||
|
|
Loading…
Reference in New Issue