summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/resources/settings/parental_controls_page/parental_controls_page.html
blob: 3a55afc70c66a9cabc8b7949d44f40ef50178dfc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<link rel="import" href="chrome://resources/html/polymer.html">

<link rel="import" href="chrome://resources/cr_elements/cr_button/cr_button.html">
<link rel="import" href="chrome://resources/cr_elements/icons.html">
<link rel="import" href="chrome://resources/html/cr.html">
<link rel="import" href="chrome://resources/html/i18n_behavior.html">
<link rel="import" href="parental_controls_browser_proxy.html">
<link rel="import" href="../i18n_setup.html">
<link rel="import" href="../icons.html">
<link rel="import" href="../route.html">
<link rel="import" href="../settings_page/settings_animated_pages.html">
<link rel="import" href="../settings_page/settings_subpage.html">
<link rel="import" href="../settings_shared_css.html">

<dom-module id="settings-parental-controls-page">
  <template>
    <style include="settings-shared">
      cr-link-row {
        --cr-section-padding: 0;
      }
    </style>
    <div id="parental-controls-item" class="settings-box two-line">
      <template is="dom-if" if="[[isChild_]]">
        <cr-link-row on-click="handleFamilyLinkButtonClick_"
            label="$i18n{parentalControlsPageTitle}"
            sub-label="$i18n{parentalControlsPageViewSettingsLabel}"
            external>
          <iron-icon icon="cr20:kite" aria-hidden="true"></iron-icon>
        </cr-link-row>
      </template>
      <template is="dom-if" if="[[!isChild_]]">
        <div class="start settings-box-text">
          <div>
            $i18n{parentalControlsPageTitle}
          </div>
          <div class="secondary">
            [[getSetupLabelText_(online_)]]
          </div>
        </div>
        <div class="separator"></div>
        <cr-button on-click="handleSetupButtonClick_" disabled$="[[!online_]]">
          $i18n{parentalControlsSetUpButtonLabel}
        </cr-button>
      </template>
    </div>
  </template>
  <script src="parental_controls_page.js"></script>
</dom-module>