OctoPrint-MyStromSwitch/octoprint_mystromswitch/templates/mystromswitch_sidebar.jinja2
David Zingg c76712159f #8 Relais ein / ausschalten von Ocotprint aus
- Toggle Button enable / disable in Einstellunge
- Databinding von Button
2019-11-24 15:59:37 +01:00

5 lines
305 B
Django/Jinja

<div class="sidebar_plugin_mystromswitch">
<label class="control-label" id="mystromswitchPowerValue">Powerconsumption 0.0W</label>
<button class="btn btn-primary" data-bind="click: onToggleRelayEvent">{{ _('Toggle Relais') }}, visible : settings.plugins.mystromswitch.onOffButtonEnabled"/>
</div>