1 <link rel=
"import" href=
"chrome://resources/polymer/v1_0/polymer/polymer.html">
2 <link rel=
"import" href=
"chrome://resources/polymer/v1_0/iron-icons/iron-icons.html">
3 <link rel=
"import" href=
"chrome://resources/polymer/v1_0/paper-checkbox/paper-checkbox.html">
4 <link rel=
"import" href=
"chrome://resources/polymer/v1_0/paper-dialog/paper-dialog.html">
5 <link rel=
"import" href=
"chrome://resources/cr_elements/v1_0/cr_button/cr_button.html">
6 <link rel=
"import" href=
"chrome://resources/cr_elements/v1_0/cr_input/cr_input.html">
7 <link rel=
"import" href=
"chrome://resources/cr_elements/v1_0/network/cr_onc_types.html">
8 <link rel=
"import" href=
"network_property_list.html">
10 <dom-module id=
"network-siminfo">
11 <link rel=
"import" type=
"css" href=
"network_siminfo.css">
13 <div id=
"outerDiv" class=
"layout vertical">
14 <div class=
"layout horizontal center"
15 hidden$=
"[[state.Cellular.SIMPresent]]">
16 <!-- SIM missing UI -->
17 <iron-icon icon=
"sim-card-alert"></iron-icon>
18 <span>Missing SIM card
</span>
20 <div class=
"layout vertical"
21 hidden$=
"[[!state.Cellular.SIMPresent]]">
22 <div id=
"lockedDiv" class=
"layout horizontal center"
23 hidden$=
"[[!isSimLocked_(networkState)]]">
25 <iron-icon icon=
"lock"></iron-icon>
26 <span>SIM card is locked.
</span>
27 <cr-button on-click=
"unlockPin_">Unlock
</cr-button>
29 <div class=
"layout vertical"
30 hidden$=
"[[isSimLocked_(networkState)]]">
33 checked=
"[[networkState.Cellular.SIMLockStatus.LockEnabled]]"
34 on-change=
"onSimLockEnabledChange_">
35 Enable SIM card locking (require PIN to use mobile data)
37 <div class=
"layout horizontal center"
38 hidden$=
"[[!networkState.Cellular.SIMLockStatus.LockEnabled]]">
39 <!-- SIM lock enabled -->
40 <cr-button on-click=
"onChangePin_">Change PIN
</cr-button>
46 <!-- Enter PIN dialog -->
47 <paper-dialog modal
id=
"enterPinDialog" class=
"layout vertical"
48 on-iron-overlay-opened=
"onEnterPinDialogOpened_">
49 <div class=
"layout vertical">
50 <h2>Enter SIM PIN
</h2>
51 <div class=
"layout vertical">
52 <div class=
"layout horizontal">
53 <cr-input id=
"enterPin" class=
"pin" no-label-float
56 <cr-button on-click=
"sendEnterPin_">Enter
</cr-button>
59 <div class=
"layout horizontal">
60 <span class=
"error" hidden$=
"[[!showError_(error)]]"
61 >[[getErrorMsg_(error)]]
63 <span>[[getRetriesLeftMsg_(networkState)]]
</span>
68 <!-- Change PIN dialog -->
69 <paper-dialog modal
id=
"changePinDialog" class=
"layout vertical"
70 on-iron-overlay-opened=
"onChangePinDialogOpened_">
71 <div class=
"layout vertical">
72 <h2>Change SIM PIN
</h2>
73 <div class=
"layout horizontal end">
74 <div class=
"layout vertical">
75 <cr-input id=
"changePinOld" class=
"pin" no-label-float
76 label=
"Enter old PIN">
78 <cr-input id=
"changePinNew1" class=
"pin" no-label-float
79 label=
"Enter new PIN">
81 <cr-input id=
"changePinNew2" class=
"pin" no-label-float
82 label=
"Re-enter new PIN">
85 <cr-button on-click=
"sendChangePin_">Change
</cr-button>
87 <div class=
"layout horizontal">
88 <span class=
"error" hidden$=
"[[!showError_(error)]]"
89 >[[getErrorMsg_(error)]]
91 <span>[[getRetriesLeftMsg_(networkState)]]
</span>
96 <!-- Unlock PIN dialog -->
97 <paper-dialog modal
id=
"unlockPinDialog" class=
"layout vertical"
98 on-iron-overlay-opened=
"onUnlockPinDialogOpened_">
99 <div class=
"layout vertical">
100 <h2>SIM Card is locked.
</h2>
101 <div class=
"layout horizontal">
102 <cr-input id=
"unlockPin" class=
"pin" no-label-float
105 <cr-button on-click=
"sendUnlockPin_">Unlock
</cr-button>
107 <div class=
"layout horizontal">
108 <span class=
"error" hidden$=
"[[!showError_(error)]]"
109 >[[getErrorMsg_(error)]]
111 <span>[[getRetriesLeftMsg_(networkState)]]
</span>
116 <!-- Unlock PUK dialog -->
117 <paper-dialog modal
id=
"unlockPukDialog" class=
"layout vertical"
118 on-iron-overlay-opened=
"onUnlockPukDialogOpened_">
119 <div class=
"layout vertical">
120 <h2>SIM Card is locked.
</h2>
122 Enter the
8-digit PIN Unblocking Key provided by your carrier
124 <div class=
"layout horizontal">
125 <div class=
"layout vertical">
126 <cr-input id=
"unlockPuk" class=
"puk" no-label-float
127 label=
"Enter PIN Unblocking Key">
129 <div class=
"layout horizontal end">
130 <div class=
"layout vertical">
131 <cr-input id=
"unlockPin1" class=
"pin" no-label-float
134 <cr-input id=
"unlockPin2" class=
"pin" no-label-float
135 label=
"Re-enter PIN">
138 <cr-button on-click=
"sendUnlockPuk_">Unlock
</cr-button>
141 <div class=
"flex"></div>.
144 Your SIM card will be permanently disabled if you cannot enter
145 the correct PIN Unblocking key.
147 <div class=
"layout horizontal">
148 <span class=
"error" hidden$=
"[[!showError_(error)]]"
149 >[[getErrorMsg_(error)]]
151 <span>[[getRetriesLeftMsg_(networkState)]]
</span>
157 <script src=
"network_siminfo.js"></script>