OLD | NEW |
1 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html
"> | 1 <link rel="import" href="chrome://resources/cr_elements/cr_dialog/cr_dialog.html
"> |
2 <link rel="import" href="chrome://resources/cr_elements/network/cr_onc_types.htm
l"> | 2 <link rel="import" href="chrome://resources/cr_elements/network/cr_onc_types.htm
l"> |
3 <link rel="import" href="chrome://resources/html/polymer.html"> | 3 <link rel="import" href="chrome://resources/html/polymer.html"> |
4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm
l"> | 4 <link rel="import" href="chrome://resources/polymer/v1_0/iron-icon/iron-icon.htm
l"> |
5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> | 5 <link rel="import" href="chrome://resources/polymer/v1_0/paper-button/paper-butt
on.html"> |
6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-checkbox/paper-ch
eckbox.html"> | |
7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> | 6 <link rel="import" href="chrome://resources/polymer/v1_0/paper-input/paper-input
.html"> |
| 7 <link rel="import" href="chrome://resources/polymer/v1_0/paper-toggle-button/pap
er-toggle-button.html"> |
8 <link rel="import" href="/icons.html"> | 8 <link rel="import" href="/icons.html"> |
9 <link rel="import" href="internet_shared_css.html"> | 9 <link rel="import" href="internet_shared_css.html"> |
10 | 10 |
11 <dom-module id="network-siminfo"> | 11 <dom-module id="network-siminfo"> |
12 <template> | 12 <template> |
13 <style include="internet-shared"> | 13 <style include="settings-shared internet-shared"> |
14 iron-icon { | 14 iron-icon { |
15 -webkit-margin-end: 10px; | 15 -webkit-margin-end: 10px; |
16 } | 16 } |
17 | 17 |
18 .dialog-error { | 18 .dialog-error { |
19 color: red; | 19 color: red; |
20 font-size: 125%; | 20 font-size: 125%; |
21 font-weight: 500; | 21 font-weight: 500; |
22 margin-top: 10px; | 22 margin-top: 10px; |
23 } | 23 } |
(...skipping 12 matching lines...) Expand all Loading... |
36 } | 36 } |
37 | 37 |
38 /* Siminfo is embedded; remove the padding. */ | 38 /* Siminfo is embedded; remove the padding. */ |
39 .settings-box { | 39 .settings-box { |
40 padding: 0; | 40 padding: 0; |
41 } | 41 } |
42 | 42 |
43 .settings-box:first-of-type { | 43 .settings-box:first-of-type { |
44 border-top: none; | 44 border-top: none; |
45 } | 45 } |
| 46 |
| 47 paper-toggle-button { |
| 48 -webkit-margin-start: var(--checkbox-spacing); |
| 49 } |
46 </style> | 50 </style> |
47 | 51 |
48 <!-- SIM missing UI --> | 52 <!-- SIM missing UI --> |
49 <div class="settings-box two-line" | 53 <div class="settings-box two-line" |
50 hidden$="[[networkProperties.Cellular.SIMPresent]]"> | 54 hidden$="[[networkProperties.Cellular.SIMPresent]]"> |
51 <div class="start layout horizontal center"> | 55 <div class="start layout horizontal center"> |
52 <iron-icon icon="settings:sim-card-alert"></iron-icon> | 56 <iron-icon icon="settings:sim-card-alert"></iron-icon> |
53 <div class="error">$i18n{networkSimCardMissing}</div> | 57 <div class="error">$i18n{networkSimCardMissing}</div> |
54 </div> | 58 </div> |
55 </div> | 59 </div> |
56 | 60 |
57 <!-- SIM locked --> | 61 <!-- SIM locked --> |
58 <div class="settings-box two-line" | 62 <div class="settings-box two-line" |
59 hidden$="[[!showSimLocked_(networkProperties)]]"> | 63 hidden$="[[!showSimLocked_(networkProperties)]]"> |
60 <div class="start layout horizontal center"> | 64 <div class="start layout horizontal center"> |
61 <iron-icon icon="settings:lock"></iron-icon> | 65 <iron-icon icon="settings:lock"></iron-icon> |
62 <div class="error">$i18n{networkSimCardLocked}</div> | 66 <div class="error">$i18n{networkSimCardLocked}</div> |
63 </div> | 67 </div> |
64 <div class="secondary-action"> | 68 <div class="secondary-action"> |
65 <paper-button on-tap="onUnlockPinTap_"> | 69 <paper-button on-tap="onUnlockPinTap_"> |
66 $i18n{networkSimUnlock} | 70 $i18n{networkSimUnlock} |
67 </paper-button> | 71 </paper-button> |
68 </div> | 72 </div> |
69 </div> | 73 </div> |
70 | 74 |
71 <!-- SIM unlocked --> | 75 <!-- SIM unlocked --> |
72 <div class="settings-box two-line" | 76 <div class="settings-box two-line" |
73 hidden$="[[!showSimUnlocked_(networkProperties)]]"> | 77 hidden$="[[!showSimUnlocked_(networkProperties)]]"> |
74 <paper-checkbox class="start" on-change="onSimLockEnabledChange_" | 78 <div class="start">$i18n{networkSimLockEnable}</div> |
75 checked="[[networkProperties.Cellular.SIMLockStatus.LockEnabled]]"> | 79 <paper-button on-tap="onChangePinTap_" |
76 $i18n{networkSimLockEnable} | |
77 </paper-checkbox> | |
78 <paper-button on-tap="onChangePinTap_" | |
79 hidden$="[[!networkProperties.Cellular.SIMLockStatus.LockEnabled]]"> | 80 hidden$="[[!networkProperties.Cellular.SIMLockStatus.LockEnabled]]"> |
80 $i18n{networkSimChangePin} | 81 $i18n{networkSimChangePin} |
81 </paper-button> | 82 </paper-button> |
| 83 <paper-toggle-button on-change="onSimLockEnabledChange_" |
| 84 checked="[[networkProperties.Cellular.SIMLockStatus.LockEnabled]]"> |
| 85 </paper-toggle-button> |
82 </div> | 86 </div> |
83 | 87 |
84 <!-- Enter PIN dialog --> | 88 <!-- Enter PIN dialog --> |
85 <dialog is="cr-dialog" id="enterPinDialog"> | 89 <dialog is="cr-dialog" id="enterPinDialog"> |
86 <div class="title">$i18n{networkSimEnterPinTitle}</div> | 90 <div class="title">$i18n{networkSimEnterPinTitle}</div> |
87 <div class="body"> | 91 <div class="body"> |
88 <paper-input id="enterPin" class="pin" no-label-float | 92 <paper-input id="enterPin" class="pin" no-label-float |
89 label="$i18n{networkSimEnterPin}"> | 93 label="$i18n{networkSimEnterPin}"> |
90 </paper-input> | 94 </paper-input> |
91 <div class="dialog-error"> | 95 <div class="dialog-error"> |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 </div> | 170 </div> |
167 <div class="button-container"> | 171 <div class="button-container"> |
168 <paper-button on-tap="sendUnlockPuk_"> | 172 <paper-button on-tap="sendUnlockPuk_"> |
169 $i18n{networkSimUnlock} | 173 $i18n{networkSimUnlock} |
170 </paper-button> | 174 </paper-button> |
171 </div> | 175 </div> |
172 </dialog> | 176 </dialog> |
173 </template> | 177 </template> |
174 <script src="network_siminfo.js"></script> | 178 <script src="network_siminfo.js"></script> |
175 </dom-module> | 179 </dom-module> |
OLD | NEW |