{% extends 'sales/base.html' %} {% load static %} {% block breadcrumb %} {% block extralinks %} {% endblock %} {% endblock %} {% block content %} {% if contact_count or edit_view%}
{% csrf_token %}
{% if account_obj %}EDIT{% else %}CREATE{% endif %} ACCOUNT
{{ account_form.name }} {{ account_form.name.errors }}
{{ account_form.website }} {{ account_form.website.errors }}
{{ account_form.phone }} {{ account_form.phone.errors }}
{{ account_form.email }} {{ account_form.email.errors }}
{{ account_form.lead }} {{ account_form.lead.errors }}
{{ account_form.billing_address_line }} {{ account_form.billing_address_line.errors }}
{{ account_form.billing_street }} {{ account_form.billing_street.errors }}
{{ account_form.billing_postcode }} {{ account_form.billing_postcode.errors }}
{{ account_form.billing_city }} {{ account_form.billing_city.errors }}
{{ account_form.billing_state }} {{ account_form.billing_state.errors }}
{{ account_form.billing_country }} {{ account_form.billing_country.errors }}
{{ account_form.contacts }} {{ account_form.contacts.errors }}
Copy Address
{% if request.user.is_superuser or request.user.role == 'ADMIN' %}
{{ account_form.teams.errors }}
{% endif %}
{{ account_form.assigned_to.errors }}
{{ account_form.status }} {{ account_form.status.errors }}
{% if account_obj.account_attachment.count %} {% for attachment in account_obj.account_attachment.all %}
{{ attachment.file_name }} {% if not attachment.created_by.role == 'ADMIN' or attachment.created_by.role == request.user.role %} X {% endif %}
{% endfor %} {% endif %}
Cancel
{% else %}

Create a contact to create an account

{% endif %} {% endblock %} {% block js_block %} {% endblock js_block %}