| <!-- | |
| @license | |
| Copyright (C) 2019 The Android Open Source Project | |
| Licensed under the Apache License, Version 2.0 (the "License"); | |
| you may not use this file except in compliance with the License. | |
| You may obtain a copy of the License at | |
| http://www.apache.org/licenses/LICENSE-2.0 | |
| Unless required by applicable law or agreed to in writing, software | |
| distributed under the License is distributed on an "AS IS" BASIS, | |
| WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| See the License for the specific language governing permissions and | |
| limitations under the License. | |
| --> | |
| <dom-module id="gr-uploadvalidator-config-table"> | |
| <template> | |
| <style include="shared-styles"></style> | |
| <style include="gr-table-styles"> | |
| .genericList { | |
| margin-bottom: 1em; | |
| } | |
| input#newEntry { | |
| width: 100%; | |
| } | |
| </style> | |
| <fieldset> | |
| <section> | |
| <table class="genericList"> | |
| <tbody> | |
| <template id="list" is="dom-repeat" items="{{entries}}"> | |
| <tr> | |
| <td class="nameColumn">{{item}}</td> | |
| <td class="deleteColumn"> | |
| <gr-button id="{{item}}" | |
| class="deleteEntryButton" | |
| on-click="_handleDeleteEntry" | |
| disabled="[[disabled]]"> | |
| Delete | |
| </gr-button> | |
| </td> | |
| </tr> | |
| </template> | |
| <tr> | |
| <td class="nameColumn"> | |
| <iron-input> | |
| <input id="newEntry" type="text" disabled$="[[disabled]]"> | |
| </iron-input> | |
| </td> | |
| <td class="deleteColumn"> | |
| <gr-button id="addEntry" | |
| on-click="_handleAddEntry" | |
| disabled="[[disabled]]"> | |
| Add | |
| </gr-button> | |
| </td> | |
| </tr> | |
| </tbody> | |
| </table> | |
| </section> | |
| </fieldset> | |
| </template> | |
| <script src="gr-uploadvalidator-config-table.js"></script> | |
| </dom-module> |