fix recipe editor?
This commit is contained in:
parent
400269986e
commit
16dfaf1d0d
|
@ -206,7 +206,7 @@ function edit_phase(phaseid) {
|
||||||
<label class="label">Phase Description</label>
|
<label class="label">Phase Description</label>
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<textarea class="textarea" placeholder="Phase Description"
|
<textarea class="textarea" placeholder="Phase Description"
|
||||||
oninput="update_field('text', this.value)">{{text}}</textarea>
|
oninput="update_field('description', this.value)">{{description}}</textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -214,22 +214,22 @@ function edit_phase(phaseid) {
|
||||||
<label class="label">On Load</label>
|
<label class="label">On Load</label>
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<textarea
|
<textarea
|
||||||
oninput="update_field('onload', this.value)"
|
oninput="update_field('on_load', this.value)"
|
||||||
class="textarea" placeholder="#t">{{onload}}</textarea>
|
class="textarea" placeholder="#t">{{on_load}}</textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label class="label">Next Condition</label>
|
<label class="label">Next Condition</label>
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<textarea oninput="update_field('nextcond', this.value)"
|
<textarea oninput="update_field('exit_condition', this.value)"
|
||||||
class="textarea" placeholder="#t">{{nextcond}}</textarea>
|
class="textarea" placeholder="#t">{{exit_condition}}</textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label class="label">On Exit</label>
|
<label class="label">On Exit</label>
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<textarea oninput="update_field('onexit', this.value)"
|
<textarea oninput="update_field('on_exit', this.value)"
|
||||||
class="textarea" placeholder="#t">{{onexit}}</textarea>
|
class="textarea" placeholder="#t">{{on_exit}}</textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@ -294,9 +294,9 @@ Controllers:<br/>
|
||||||
<br><br>
|
<br><br>
|
||||||
<div class="content"><h4>{{name}}</h4></div>
|
<div class="content"><h4>{{name}}</h4></div>
|
||||||
{{text}}<br>
|
{{text}}<br>
|
||||||
On Load: {{onload}}<br>
|
On Load: {{on_load}}<br>
|
||||||
Exit When: {{nextcond}}<br>
|
Exit When: {{exit_condition}}<br>
|
||||||
On Exit: {{onexit}}<br>
|
On Exit: {{on_exit}}<br>
|
||||||
{{/phases}}
|
{{/phases}}
|
||||||
{{/selected_recipe}}
|
{{/selected_recipe}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -337,11 +337,11 @@ function current_recipe(data) {
|
||||||
{{current_phase.text}}
|
{{current_phase.text}}
|
||||||
<br/>
|
<br/>
|
||||||
<br/>
|
<br/>
|
||||||
Next Cond: {{current_phase.nextcond}}
|
Next Cond: {{current_phase.exit_condition}}
|
||||||
<br/>
|
<br/>
|
||||||
On Load: {{current_phase.onload}}
|
On Load: {{current_phase.on_load}}
|
||||||
<br/>
|
<br/>
|
||||||
On Exit: {{current_phase.onexit}}
|
On Exit: {{current_phase.on_exit}}
|
||||||
</div>
|
</div>
|
||||||
<footer class="card-footer">
|
<footer class="card-footer">
|
||||||
<!-- <a class="card-footer-item is-primary">Pause</a> -->
|
<!-- <a class="card-footer-item is-primary">Pause</a> -->
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
"phases": [
|
"phases": [
|
||||||
{
|
{
|
||||||
"name": "Hold",
|
"name": "Hold",
|
||||||
"description": "Keep 23\u00b0C",
|
"description": "Keep 23°C",
|
||||||
"exit_condition": "(> (time-in-this-phase) (hours 10))",
|
"exit_condition": "(> (time-in-this-phase) (hours 10))",
|
||||||
"on_load": "(begin (set-controller \"heater\" \"T_food\")\n(set-target \"T_food\" 23.0))",
|
"on_load": "(begin (set-controller \"heater\" \"T_food\")\n(set-target \"T_food\" 23.0))",
|
||||||
"on_exit": "#t"
|
"on_exit": "#t"
|
||||||
|
@ -24,8 +24,8 @@
|
||||||
"phases": [
|
"phases": [
|
||||||
{
|
{
|
||||||
"name": "Hold",
|
"name": "Hold",
|
||||||
"description": "Keep 35\u00b0C",
|
"description": "Keep 35°C",
|
||||||
"exit_condition": "(> (time-in-this-phase) (hours 17))",
|
"exit_condition": "(> (time-in-this-phase) (hours 1.5))",
|
||||||
"on_load": "(begin (set-controller \"heater\" \"T_food\")\n(set-target \"T_food\" 35.0))",
|
"on_load": "(begin (set-controller \"heater\" \"T_food\")\n(set-target \"T_food\" 35.0))",
|
||||||
"on_exit": "#t"
|
"on_exit": "#t"
|
||||||
}
|
}
|
||||||
|
@ -33,7 +33,7 @@
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "Yogurt",
|
"name": "Yogurt",
|
||||||
"description": "Pastorizza lo yogurt a 82 gradi, lascia raffreddare per fare l'inoculo, mantiene a 42 gradi fino a che \u00e8 pronto.",
|
"description": "Pastorizza lo yogurt a 82 gradi, lascia raffreddare per fare l'inoculo, mantiene a 42 gradi fino a che è pronto.",
|
||||||
"controllers": [
|
"controllers": [
|
||||||
"(make-duty-controller \"heater\" 0.20 120)"
|
"(make-duty-controller \"heater\" 0.20 120)"
|
||||||
],
|
],
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
<label class="label">Description</label>
|
<label class="label">Description</label>
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<textarea class="textarea" placeholder="Recipe Description">
|
<textarea class="textarea" placeholder="Recipe Description">
|
||||||
{{recipe.description}}
|
{{recipe.description}}
|
||||||
</textarea>
|
</textarea>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue