OctoprintKlipperPlugin/octoprint_klipper/templates/klipper_tab_main.jinja2

38 lines
1.7 KiB
Plaintext
Raw Normal View History

2018-01-23 17:01:58 +03:00
<div class="row-fluid">
<div class="span8">
2018-01-24 23:32:44 +03:00
<label>Messages</label>
2018-01-23 22:52:34 +03:00
<div class="plugin_klipper_log" data-bind="foreach: logMessages">
2018-01-23 22:57:58 +03:00
<div class="log-item"><i data-bind="text: time"></i> <span data-bind="text: msg, css: type"></span></div>
2018-01-23 17:01:58 +03:00
</div>
2018-01-24 19:14:42 +03:00
<a href="#" data-bind="click: onClearLog" class="fa fa-trash" alt="Clear"></a>
2018-01-23 17:01:58 +03:00
</div>
<div class="span4">
2018-01-24 23:32:44 +03:00
<div class="control-group">
<div class="controls">
<label class="control-label">&nbsp;</label>
<button class="btn btn-block" data-bind="click: onGetStatus, enable: isActive()">Status</button>
</div>
<div class="controls">
<hr>
<label class="control-label">Restart</label>
<button class="btn btn-block" data-bind="click: onRestartHost, enable: isActive()"><i class="fa fa-repeat"></i> Host</button>
<button class="btn btn-block" data-bind="click: onRestartFirmware, enable: isActive()"><i class="fa fa-repeat"></i> MCU</button>
</div>
<div class="controls">
<hr>
<label class="control-label">Tools</label>
<button class="btn btn-block" data-bind="click: showLevelingDialog, enable: isActive()">Assisted Bed Leveling</button>
<button class="btn btn-block" data-bind="click: showPidTuningDialog, enable: isActive()">PID Tuning</button>
</div>
<div class="controls">
<hr>
2018-01-24 23:32:44 +03:00
<label class="control-label">Macros</label>
<div data-bind="foreach: settings.settings.plugins.klipper.macros">
<!-- ko if: tab -->
2018-01-24 23:32:44 +03:00
<button class="btn btn-block" data-bind="text: name, click: $parent.executeMacro, enable: $parent.isActive()"></button>
<!-- /ko -->
2018-01-24 23:32:44 +03:00
</div>
</div>
2018-01-23 17:01:58 +03:00
</div>
</div>
</div>