| <link rel="import" href="chrome://resources/html/polymer.html"> |
| |
| <link rel="import" href="/create_profile.html"> |
| <link rel="import" href="chrome://resources/cr_elements/cr_view_manager/cr_view_manager.html"> |
| |
| <dom-module id="user-manager-pages"> |
| <template> |
| <style> |
| cr-view-manager { |
| display: block; |
| height: 100%; |
| } |
| |
| div.active[slot='view'], |
| div.closing[slot='view'] { |
| align-items: center; |
| display: flex; |
| justify-content: center; |
| } |
| </style> |
| <cr-view-manager id="animatedPages" role="main"> |
| <div id="create-user-page" slot="view" on-keydown="stopPropagation_"> |
| <template is="dom-if" if="[[shouldShowCreateProfile_(selectedPage_)]]" |
| restamp> |
| <create-profile></create-profile> |
| </template> |
| </div> |
| <div id="user-pods-page" slot="view"> |
| <slot></slot> |
| </div> |
| </cr-view-manager> |
| </template> |
| <script src="user_manager_pages.js"></script> |
| </dom-module> |