xref: /aosp_15_r20/external/jsoup/src/test/resources/htmltests/table-polymer-template.html (revision 6da8f8c4bc310ad659121b84dd089062417a2ce2)
1<table style="width:100%">
2  <thead>
3    <th></th>
4    <template is="dom-repeat" items="{{fields_}}" as="field">
5      <th class$="[[cssClassForCell_(field.key, showAll_)]]">{{field.name}}</th>
6    </template>
7  </thead>
8  <tbody>
9    <tr></tr>
10    <template is="dom-repeat" items="{{volumes_}}" as="volume">
11      <tr class$="[[cssClassForVolume_(volume.inactive, showInactive_)]]">
12        <td style="background-color: white !important;">
13          <paper-button on-tap="onRetrieveButtonClick_" raised>Retrieve</paper-button>
14        </td>
15        <template is="dom-repeat" items="{{volume.data}}" as="field">
16          <td class$="[[cssClassForCell_(field.key, showAll_)]]">
17            {{field.value}}
18            <template is="dom-if" if="{{field.edit_link}}">
19              <iron-icon
20                icon="icons:create" on-click="changeOwner_"
21                data-id$="{{volume.id}}" data-owner$="{{field.value}}">
22              </iron-icon>
23            </template>
24          </td>
25        </template>
26      </tr>
27    </template>
28  </tbody>
29</table>
30