Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(362)

Unified Diff: chrome/browser/resources/policy.html

Issue 7390027: Added group policies to enable/disable importing of data from other browsers. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: . Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/options/import_data_overlay.js ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
« no previous file with comments | « chrome/browser/resources/options/import_data_overlay.js ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698