<table class="details">
    <tr>
        <th>[% l('Label:') %]</th>
        <td>[% link_entity(edit.display_data.label) %]</td>
    </tr>
</table>

<table class="details add-label">
  <tr>
    <th>[% l('Name:') %]</th>
    <td>[% edit.display_data.name | html %]</td>
  </tr>

  [% IF edit.display_data.sort_name %]
  <tr>
    <th>[% l('Sort name:') %]</th>
    <td>[% edit.display_data.sort_name | html %]</td>
  </tr>
  [% END %]

  [% IF edit.display_data.comment %]
  <tr>
    <th>[% l('Disambiguation:') %]</th>
    <td>[% edit.display_data.comment | html %]</td>
  </tr>
  [% END %]

  [% IF !edit.display_data.begin_date.is_empty %]
  <tr>
    <th>[% l('Begin date:') %]</th>
    <td>[% edit.display_data.begin_date.format %]</td>
  </tr>
  [% END %]

  [% IF !edit.display_data.end_date.is_empty %]
  <tr>
    <th>[% l('End date:') %]</th>
    <td>[% edit.display_data.end_date.format %]</td>
  </tr>
  [% END %]

  <tr>
    <th>[% l('Ended:') %]</th>
    <td>[% yesno(edit.display_data.ended) %]</td>
  </tr>

  [% IF edit.display_data.area %]
  <tr>
    <th>[% l('Area:') %]</th>
    <td>[% descriptive_link(edit.display_data.area) %]</td>
  </tr>
  [% END %]

  [% IF edit.display_data.type %]
  <tr>
    <th>[% l('Type:') %]</th>
    <td>[% edit.display_data.type.name %]</td>
  </tr>
  [% END %]

  [% IF edit.display_data.label_code %]
  <tr>
    <th>[% l('Label code:') %]</th>
    <td>[% edit.display_data.label_code %]</td>
  </tr>
  [% END %]

  [% IF edit.display_data.ipi_codes.size %]
    [%- FOR ipi_code IN edit.display_data.ipi_codes -%]
      <tr>
        <th>[% l('IPI code:') %]</th>
        <td>[% ipi_code %]</td>
      </tr>
    [% END %]
  [% END %]

  [% IF edit.display_data.isni_codes.size %]
    [%- FOR isni_code IN edit.display_data.isni_codes -%]
      <tr>
        <th>[% l('ISNI code:') %]</th>
        <td>[% format_isni(isni_code) %]</td>
      </tr>
    [% END %]
  [% END %]
</table>
