<form class="form compact" method="post" action="<%= prediction.id ? `/admin/predictions/${prediction.id}/` : '/admin/predictions/' %>">
  <input type="hidden" name="_csrf" value="<%= csrfToken %>">
  <input type="hidden" name="type" value="classique">
  <input type="hidden" name="sport" value="football">
  <input type="hidden" name="featured" value="">
  <input type="hidden" name="affiliate_id" value="">
  <input type="hidden" name="bookmaker_name" value="">
  <input type="hidden" name="old_odds" value="">
  <input type="hidden" name="boosted_odds" value="">
  <input type="hidden" name="promo_code" value="">
  <input type="hidden" name="bonus_info" value="">
  <input type="hidden" name="cta_text" value="">

  <div class="form-hero">
    <p>Création rapide</p>
    <h2>Prono classique</h2>
  </div>

  <label>Match<input name="analysis_title" value="<%= prediction.analysis_title || '' %>" placeholder="Maroc - Norvège"></label>
  <div class="two">
    <label>Équipe 1<input name="home_team" value="<%= prediction.home_team || '' %>" required></label>
    <label>Équipe 2<input name="away_team" value="<%= prediction.away_team || '' %>" required></label>
  </div>
  <div class="two">
    <label>Date et heure<input name="match_datetime" type="datetime-local" value="<%= datetimeValue(prediction.match_datetime) %>" required></label>
    <label>Compétition<input name="competition" value="<%= prediction.competition || '' %>" placeholder="Match international"></label>
  </div>
  <label>Notre avis<textarea name="analysis_text" required placeholder="Analyse courte, claire et rassurante."><%= prediction.analysis_text || '' %></textarea></label>
  <div class="three">
    <label>Prono<input name="pick" value="<%= prediction.pick || '' %>" required></label>
    <label>Confiance %<input name="confidence" type="number" min="0" max="100" value="<%= prediction.confidence || '' %>"></label>
    <label>Cote<input name="odds" inputmode="decimal" value="<%= prediction.odds || '' %>"></label>
  </div>
  <div class="three">
    <label>Statut<select name="status"><% ['draft','actif','terminé','archivé'].forEach(s => { %><option <%= (prediction.status || 'actif')===s?'selected':'' %>><%= s %></option><% }) %></select></label>
    <label>Priorité<input name="display_priority" type="number" value="<%= prediction.display_priority || 0 %>"></label>
    <label>Résultat<select name="result_status"><% ['en_attente','gagné','perdu','remboursé','annulé'].forEach(s => { %><option value="<%= s %>" <%= (prediction.result_status || 'en_attente')===s?'selected':'' %>><%= s %></option><% }) %></select></label>
  </div>
  <div class="two">
    <label>Score final<input name="final_score" value="<%= prediction.final_score || '' %>" placeholder="2-1"></label>
    <label>Expiration<input name="expires_at" type="datetime-local" value="<%= datetimeValue(prediction.expires_at) %>"></label>
  </div>
  <label>Note admin<textarea name="admin_note" placeholder="Optionnel, non visible côté client."><%= prediction.admin_note || '' %></textarea></label>
  <button>Enregistrer le prono</button>
</form>
