<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>
      <!-- ko ifnot: settings.settings.plugins.klipper.connection.hide_editor_button -->
        <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>
      <!-- /ko -->
 </div>
</div>
<!-- ko if: settings.settings.plugins.klipper.configuration.shortStatus_sidebar -->
  <div id="shortStatus_SideBar" class="plugin-klipper-sidebar">
    <a title="{{ _('Go to OctoKlipper Tab') }}" data-bind="click: navbarClicked">
      <div data-bind="html: shortStatus_sidebar" class="msg"></div>
    </a>
  </div>
<!-- /ko -->
<div class="control-group" data-bind="visible: $root.loginState.hasPermissionKo($root.access.permissions.PLUGIN_KLIPPER_MACRO)">
   <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 -->
            <button class="btn btn-block" data-bind="text: name, click: $parent.executeMacro, enable: $parent.isActive()"></button>
         <!-- /ko -->
      </div>
   </div>
</div>
