{% extends "advertisers/base.html" %} {% load static %} {% load widget_tweaks %} {% block title %}{% if form.instance.pk %}Edit Agency{% else %}Create Agency{% endif %} - Adtlas{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{% csrf_token %}

Basic Information

{{ form.name|add_class:"form-control" }} {% if form.name.errors %}
{{ form.name.errors.0 }}
{% endif %} Enter the agency name (must be unique)
{{ form.contact_person|add_class:"form-control" }} {% if form.contact_person.errors %}
{{ form.contact_person.errors.0 }}
{% endif %} Primary contact person name
{{ form.description|add_class:"form-control" }} {% if form.description.errors %}
{{ form.description.errors.0 }}
{% endif %} Provide a detailed description of the agency
{{ form.owner|add_class:"form-control select2" }} {% if form.owner.errors %}
{{ form.owner.errors.0 }}
{% endif %} Select the user who owns this agency

Contact Information

{{ form.email|add_class:"form-control" }} {% if form.email.errors %}
{{ form.email.errors.0 }}
{% endif %} Primary contact email
{{ form.phone|add_class:"form-control" }} {% if form.phone.errors %}
{{ form.phone.errors.0 }}
{% endif %} Primary contact phone number
{{ form.website|add_class:"form-control" }} {% if form.website.errors %}
{{ form.website.errors.0 }}
{% endif %} Agency's official website URL

Address Information

{{ form.address|add_class:"form-control" }} {% if form.address.errors %}
{{ form.address.errors.0 }}
{% endif %} Street address
{{ form.city|add_class:"form-control" }} {% if form.city.errors %}
{{ form.city.errors.0 }}
{% endif %} City name
{{ form.country|add_class:"form-control" }} {% if form.country.errors %}
{{ form.country.errors.0 }}
{% endif %} Country name

Agency Logo

{% if form.instance.logo %} Current Logo {% else %}
{% endif %}
{{ form.logo|add_class:"form-control" }} {% if form.logo.errors %}
{{ form.logo.errors.0 }}
{% endif %} Recommended size: 200x200px, Max: 2MB
{% if form.instance.logo %}
{% endif %}

Status

{% if form.is_active.errors %}
{{ form.is_active.errors.0 }}
{% endif %} Inactive agencies cannot create new campaigns
{% if form.instance.pk %}
Agency Information

Created: {{ form.instance.created_at|date:"F d, Y" }}

Last Updated: {{ form.instance.updated_at|date:"F d, Y" }}

Total Brands: {{ form.instance.total_brands }}

Total Campaigns: {{ form.instance.total_campaigns }}

{% endif %}
{% if form.instance.pk %} View Agency {% endif %} Cancel {% if form.instance.pk and perms.advertisers.delete_agency %} {% endif %}
{% if form.instance.pk and perms.advertisers.delete_agency %} {% endif %} {% endblock %} {% block extra_js %} {% endblock %}