Index: chrome/browser/resources/policy.html |
diff --git a/chrome/browser/resources/policy.html b/chrome/browser/resources/policy.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..8eb63e153d81f52532bfc365b2f4af266377fbff |
--- /dev/null |
+++ b/chrome/browser/resources/policy.html |
@@ -0,0 +1,113 @@ |
+<!DOCTYPE HTML> |
+<html i18n-values="dir:textdirection"> |
+<head> |
+<meta charset="utf-8"> |
+<title i18n-content="policyTitle"></title> |
+<link rel="stylesheet" href="chrome://resources/css/button.css"> |
+<link rel="stylesheet" href="policy.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/local_strings.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;"> |
+ <div class="header"> |
+ <h1 id="about-policy-title" i18n-content="policyTitle"></h1> |
+ </div> |
+ <div id="main-content"> |
+ <section id="description-section"> |
+ <p i18n-content="aboutPolicyDescription"></p> |
+ </section> |
+ <section id="status-section"> |
+ <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 i18n-content="enrollmentDomainText"></li> |
+ <li i18n-content="lastFetchedText"></li> |
+ <li i18n-content="fetchIntervalText"></li> |
+ <li i18n-content="serverStatusText"></li> |
+ </ul> |
+ </fieldset> |
+ <fieldset class="status-box"> |
+ <legend i18n-content="userPoliciesBoxTitle"></legend> |
+ <ul> |
+ <li i18n-content="enrollmentDomainText"></li> |
+ <li i18n-content="lastFetchedText"></li> |
+ <li i18n-content="fetchIntervalText"></li> |
+ <li i18n-content="serverStatusText"></li> |
+ </ul> |
+ </fielset> |
+ </div> |
+ </section> |
+ <section id="policies-section"> |
+ <div id="policiesTemplate"> |
+ <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 |
+ placeholder="Filter policies by name"> |
+ </div> |
+ </div> |
+ <div> |
+ <div id="no-policies" jsdisplay="!anyPoliciesSet"> |
+ <div id="no-policies-text" i18n-content="noPoliciesSet"></div> |
+ </div> |
+ <div id="policies" |
+ jsvalues=".style.visibility: anyPoliciesSet ? 'visible': 'hidden'"> |
+ <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: Policy.isPolicySet($this)? |
+ 'policy-set': 'policy-unset'; |
+ .style.display: Policy.shouldDisplayPolicy($this) ? |
+ 'table-row': 'none'"> |
+ <td> |
+ <span class="policy-type" jscontent="sourceType"></span> |
+ </td> |
+ <td> |
+ <span class="policy-level" jscontent="level"></span> |
+ </td> |
+ <td> |
+ <span class="policy-name" jscontent="name"></span> |
+ </td> |
+ <td> |
+ <span class="policy-value" jscontent="value"></span> |
+ </td> |
+ <td> |
+ <span class="policy-status" jscontent="status"></span> |
+ </td> |
+ </tr> |
+ </table> |
+ </div> |
+ </div> |
+ </div> |
+ </section> |
+ </div> |
+</body> |
+</html> |