{% extends 'base.html' %}
{% block title %}运营面板 - 切换套餐{% endblock %}
{% block content %}
<div class="d-flex justify-content-between align-items-center mb-3">
  <h3>切换套餐 - {{ domain.name }}</h3>
  <div>
    <a class="btn btn-outline-secondary" href="{% url 'admin_panel:domains' %}">返回域名列表</a>
  </div>
</div>

<form method="post" novalidate>
  {% csrf_token %}
  <div class="mb-3">
    <label class="form-label">当前套餐</label>
    {% if domain.current_plan %}
      <div class="form-control">{{ domain.current_plan.name }}</div>
    {% else %}
      <div class="form-control">-</div>
    {% endif %}
  </div>

  <div class="mb-3">
    <label class="form-label">选择新套餐</label>
    {{ form.current_plan }}
  </div>

  <button type="submit" class="btn btn-primary">确认切换</button>
</form>
{% endblock %}