| OLD | NEW |
| 1 <!-- Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 <!-- Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 2 Use of this source code is governed by a BSD-style license that can be | 2 Use of this source code is governed by a BSD-style license that can be |
| 3 found in the LICENSE file. --> | 3 found in the LICENSE file. --> |
| 4 | 4 |
| 5 <polymer-element name="cr-settings-editor" attributes="settings errors disabled"
> | 5 <polymer-element name="cr-settings-editor" attributes="settings errors disabled"
> |
| 6 <template> | 6 <template> |
| 7 <link rel="stylesheet" href="common.css"> | 7 <link rel="stylesheet" href="../common/common.css"> |
| 8 <link rel="stylesheet" href="forms.css"> | 8 <link rel="stylesheet" href="../common/forms.css"> |
| 9 | 9 |
| 10 <fieldset class="form-fields" disabled?="{{ disabled }}"> | 10 <fieldset class="form-fields" disabled?="{{ disabled }}"> |
| 11 <div class="form-row"> | 11 <div class="form-row"> |
| 12 <label class="form-label" for="name">Name</label> | 12 <label class="form-label" for="name">Name</label> |
| 13 <div class="form-field"> | 13 <div class="form-field"> |
| 14 <input type="text" id="name" value="{{ settings.name }}" aut
ocomplete="off" class="{{ {invalid: errors.name} | tokenList }}"> | 14 <input type="text" id="name" value="{{ settings.name }}" aut
ocomplete="off" class="{{ {invalid: errors.name} | tokenList }}"> |
| 15 <div class="form-error">{{ errors.name }}</div> | 15 <div class="form-error">{{ errors.name }}</div> |
| 16 </div> | 16 </div> |
| 17 </div> | 17 </div> |
| 18 <div class="form-row"> | 18 <div class="form-row"> |
| (...skipping 29 matching lines...) Expand all Loading... |
| 48 <script> | 48 <script> |
| 49 Polymer("cr-settings-editor", { | 49 Polymer("cr-settings-editor", { |
| 50 created: function() { | 50 created: function() { |
| 51 this.settings = null; | 51 this.settings = null; |
| 52 this.errors = {}; | 52 this.errors = {}; |
| 53 this.disabled = false; | 53 this.disabled = false; |
| 54 }, | 54 }, |
| 55 }); | 55 }); |
| 56 </script> | 56 </script> |
| 57 </polymer-element> | 57 </polymer-element> |
| OLD | NEW |