<div class="container-fluid">
  <?php if ($acte): ?>
    <div class="row">
      <div class="col text-end">
        <?php if ($acte['id']>0): ?>
          Acte n°<b><?=$acte['id'];?></b>
        <?php else: ?>
          Nouvel acte
        <?php endif; ?>
      </div>
    </div>
    <div class="row">
      <div class="col p-3">

        <form class="" action="" method="post" onsubmit="javascript:traitForm();return false;">
          <input type="hidden" name="action" id="action" value="save">
          <input type="hidden" name="id" id="id" value="<?=$acte['id'];?>">
          <div class="row">
            <div class="col">
              <button type="button" class="btn btn-sm btn-secondary" onclick="javascript:liste();">Retour à la liste</button>
              <button type="submit" class="btn btn-sm btn-primary">Enregistrer les modifications</button>
            </div>
          </div>
          <div class="">
            <label for="libel" class="form-label">Nom</label>
            <input type="text" name="libel" id="libel" class="form-control form-control-sm" value="<?=$acte['libel'];?>">
          </div>
          <div class="">
            <label for="abrev" class="form-label">Abréviation</label>
            <input type="text" name="abrev" id="abrev" class="form-control form-control-sm" value="<?=$acte['abrev'];?>">
          </div>
          <div class="">
            <label for="duree" class="form-label">Durée (min)</label>
            <input type="text" name="duree" id="duree" class="form-control form-control-sm" value="<?=$acte['duree'];?>">
          </div>
        </form>

      </div>
    </div>
  <?php else: ?>
    <div class="row">
      <div class="col">
        <p>Aucun utilisateur...</p>
      </div>
    </div>
  <?php endif; ?>

</div>
