<h3>
  <?php echo htmlspecialchars(t('Validity Period'),ENT_QUOTES,'UTF-8'); ?>
  <?php if(user()->checkAccess('plate_auth_view_ids')) { ?>
    <?php echo htmlspecialchars('#',ENT_QUOTES,'UTF-8'); ?>
    <?php echo htmlspecialchars($validityPeriod->ID   ,ENT_QUOTES,'UTF-8'); ?>
  <?php } ?>
</h3>
<table class="table table-striped table-condensed">
  <thead>
    <tr>
      <th></th>
      <th></th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td>
        <?php echo htmlspecialchars($validityPeriod->getAttributeLabel('Descrizione'),ENT_QUOTES,'UTF-8'); ?>
      </td>
      <td>
        <?php echo htmlspecialchars($validityPeriod->Descrizione,ENT_QUOTES,'UTF-8'); ?>
      </td>
    </tr>
    <tr>
      <td>
        <?php echo htmlspecialchars($validityPeriod->getAttributeLabel('Tipo'),ENT_QUOTES,'UTF-8'); ?>
      </td>
      <td>
        <?php echo htmlspecialchars($validityPeriod->Tipo,ENT_QUOTES,'UTF-8'); ?>
      </td>
    </tr>
    <tr>
      <td>
        <?php echo htmlspecialchars($validityPeriod->getAttributeLabel('DataInizio'),ENT_QUOTES,'UTF-8'); ?>
      </td>
      <td>
        <?php echo htmlspecialchars($validityPeriod->DataInizio->format(DateHelper::ISO9075_DATETIME),ENT_QUOTES,'UTF-8'); ?>
      </td>
    </tr>
    <tr>
      <td>
        <?php echo htmlspecialchars($validityPeriod->getAttributeLabel('DataFine'),ENT_QUOTES,'UTF-8'); ?>
      </td>
      <td>
        <?php echo htmlspecialchars($validityPeriod->DataFine->format(DateHelper::ISO9075_DATETIME)                                       ,ENT_QUOTES,'UTF-8'); ?>
      </td>
    </tr>
  </tbody>
</table>
