{% extends "admin/base_site.html" %} {% load i18n admin_urls static admin_modify %} {% block title %}{{ title }}{% endblock %} {% block breadcrumbs %} {% endblock %} {% block content %}

{{ title }}

Account Information

User: {{ account.user.email }} {% if account.user.first_name or account.user.last_name %} ({{ account.user.first_name }} {{ account.user.last_name }}) {% endif %}
Current Balance: {{ current_balance }} credits
{% csrf_token %}

{{ action_type }} Credits

{% if form.errors %}

Please correct the error{{ form.errors|pluralize }} below.

{{ form.errors }}
{% endif %}
{{ form.amount.label_tag }} {{ form.amount }} {% if form.amount.help_text %}

{{ form.amount.help_text }}

{% endif %} {% if form.amount.errors %}
    {% for error in form.amount.errors %}
  • {{ error }}
  • {% endfor %}
{% endif %}
{{ form.reason.label_tag }} {{ form.reason }} {% if form.reason.help_text %}

{{ form.reason.help_text }}

{% endif %} {% if form.reason.errors %}
    {% for error in form.reason.errors %}
  • {{ error }}
  • {% endfor %}
{% endif %}
{% if action_type == 'Remove' %}

⚠️ Warning: This will remove credits from the user's account. Current balance: {{ current_balance }} credits.

{% endif %}
Cancel
{% endblock %}