<table class="lizmapPopupTable">
  <thead>
    <tr>
      <th>{@view~map.popup.table.th.data@}</th>
      <th>{@view~map.popup.table.th.value@}</th>
    </tr>
  </thead>

  <tbody>
  {foreach $attributes as $attribute}
  {if $attribute['name'] != 'geometry' && $attribute['name'] != 'maptip'}
    <tr>
      <th>{$attribute['name']}</th>
      <td>{$attribute['name']|featurepopup:$attribute['value'],$repository,$project}</td>
    </tr>
  {/if}
  {/foreach}
  </tbody>
</table>

<table class="lizmapPopupTable">
  <thead>
    <tr>
      <th>{@view~map.popup.table.th.data@}</th>
      <th>{@view~map.popup.table.th.value@}</th>
    </tr>
  </thead>

  <tbody>
  {foreach $attributes as $attribute}
  {if $attribute['name'] != 'geometry' && $attribute['name'] != 'maptip' && $attribute['value'] != ''}
    <tr>
      <th>{$attribute['name']}</th>
      <td>{$attribute['name']|featurepopup:$attribute['value'],$repository,$project}</td>
    </tr>
  {/if}
  {/foreach}
  </tbody>
</table>

Hide empty fields in HTML popup
Hide empty fields in HTML popup

Fixed #174 Enhancement: Possibility to hide empty fields in lizmap popup
