{# templates/campaigns/create.html #} {% extends "base.html" %} {% block content %} {# ---------- Preserve form values on validation errors ---------- #} {% set fd = form_data if form_data else None %} {% set sel_locations = (fd.getlist('preferred_location_ids[]') if fd else []) %} {% set sel_languages = (fd.getlist('preferred_language_ids[]') if fd else []) %} {% set sel_segments = (fd.getlist('creator_segment_ids[]') if fd else []) %} {% set sel_genres = (fd.getlist('creator_genre_ids[]') if fd else []) %} {% set sel_categories= (fd.getlist('creator_category_ids[]') if fd else []) %} {% set sel_platforms = (fd.getlist('platforms') if fd else []) %}

Create Campaign

Set up a new campaign with brand, targeting and deliverables.

Back to Campaigns
{% if current_user and current_user.brand_id %}
Brand is auto-selected for brand logins.
{% else %} {% set picked_brand = (fd.get('brand_id') if fd else '') %}
Need a new brand? Add brand in a new tab .
{% endif %}
Auto-filled Brand ID (Brand Code).
{% set n = fd.get('nature','Product Promotion') if fd else 'Product Promotion' %}
Location/Event Visit requires brand address for logistics.
Targeting
+
Optional.
+
+
+
+
Optional (used for per-creator planning).
Planning (optional).
Fixed.
Content Usage
{% set cu = (fd.get('content_usage_enabled') if fd else None) %}
Boosting Rights
{% set br = (fd.get('boosting_rights_enabled') if fd else None) %}
Reference Links
URL Label Platform
Optional: Add sample content links to guide creators.
0 words
Recommended: 500+ words. No strict limit.
0 words
Recommended: 500+ words. No strict limit.
{% if platforms %} {% for p in platforms %}
{% endfor %} {% else %}

No platforms configured yet.

{% endif %}
Deliverables
Blocks auto-show only when platform is selected
{% if not deliverable_types or deliverable_types|length == 0 %}
Deliverable types are not configured. Please add Deliverable Types first.
{% endif %}
Tip: Quantity is required for at least one deliverable row.
Campaign Notes
Optional.
Cancel
{% endblock %}