<div class="inhalt">
  <div class="form-container">
    <h1>Gutschein bearbeiten</h1>
    <form class="form-horizontal" action="index.php" method="post">
      <input type="hidden" name="controller" value="Gutschein">
      <input type="hidden" name="do" value="updateGutschein">
      <input type="hidden" name="gutscheinid" value="<?=htmlspecialchars($gutschein['voucher_id'])?>">
      <label for="code">Code</label>
      <input type="text" id="code" name="code" required value="<?=htmlspecialchars($gutschein['code'])?>">
      <label for="discount">Rabatt (%)</label>
      <input type="number" id="discount" name="discount" min="0" max="100" required value="<?=htmlspecialchars($gutschein['discount'])?>">
      <label for="event_id">Event-ID</label>
      <input type="number" id="event_id" name="event_id" required value="<?=htmlspecialchars($gutschein['event_id'])?>">
      <label for="valid_until">Gültig bis</label>
      <input type="date" id="valid_until" name="valid_until" required value="<?=htmlspecialchars($gutschein['valid_until'])?>">
      <button class="admin-btn" type="submit">Speichern</button>
    </form>
    <a href="?controller=Gutschein&do=adminVerwaltung" class="admin-btn" style="background:#888;">Abbrechen</a>
  </div>
</div> 