blob: 6483cef1cb0c86f85661e8c63eb905c683d7be0a [file] [log] [blame]
<link rel="import" href="chrome://resources/html/polymer.html">
<link rel="import" href="chrome://resources/cr_elements/cr_checkbox/cr_checkbox.html">
<link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html">
<link rel="import" href="chrome://resources/cr_elements/paper_button_style_css.html">
<link rel="import" href="chrome://resources/html/i18n_behavior.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-button.html">
<link rel="import" href="chrome://resources/polymer/v1_0/paper-spinner/paper-spinner-lite.html">
<link rel="import" href="certificate_shared_css.html">
<link rel="import" href="certificates_browser_proxy.html">
<dom-module id="ca-trust-edit-dialog">
<template>
<style include="certificate-shared paper-button-style">
cr-checkbox,
#description {
margin: 15px 0;
}
</style>
<cr-dialog id="dialog" close-text="[[i18n('close')]]">
<div slot="title">
[[i18n('certificateManagerCaTrustEditDialogTitle')]]
</div>
<div slot="body">
<div>[[explanationText_]]</div>
<div id="description">
[[i18n('certificateManagerCaTrustEditDialogDescription')]]
</div>
<cr-checkbox id="ssl" checked="[[trustInfo_.ssl]]">
[[i18n('certificateManagerCaTrustEditDialogSsl')]]
</cr-checkbox>
<cr-checkbox id="email" checked="[[trustInfo_.email]]">
[[i18n('certificateManagerCaTrustEditDialogEmail')]]
</cr-checkbox>
<cr-checkbox id="objSign" checked="[[trustInfo_.objSign]]">
[[i18n('certificateManagerCaTrustEditDialogObjSign')]]
</cr-checkbox>
</div>
<div slot="button-container">
<paper-spinner-lite id="spinner"></paper-spinner-lite>
<paper-button class="cancel-button" on-tap="onCancelTap_">
[[i18n('cancel')]]
</paper-button>
<paper-button id="ok" class="action-button" on-tap="onOkTap_">
[[i18n('ok')]]
</paper-button>
</div>
</cr-dialog>
</template>
<script src="ca_trust_edit_dialog.js"></script>
</dom-module>