{% extends 'base.html' %}
{% block title %}运营面板 - 流量赠送{% endblock %}
{% block content %}
<div class="d-flex justify-content-between align-items-center mb-3">
  <h3>为域名赠送本周期免费流量</h3>
  <div>
    <a class="btn btn-outline-secondary" href="{% url 'admin_panel:domains' %}">返回域名列表</a>
  </div>
  </div>

<div class="card">
  <div class="card-body">
    <div class="mb-3">
      <strong>域名：</strong> {{ domain.name }}
    </div>
    <form method="post" class="row g-3">
      {% csrf_token %}
      <div class="col-md-4">
        <label class="form-label">本周期额外赠送流量（GB）</label>
        {{ form.extra_free_traffic_gb_current_cycle }}
      </div>
      <div class="col-12">
        <button class="btn btn-primary" type="submit">保存</button>
      </div>
    </form>
  </div>
</div>
{% endblock %}