{# File: plugins/admin/templates/admin/invitations/adjust_invites.html #}
{% extends 'core/base.html' %}
{% block title %}Adjust Invites – Admin – Nature In Pots{% endblock %}

{% block content %}
<h1>Adjust Invites for {{ user.email }}</h1>

<p>Current invites remaining: {{ user.invites_remaining }}</p>

<form method="post">
  {{ form.hidden_tag() }}

  <div class="mb-3">
    {{ form.delta.label(class="form-label") }}
    {{ form.delta(class="form-control") }}
    <small class="form-text text-muted">
      Enter a positive number to add invitations or a negative number to subtract from the user's invite quota.
    </small>
  </div>

  <button type="submit" class="btn btn-primary">Save</button>
  <a href="{{ url_for('admin.list_users') }}" class="btn btn-secondary">Cancel</a>
</form>
{% endblock %}
