2018-08-14 19:31:27 +03:00
|
|
|
<div class="control-group">
|
|
|
|
<div class="controls">
|
|
|
|
<label for="connection_printers" data-bind="css: {disabled: !connectionState.isErrorOrClosed()}, enable: connectionState.isErrorOrClosed() && loginState.isUser()">{{ _('Printer Profile') }}</label>
|
|
|
|
<select id="connection_printers" data-bind="options: connectionState.printerOptions, optionsText: 'name', optionsValue: 'id', value: connectionState.selectedPrinter, css: {disabled: !connectionState.isErrorOrClosed()}, enable: connectionState.isErrorOrClosed() && loginState.isUser()"></select>
|
|
|
|
<button class="btn btn-block" data-bind="click: connectionState.connect, text: connectionState.buttonText(), enable: loginState.isUser()">{{ _('Connect') }}</button>
|
2021-09-05 19:33:32 +03:00
|
|
|
<button class="btn btn-block" title="{{ _('Open Editor') }}" data-bind="visible: $root.loginState.hasPermissionKo($root.access.permissions.PLUGIN_KLIPPER_CONFIG), click: showEditorDialog">{{ _('Open Editor') }}</button>
|
2018-08-14 19:31:27 +03:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-05-04 02:01:57 +03:00
|
|
|
<!-- ko if: settings.settings.plugins.klipper.configuration.shortStatus_sidebar -->
|
|
|
|
<div class="plugin-klipper-sidebar">
|
2021-05-13 20:42:39 +03:00
|
|
|
<a title="{{ _('Go to OctoKlipper Tab') }}" data-bind="text: shortStatus_sidebar, click: navbarClicked"></a>
|
2021-05-04 02:01:57 +03:00
|
|
|
</div>
|
|
|
|
<!-- /ko -->
|
2021-09-05 16:28:57 +03:00
|
|
|
<div class="control-group" data-bind="visible: $root.loginState.hasPermissionKo($root.access.permissions.PLUGIN_KLIPPER_MACRO)">
|
2018-08-14 19:31:27 +03:00
|
|
|
<div class="controls">
|
|
|
|
<label class="control-label small"><i class="icon-list-alt"></i> {{ _('Macros') }}</label>
|
|
|
|
<div data-bind="foreach: settings.settings.plugins.klipper.macros">
|
|
|
|
<!-- ko if: sidebar -->
|
2021-03-16 21:06:16 +03:00
|
|
|
<button class="btn btn-block" data-bind="text: name, click: $parent.executeMacro, enable: $parent.isActive()"></button>
|
2018-08-14 19:31:27 +03:00
|
|
|
<!-- /ko -->
|
|
|
|
</div>
|
2018-08-09 03:17:05 +03:00
|
|
|
</div>
|
2021-03-16 21:06:16 +03:00
|
|
|
</div>
|