blob: 5ac8b0357f1023cfb57f4c972c5b572b85493eb0 [file] [log] [blame]
<link rel="import" href="/create_profile.html">
<link rel="import" href="/supervised_user_create_confirm.html">
<link rel="import" href="/supervised_user_learn_more.html">
<link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animations/fade-in-animation.html">
<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/animations/fade-out-animation.html">
<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-animatable.html">
<link rel="import" href="chrome://resources/polymer/v1_0/neon-animation/neon-animated-pages.html">
<dom-module id="user-manager-pages">
<template>
<style>
neon-animated-pages {
height: 100%;
}
neon-animatable {
display: flex;
justify-content: center;
}
/* neon-animated-pages does not automatically hide what's under content */
neon-animatable:not(.iron-selected) > ::content > * {
display: none !important;
}
</style>
<neon-animated-pages id="animatedPages" attr-for-selected="id"
selected="[[selectedPage_]]" entry-animation="fade-in-animation"
exit-animation="fade-out-animation">
<neon-animatable id="create-user-page">
<!-- Keep the page alive while visiting the Learn More page. -->
<template is="dom-if"
if="[[isPresentIn_(selectedPage_,
'create-user-page',
'supervised-learn-more-page')]]" restamp>
<create-profile></create-profile>
</template>
</neon-animatable>
<neon-animatable id="user-pods-page">
<content></content>
</neon-animatable>
<neon-animatable id="supervised-learn-more-page">
<template is="dom-if"
if="[[isPresentIn_(selectedPage_, 'supervised-learn-more-page')]]">
<supervised-user-learn-more></supervised-user-learn-more>
</template>
</neon-animatable>
<neon-animatable id="supervised-create-confirm-page">
<template is="dom-if"
if="[[isPresentIn_(selectedPage_,
'supervised-create-confirm-page')]]">
<supervised-user-create-confirm profile-info="[[pageData_]]">
</supervised-user-create-confirm>
</template>
</neon-animatable>
</neon-animated-pages>
</template>
<script src="user_manager_pages.js"></script>
</dom-module>