{% extends "admin/base_admin.html" %}
{% set admin_page = "affiliate_programs" %}

{% block title %}Affiliate Programs - Admin - {{ config.APP_NAME }}{% endblock %}

{% block admin_content %}
  <header class="flex justify-between items-center mb-6">
    <h1 class="text-2xl">Affiliate Programs</h1>
    <a href="{{ url_for('admin.affiliate_program_new') }}" class="btn btn-sm">+ New Program</a>
  </header>

  <div id="prog-results">
    <table class="table">
      <thead>
        <tr>
          <th>Name</th>
          <th>Slug</th>
          <th>Tracking Tag</th>
          <th class="text-right">Commission</th>
          <th class="text-right">Products</th>
          <th>Status</th>
          <th class="text-right">Actions</th>
        </tr>
      </thead>
      <tbody>
        {% include "admin/partials/affiliate_program_results.html" %}
      </tbody>
    </table>
  </div>
{% endblock %}
