<style include="cups-printer-shared">
[slot='dialog-body'] {
height: 90px;
}
[slot='dialog-buttons'] {
width: auto;
}
</style>
<add-printer-dialog id="printServerDialog">
<div slot="dialog-title">
$i18n{addPrintServerTitle}
<printer-dialog-error id="server-dialog-error" error-text="[[errorText_]]">
</printer-dialog-error>
</div>
<div slot="dialog-body">
<div class="settings-box first two-line">
<cr-input
id="printServerAddressInput"
label="$i18n{printServerAddress}"
value="{{printServerAddress_}}"
error-message="$i18n{printServerInvalidUrlAddress}"
on-keypress="onKeypress"
maxlength="63"
autofocus
>
</cr-input>
</div>
</div>
<div slot="dialog-buttons">
<cr-button class="cancel-button" on-click="onCancelClick_">
$i18n{cancel}
</cr-button>
<cr-button
class="action-button"
on-click="onAddPrintServerClick_"
disabled="[[inProgress_]]"
>
$i18n{addPrinterButtonText}
</cr-button>
</div>
</add-printer-dialog>