| 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..230a5d66c50637c1d0865907dff77f2435764841
|
| --- /dev/null
|
| +++ b/chrome/browser/resources/policy.html
|
| @@ -0,0 +1,123 @@
|
| +<!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 id="status-separator">
|
| + <table class="separator-table">
|
| + <tbody>
|
| + <tr>
|
| + <td id="status-title" i18n-content="statusPaneTitle"></td>
|
| + <td id="fetch-policies-button">
|
| + <button i18n-content="fetchPoliciesText"></button>
|
| + </td>
|
| + </tr>
|
| + </tbody>
|
| + </table>
|
| + </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 id="policies-separator">
|
| + <table class="separator-table">
|
| + <tbody>
|
| + <tr>
|
| + <td id="policies-title" i18n-content="policyTitle"></td>
|
| + <td id="unsent-policies">
|
| + <input id="toggle-unsent-policies" type="checkbox">
|
| + <span i18n-content="showUnsentPoliciesText"></span>
|
| + </td>
|
| + <td id="search">
|
| + <input id="search-field" type="search" incremental
|
| + placeholder="Filter policies by name">
|
| + </td>
|
| + </tr>
|
| + </tbody>
|
| + </table>
|
| + </div>
|
| +
|
| + <div>
|
| + <div id="no-policies" jsdisplay="policies.length === 0">
|
| + <div i18n-content="noPoliciesSet">NO_POLICIES_RECEIVED</div>
|
| + </div>
|
| +
|
| + <div jsdiplay="policies.length > 0">
|
| + <div id="policies">
|
| + <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:isPolicySet($this)?
|
| + 'policy-set' : 'policy-unset';
|
| + .style.display:shouldDisplayPolicy($this) ?
|
| + 'table-row' : 'none'">
|
| + <td>
|
| + <span class="policy-type" jscontent="source_type"></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>
|
| + </div>
|
| + </section>
|
| + </div>
|
| +</body>
|
| +</html>
|
|
|