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

{{ title }}

{% if agency %} {% trans "Update agency information" %} {% else %} {% trans "Enter details to create a new agency." %} {% endif %}

{% if agency %}
{% trans "Currently Editing" %}
{{ agency.name }}
{% if agency.contact_person %}

{% trans "Contact" %}: {{ agency.contact_person }}

{% endif %} {% if agency.email %}

{{ agency.email }}

{% endif %}

{% trans "Created" %}: {{ agency.created_at|date:"d M Y" }} • {% trans "Last Updated" %}: {{ agency.updated_at|date:"d M Y" }}

{% endif %}

{% trans "Agency Information" %}

{% if form.non_field_errors %} {% endif %}
{% csrf_token %}
{% if form.name.errors %} {% for error in form.name.errors %}

{{ error }}

{% endfor %} {% endif %} {% if form.name.help_text %}

{{ form.name.help_text }}

{% endif %}
{% if form.contact_person.errors %} {% for error in form.contact_person.errors %}

{{ error }}

{% endfor %} {% endif %} {% if form.contact_person.help_text %}

{{ form.contact_person.help_text }}

{% endif %}
{% if form.phone.errors %} {% for error in form.phone.errors %}

{{ error }}

{% endfor %} {% endif %} {% if form.phone.help_text %}

{{ form.phone.help_text }}

{% endif %}
{% if form.email.errors %} {% for error in form.email.errors %}

{{ error }}

{% endfor %} {% endif %} {% if form.email.help_text %}

{{ form.email.help_text }}

{% endif %}
{% if form.website.errors %} {% for error in form.website.errors %}

{{ error }}

{% endfor %} {% endif %} {% if form.website.help_text %}

{{ form.website.help_text }}

{% endif %}
{% if form.country.errors %} {% for error in form.country.errors %}

{{ error }}

{% endfor %} {% endif %} {% if form.country.help_text %}

{{ form.country.help_text }}

{% endif %}
{% if form.city.errors %} {% for error in form.city.errors %}

{{ error }}

{% endfor %} {% endif %} {% if form.city.help_text %}

{{ form.city.help_text }}

{% endif %}
{% if form.address.errors %} {% for error in form.address.errors %}

{{ error }}

{% endfor %} {% endif %} {% if form.address.help_text %}

{{ form.address.help_text }}

{% endif %}
{% if form.description.errors %} {% for error in form.description.errors %}

{{ error }}

{% endfor %} {% endif %} {% if form.description.help_text %}

{{ form.description.help_text }}

{% endif %}
{% endblock %}