<style include="cr-shared-style">
cr-input {
margin-top: var(--cr-form-field-bottom-spacing);
--cr-input-error-display: none;
}
cr-button[slot='suffix'] {
margin-inline-start: 10px;
}
/* Prevent focus-outline from being chopped by bottom of dialog body. */
cr-input {
margin-bottom: 4px;
}
</style>
<cr-dialog id="dialog" close-text="$i18n{close}">
<div slot="title">$i18n{packDialogTitle}</div>
<div slot="body">
<div>$i18n{packDialogContent}</div>
<cr-input id="rootDir" label="$i18n{packDialogExtensionRoot}"
value="{{packDirectory_}}" autofocus>
<cr-button id="rootDirBrowse" on-click="onRootBrowse_"
slot="suffix">
$i18n{packDialogBrowse}
</cr-button>
</cr-input>
<cr-input id="keyFile" label="$i18n{packDialogKeyFile}"
value="{{keyFile_}}">
<cr-button id="keyFileBrowse" on-click="onKeyBrowse_"
slot="suffix">
$i18n{packDialogBrowse}
</cr-button>
</cr-input>
</div>
<div slot="button-container">
<cr-button class="cancel-button" on-click="onCancelClick_">
$i18n{cancel}
</cr-button>
<cr-button class="action-button" on-click="onConfirmClick_"
disabled="[[!packDirectory_]]">
$i18n{packDialogConfirm}
</cr-button>
</div>
</cr-dialog>
<template is="dom-if" if="[[lastResponse_]]" restamp>
<extensions-pack-dialog-alert model="[[lastResponse_]]"
on-close="onAlertClose_">
</extensions-pack-dialog-alert>
</template>