1 <link rel=
"import" href=
"chrome://resources/polymer/v1_0/polymer/polymer.html">
2 <link rel=
"import" href=
"chrome://resources/polymer/v1_0/iron-flex-layout/iron-flex-layout.html">
3 <link rel=
"import" href=
"chrome://resources/polymer/v1_0/paper-input/paper-input.html">
4 <link rel=
"import" href=
"chrome://resources/polymer/v1_0/paper-toggle-button/paper-toggle-button.html">
5 <link rel=
"import" href=
"chrome://resources/polymer/v1_0/paper-slider/paper-slider.html">
6 <link rel=
"import" href=
"chrome://resources/polymer/v1_0/paper-radio-group/paper-radio-group.html">
8 <dom-module id=
"battery-settings">
9 <link rel=
"import" type=
"css" href=
"battery_settings.css">
11 <div class=
"layout vertical">
12 <div class=
"element-label">{{title}}
</div>
13 <form id=
"power-settings-form">
17 <span class=
"form-label">Battery Percentage
</span>
18 <paper-input value=
"{{batteryPercent}}"
19 id=
"battery-percent-text" type=
"number">
28 <span class=
"form-label">Battery State
</span>
29 <paper-radio-group selected=
"{{batteryState}}"
30 id=
"battery-state-radio-group">
31 <template is=
"dom-repeat" items=
"{{batteryStateOptions}}">
33 name=
"{{item}}">{{item}}
</paper-radio-button>
43 <span class=
"form-label">External Power
</span>
44 <paper-radio-group selected=
"{{externalPower}}"
45 id=
"external-power-radio-group">
46 <template is=
"dom-repeat" items=
"{{externalPowerOptions}}">
48 name=
"{{item}}">{{item}}
</paper-radio-button>
58 <span class=
"form-label">Time Until Battery Empty
</span>
59 <paper-input value=
"{{timeUntilEmpty}}"
60 id=
"time-until-empty-text">
67 <span class=
"form-label">Time Until Battery Full
</span>
68 <paper-input value=
"{{timeUntilFull}}" id=
"time-until-full-text">
77 <script src=
"battery_settings.js"></script>