summaryrefslogtreecommitdiffstats
path: root/chrome/browser/resources/policy.html
blob: bb61d67253ab1c323f73f241cbeac1d5acbda09f (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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
<!DOCTYPE HTML>
<html i18n-values="dir:textdirection">
<head>
<meta charset="utf-8">
<title i18n-content="policyTitle"></title>
<include src="content_security_policy.html"/>
<link rel="stylesheet" href="chrome://resources/css/button.css">
<link rel="stylesheet" href="policy.css">
<link rel="stylesheet" href="webui.css">
<script src="chrome://policy/strings.js"></script>
<script src="chrome://resources/js/cr.js"></script>
<script src="chrome://resources/js/cr/ui.js"></script>
<script src="chrome://resources/js/i18n_template.js"></script>
<script src="chrome://resources/js/i18n_process.js"></script>
<script src="chrome://resources/js/jstemplate_compiled.js"></script>
<script src="chrome://resources/js/util.js"></script>
<script src="policy.js"></script>
</head>
<body i18n-values=".style.fontFamily:fontfamily; .style.fontSize:fontsize">
  <div class="header">
    <h1 id="about-policy-title" i18n-content="policyTitle"></h1>
  </div>
  <div id="main-content">
    <div id="data-template">
      <section id="status-section" jsselect="status" hidden
          jsdisplay="displayStatusSection">
        <div class="separator">
          <span id="status-title" i18n-content="statusPaneTitle"></span>
          <div id="fetch-policies">
            <button id="fetch-policies-button" i18n-content="fetchPoliciesText">
            </button>
          </div>
        </div>
          <div id="status-pane">
            <fieldset class="status-box">
              <legend i18n-content="devicePoliciesBoxTitle"></legend>
                <ul>
                  <li>
                    <span i18n-content="enrollmentDomainText"></span>
                    <span jscontent="devicePolicyDomain"></span>
                  </li>
                  <li>
                    <span i18n-content="clientIdText"></span>
                    <span jscontent="deviceId"></span>
                  </li>
                  <li>
                    <span i18n-content="lastFetchedText"></span>
                    <span jscontent="deviceLastFetchTime"></span>
                  </li>
                  <li>
                    <span i18n-content="fetchIntervalText"></span>
                    <span jscontent="deviceFetchInterval"></span>
                  </li>
                  <li>
                    <span i18n-content="serverStatusText"></span>
                    <span jscontent="deviceStatusMessage"></span>
                  </li>
                </ul>
            </fieldset>
            <fieldset class="status-box">
              <legend i18n-content="userPoliciesBoxTitle"></legend>
                <ul>
                  <li>
                    <span i18n-content="usernameText"></span>
                    <span jscontent="user"></span>
                  </li>
                  <li>
                    <span i18n-content="clientIdText"></span>
                    <span jscontent="userId"></span>
                  </li>
                  <li>
                    <span i18n-content="lastFetchedText"></span>
                    <span jscontent="userLastFetchTime"></span>
                  </li>
                  <li>
                    <span i18n-content="fetchIntervalText"></span>
                    <span jscontent="userFetchInterval"></span>
                  </li>
                  <li>
                    <span i18n-content="serverStatusText"></span>
                    <span jscontent="userStatusMessage"></span>
                  </li>
                </ul>
            </fielset>
          </div>
      </section>
      <section id="policies-section">
        <div class="separator">
          <span id="policies-title" i18n-content="policyTitle"></span>
          <div id="unsent-policies-control">
            <div id="checkbox-and-label">
              <input id="toggle-unsent-policies" type="checkbox">
              <label for="toggle-unsent-policies"
              i18n-content="showUnsentPoliciesText"></label>
            </div>
          </div>
          <div id="search">
            <input id="search-field" type="search" incremental
                i18n-values="placeholder: filterPoliciesText">
          </div>
        </div>
        <div>
          <div id="no-policies" hidden jsdisplay="!anyPoliciesSet">
            <div id="no-policies-text" i18n-content="noPoliciesSet"></div>
          </div>
          <div id="policies" jsvalues=".style.display: anyPoliciesSet ?
              '': 'none'">
            <table id="policy-table">
              <tr>
              <th i18n-content="appliesToTableHeader"></th>
              <th i18n-content="policyLevelTableHeader"></th>
              <th i18n-content="policyNameTableHeader"></th>
              <th i18n-content="policyValueTableHeader"></th>
              <th i18n-content="policyStatusTableHeader"></th>
              </tr>
              <tr jsselect="policies"
                  jsvalues=".className: $this.set ?
                  'policy-set': 'policy-unset';
                  .hidden: !Policy.shouldDisplayPolicy($this)">
              <td>
                <span class="policy-type" jscontent="sourceType"></span>
              </td>
              <td>
                <span class="policy-level" jscontent="level"></span>
              </td>
              <td class="collapsed">
                <span class="policy-name" jscontent="name"></span>
              </td>
              <td>
                <div class="text-container collapsed">
                  <span class="cell-text" jscontent="value"></span>
                </div>
                <a class="toggler expand" style="display: none"
                    jsdisplay="Policy.shouldShowExpand(this)"
                    i18n-content="showMoreText"></a>
                <a class="toggler collapse" style="display: none"
                    i18n-content="hideText"></a>
              </td>
              <td>
                <div class="text-container collapsed">
                  <span class="cell-text" jscontent="status"></span>
                </div>
                <a class="toggler expand" style="display: none"
                  jsdisplay="Policy.shouldShowExpand(this)"
                  i18n-content="showMoreText"></a>
                <a class="toggler collapse" style="display: none"
                  i18n-content="hideText"></a>
              </td>
              </tr>
            </table>
          </div>
        </div>
      </section>
    </div>
  </div>
</body>
</html>