blob: 221004c079f64e8c3a65294a17fb431522f419e6 [file] [log] [blame]
<!-- Copyright 2018 The Chromium Authors. All rights reserved.
Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file. -->
<dom-module id="supervision-transition-md">
<template>
<link rel="stylesheet" href="oobe_dialog_host.css">
<link rel="stylesheet" href="oobe_flex_layout.css">
<link rel="stylesheet" href="oobe_supervision_transition.css">
<oobe-dialog id="supervisionTransitionDialog" role="alert"
aria-label$="[[getDialogA11yTitle_(isRemovingSupervision_, locale)]]">
<iron-icon src="chrome://oobe/supervision_icon.png" slot="oobe-icon"
aria-hidden="true">
</iron-icon>
<h1 slot="title" id="supervisionTitle">
<div hidden="[[isRemovingSupervision_]]">
$i18n{addingSupervisionTitle}
</div>
<div hidden="[[!isRemovingSupervision_]]">
$i18n{removingSupervisionTitle}
</div>
</h1>
<div slot="subtitle">$i18n{supervisionTransitionIntroMessage}</div>
<div slot="footer" aria-live="off">
<paper-progress class="slow" aria-hidden="true" indeterminate>
</paper-progress>
</div>
</oobe-dialog>
<oobe-dialog id="supervisionTransitionErrorDialog" role="alert"
aria-label$="[[i18nDynamic(locale,'supervisionTransitionErrorTitle')]]"
has-buttons hidden>
<iron-icon src="chrome://oobe/supervision_icon.png" slot="oobe-icon"
aria-hidden="true">
</iron-icon>
<h1 slot="title">$i18n{supervisionTransitionErrorTitle}</h1>
<div slot="subtitle">$i18n{supervisionTransitionErrorMessage}</div>
<div slot="bottom-buttons" class="layout horizontal end-justified">
<oobe-text-button id="accept-button" on-tap="onAcceptAndContinue_"
inverse>
<div>$i18n{supervisionTransitionButton}</div>
</oobe-text-button>
</div>
</oobe-dialog>
</template>
</dom-module>