Chromium Code Reviews| 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..6a473a0c019316db8c4d75b07ee6feead39d9dbe |
| --- /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"> |
|
arv (Not doing code reviews)
2011/08/11 23:30:58
i18n
simo
2011/08/16 17:36:34
On the chrome://settings page, the placeholder is
arv (Not doing code reviews)
2011/08/16 19:14:44
Just do it using the i18n template mechanism where
|
| + </div> |
| + </div> |
| + <div> |
| + <div id="no-policies" jsdisplay="!any_policies_set"> |
| + <div id="no-policies-text" i18n-content="noPoliciesSet"></div> |
| + </div> |
| + <div id="policies" |
| + jsvalues=".style.display: any_policies_set ? '' : '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:Policy.isPolicySet($this)? |
|
arv (Not doing code reviews)
2011/08/11 23:30:58
ws
simo
2011/08/16 17:36:34
Done.
|
| + 'policy-set' : 'policy-unset'; |
|
arv (Not doing code reviews)
2011/08/11 23:30:58
no ws before :
simo
2011/08/16 17:36:34
Done.
|
| + .style.display:Policy.shouldDisplayPolicy($this) ? |
|
arv (Not doing code reviews)
2011/08/11 23:30:58
ws
simo
2011/08/16 17:36:34
Done.
|
| + '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> |
| + </section> |
| + </div> |
| +</body> |
| +</html> |