{% extends "layouts/base.html" %} {% load static %} {% load i18n %} {% load widget_tweaks %} {% block title %}{{ title }} - {{ block.super }}{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

{{ title }}

{% trans "Back" %}
{% csrf_token %}
{% trans "Basic Information" %}
{{ form.name|add_class:"form-control" }} {% if form.name.errors %}
{{ form.name.errors.0 }}
{% endif %}
{{ form.campaign_type|add_class:"form-control" }} {% if form.campaign_type.errors %}
{{ form.campaign_type.errors.0 }}
{% endif %}
{{ form.description|add_class:"form-control" }} {% if form.description.errors %}
{{ form.description.errors.0 }}
{% endif %}
{{ form.advertiser|add_class:"form-control select2" }} {% if form.advertiser.errors %}
{{ form.advertiser.errors.0 }}
{% endif %}
{{ form.priority|add_class:"form-control" }} {% if form.priority.help_text %} {{ form.priority.help_text }} {% endif %} {% if form.priority.errors %}
{{ form.priority.errors.0 }}
{% endif %}
{{ form.target_audience|add_class:"form-control" }} {% if form.target_audience.errors %}
{{ form.target_audience.errors.0 }}
{% endif %}
{% trans "Schedule & Budget" %}
{{ form.start_date|add_class:"form-control" }} {% if form.start_date.errors %}
{{ form.start_date.errors.0 }}
{% endif %}
{{ form.end_date|add_class:"form-control" }} {% if form.end_date.errors %}
{{ form.end_date.errors.0 }}
{% endif %}
$ {{ form.total_budget|add_class:"form-control" }}
{% if form.total_budget.errors %}
{{ form.total_budget.errors.0 }}
{% endif %}
$ {{ form.daily_budget|add_class:"form-control" }}
{% if form.daily_budget.help_text %} {{ form.daily_budget.help_text }} {% endif %} {% if form.daily_budget.errors %}
{{ form.daily_budget.errors.0 }}
{% endif %}
$ {{ form.cost_per_spot|add_class:"form-control" }}
{% if form.cost_per_spot.help_text %} {{ form.cost_per_spot.help_text }} {% endif %} {% if form.cost_per_spot.errors %}
{{ form.cost_per_spot.errors.0 }}
{% endif %}
{% trans "Targeting" %}
{% for choice in form.geographic_zones %}
{{ choice.tag }}
{% endfor %}
{% if form.geographic_zones.errors %}
{{ form.geographic_zones.errors.0 }}
{% endif %}
{% for choice in form.channels %}
{{ choice.tag }}
{% endfor %}
{% if form.channels.errors %}
{{ form.channels.errors.0 }}
{% endif %}
{% if object %} {% trans "Cancel" %} {% else %} {% trans "Cancel" %} {% endif %}
{% trans "Tips & Guidelines" %}
{% trans "Campaign Name" %}

{% trans "Choose a descriptive name that clearly identifies the campaign purpose and target." %}

{% trans "Budget Planning" %}

{% trans "Set realistic budgets based on your campaign goals. Daily budget helps control spending pace." %}

{% trans "Targeting" %}

{% trans "Select geographic zones and channels that align with your target audience demographics." %}

{% trans "Priority Levels" %}

{% trans "Higher priority campaigns get preference during ad slot allocation conflicts." %}

{% if object %}
{% trans "Current Status" %}
{% if object.status == 'active' %} {{ object.get_status_display }} {% elif object.status == 'paused' %} {{ object.get_status_display }} {% elif object.status == 'completed' %} {{ object.get_status_display }} {% else %} {{ object.get_status_display }} {% endif %}
{% if object.total_budget and object.total_spend %}
${{ object.total_spend|floatformat:2 }}
{% trans "Spent" %}
${{ object.total_budget|sub:object.total_spend|floatformat:2 }}
{% trans "Remaining" %}
{{ object.budget_utilization|floatformat:1 }}%
{% endif %}
{% endif %}
{% trans "Quick Actions" %}
{% endblock %} {% block extra_js %} {% endblock %}