<form class="form compact boost-admin" method="post" action="<%= prediction.id ? `/admin/predictions/${prediction.id}/` : '/admin/predictions/' %>">
  <input type="hidden" name="_csrf" value="<%= csrfToken %>">
  <input type="hidden" name="type" value="cote_boostee">
  <input type="hidden" name="sport" value="football">
  <input type="hidden" name="odds" value="">
  <input type="hidden" name="bookmaker_name" value="">

  <div class="form-hero">
    <p>Mise en avant</p>
    <h2>Cote boostée</h2>
  </div>

  <label>Match<input name="analysis_title" value="<%= prediction.analysis_title || '' %>" placeholder="PSG - Arsenal"></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="Finale Ligue des Champions"></label>
  </div>
  <div class="three">
    <label>Prono boosté<input name="pick" value="<%= prediction.pick || '' %>" required></label>
    <label>Ancienne cote<input name="old_odds" inputmode="decimal" value="<%= prediction.old_odds || '' %>"></label>
    <label>Cote boostée<input name="boosted_odds" inputmode="decimal" value="<%= prediction.boosted_odds || '' %>" required></label>
  </div>
  <div class="three">
    <label>Confiance %<input name="confidence" type="number" min="0" max="100" value="<%= prediction.confidence || '' %>"></label>
    <label>Code promo<input name="promo_code" value="<%= prediction.promo_code || '' %>" placeholder="LCFOOT"></label>
    <label>Priorité<input name="display_priority" type="number" value="<%= prediction.display_priority || 100 %>"></label>
  </div>
  <label>Bonus / texte offre<textarea name="bonus_info" placeholder="Premier dépôt doublé jusqu’à 350€"><%= prediction.bonus_info || '' %></textarea></label>
  <div class="two">
    <label>Affiliation<select name="affiliate_id"><option value="">Aucune</option><% affiliates.forEach(a => { %><option value="<%= a.id %>" <%= prediction.affiliate_id===a.id?'selected':'' %>><%= a.name %></option><% }) %></select></label>
    <label>Texte bouton<input name="cta_text" value="<%= prediction.cta_text || 'JOUER LA COTE BOOSTÉE' %>"></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>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>
    <label>Score final<input name="final_score" value="<%= prediction.final_score || '' %>"></label>
  </div>
  <div class="two align">
    <label class="check"><input name="featured" type="checkbox" <%= prediction.featured || !prediction.id ? 'checked' : '' %>> Mise en avant active</label>
    <label>Expiration<input name="expires_at" type="datetime-local" value="<%= datetimeValue(prediction.expires_at) %>"></label>
  </div>
  <input type="hidden" name="analysis_text" value="<%= prediction.analysis_text || '' %>">
  <input type="hidden" name="boost_text" value="<%= prediction.boost_text || '' %>">
  <input type="hidden" name="admin_note" value="<%= prediction.admin_note || '' %>">
  <button>Enregistrer la cote boostée</button>
</form>
