{% extends "profiles/base-wide.html" %} {% load profile_tags %} {% load perm_tags %} {% load styled_forms %} {% block title %}{% if not profile %}{% trans 'Add User'%}{% else %}{% trans 'Edit User'%}{% endif %}{% endblock %} {% block extra_head %} {{ block.super }} {% endblock %} {% block content %}
{% if not profile %}

{% trans 'Site Registration'%}

{% trans 'Complete the fields below and press Submit to add a user. Required fields are designated with an'%} *.

{% else %}

{% trans 'Edit '%} {{user_this.first_name }} {{user_this.last_name }}

{% trans 'Change the information below as needed and press Submit changes.'%}

{% endif %} {% if form.errors or form.non_field_errors %}
{% trans "There are some issues on the form, please review." %}
{{form.non_field_errors}} {% for error in form.errors.values %} {{ error }} {% endfor %} {% endif %}
{% csrf_token %}
A) {% trans 'Name Information'%}
{% if form.salutation.errors %}
{{ form.salutation.errors }}
{% endif %} {{ form.salutation }} {% if form.salutation.help_text %}
{{ form.salutation.help_text }}
{% endif %}
{% if form.first_name.errors %}
{{ form.first_name.errors }}
{% endif %} {{ form.first_name }} {% if form.first_name.help_text %}
{{ form.first_name.help_text }}
{% endif %}
{% if form.initials.errors %}
{{ form.initials.errors }}
{% endif %} {{ form.initials }} {% if form.initials.help_text %}
{{ form.initials.help_text }}
{% endif %}
{% if form.last_name.errors %}
{{ form.last_name.errors }}
{% endif %} {{ form.last_name }} {% if form.last_name.help_text %}
{{ form.last_name.help_text }}
{% endif %}
{% if form.position_title.errors %}
{{ form.position_title.errors }}
{% endif %} {{ form.position_title }} {% if form.position_title.help_text %}
{{ form.position_title.help_text }}
{% endif %}
{% if form.display_name.errors %}
{{ form.display_name.errors }}
{% endif %} {{ form.display_name }} {% if form.display_name.help_text %}
{{ form.display_name.help_text }}
{% endif %}
B) {% trans 'Phone Information'%}
{% if form.phone.errors %}
{{ form.phone.errors }}
{% endif %} {{ form.phone }} {% if form.phone.help_text %}
{{ form.phone.help_text }}
{% endif %}
{% if form.phone2.errors %}
{{ form.phone2.errors }}
{% endif %} {{ form.phone2 }} {% if form.phone2.help_text %}
{{ form.phone2.help_text }}
{% endif %}
{% if form.home_phone.errors %}
{{ form.home_phone.errors }}
{% endif %} {{ form.home_phone }} {% if form.home_phone.help_text %}
{{ form.home_phone.help_text }}
{% endif %}
{% if form.work_phone.errors %}
{{ form.work_phone.errors }}
{% endif %} {{ form.work_phone }} {% if form.work_phone.help_text %}
{{ form.work_phone.help_text }}
{% endif %}
{% if form.fax.errors %}
{{ form.fax.errors }}
{% endif %} {{ form.fax }} {% if form.fax.help_text %}
{{ form.fax.help_text }}
{% endif %}
{% if form.mobile_phone.errors %}
{{ form.mobile_phone.errors }}
{% endif %} {{ form.mobile_phone }} {% if form.mobile_phone.help_text %}
{{ form.mobile_phone.help_text }}
{% endif %}
C) {% trans 'Email and Internet Information '%}
{% if form.email.errors %}
{{ form.email.errors }}
{% endif %} {{ form.email }} {% if form.email.help_text %}
{{ form.email.help_text }}
{% endif %}
{% if form.direct_mail.errors %}
{{ form.direct_mail.errors }}
{% endif %} {{ form.direct_mail }} {% if form.direct_mail.help_text %}
{{ form.direct_mail.help_text }}
{% endif %}
{% if form.email2.errors %}
{{ form.email2.errors }}
{% endif %} {{ form.email2 }} {% if form.email2.help_text %}
{{ form.email2.help_text }}
{% endif %}
{% if form.url.errors %}
{{ form.url.errors }}
{% endif %} {{ form.url }} {% if form.url.help_text %}
{{ form.url.help_text }}
{% endif %}
D) {% trans 'Company Information'%}
{% if form.company.errors %}
{{ form.company.errors }}
{% endif %} {{ form.company }} {% if form.company.help_text %}
{{ form.company.help_text }}
{% endif %}
{% if form.department.errors %}
{{ form.department.errors }}
{% endif %} {{ form.department }} {% if form.department.help_text %}
{{ form.department.help_text }}
{% endif %}
E) {% trans 'Address Information'%}
{% if form.mailing_name.errors %}
{{ form.mailing_name.errors }}
{% endif %} {{ form.mailing_name }} {% if form.mailing_name.help_text %}
{{ form.mailing_name.help_text }}
{% endif %}
{% if form.address.errors %}
{{ form.address.errors }}
{% endif %} {{ form.address }} {% if form.address.help_text %}
{{ form.address.help_text }}
{% endif %}
{% if form.address2.errors %}
{{ form.address2.errors }}
{% endif %} {{ form.address2 }} {% if form.address2.help_text %}
{{ form.address2.help_text }}
{% endif %}
{% if form.city.errors %}
{{ form.city.errors }}
{% endif %} {{ form.city }} {% if form.city.help_text %}
{{ form.city.help_text }}
{% endif %}
{% if form.state.errors %}
{{ form.state.errors }}
{% endif %} {{ form.state }} {% if form.state.help_text %}
{{ form.state.help_text }}
{% endif %}
{% if form.zipcode.errors %}
{{ form.zipcode.errors }}
{% endif %} {{ form.zipcode }} {% if form.zipcode.help_text %}
{{ form.zipcode.help_text }}
{% endif %}
{% if form.country.errors %}
{{ form.country.errors }}
{% endif %} {{ form.country }} {% if form.country.help_text %}
{{ form.country.help_text }}
{% endif %}
{% trans 'Alternate Address Information'%}
{% if form.address_2.errors %}
{{ form.address_2.errors }}
{% endif %} {{ form.address_2 }} {% if form.address_2.help_text %}
{{ form.address_2.help_text }}
{% endif %}
{% if form.address2_2.errors %}
{{ form.address2_2.errors }}
{% endif %} {{ form.address2_2 }} {% if form.address2_2.help_text %}
{{ form.address2_2.help_text }}
{% endif %}
{% if form.city_2.errors %}
{{ form.city_2.errors }}
{% endif %} {{ form.city_2 }} {% if form.city_2.help_text %}
{{ form.city_2.help_text }}
{% endif %}
{% if form.state_2.errors %}
{{ form.state_2.errors }}
{% endif %} {{ form.state_2 }} {% if form.state_2.help_text %}
{{ form.state_2.help_text }}
{% endif %}
{% if form.zipcode_2.errors %}
{{ form.zipcode_2.errors }}
{% endif %} {{ form.zipcode_2 }} {% if form.zipcode_2.help_text %}
{{ form.zipcode_2.help_text }}
{% endif %}
{% if form.country_2.errors %}
{{ form.country_2.errors }}
{% endif %} {{ form.country_2 }} {% if form.country_2.help_text %}
{{ form.country_2.help_text }}
{% endif %}
G) {% trans 'Login Information'%}
{% if form.username.errors %}
{{ form.username.errors }}
{% endif %} {{ form.username }} {% if form.username.help_text %}
{{ form.username.help_text }}
{% endif %} {% if profile %} {% endif %}
{% if not profile %}
{% if form.password1.errors %}
{{ form.password1.errors }}
{% endif %} {{ form.password1 }} {% if form.password1.help_text %}
{{ form.password1.help_text }}
{% endif %}
{% if form.password2.errors %}
{{ form.password2.errors }}
{% endif %} {{ form.password2 }} {% if form.password2.help_text %}
{{ form.password2.help_text }}
{% endif %}
{% endif %}
{% if form.interactive.errors %}
{{ form.interactive.errors }}
{% endif %} {{ form.interactive }} {% if form.interactive.help_text %}
{{ form.interactive.help_text }}
{% endif %}
{% if form.status_detail.errors %}
{{ form.status_detail.errors }}
{% endif %} {{ form.status_detail }} {% if form.status_detail.help_text %}
{{ form.status_detail.help_text }}
{% endif %}
H) {% trans 'Notes '%}
{% if form.notes.errors %}
{{ form.notes.errors }}
{% endif %} {{ form.notes }} {% if form.notes.help_text %}
{{ form.notes.help_text }}
{% endif %}
I) {% trans 'Optional Information'%}
{% if form.time_zone.errors %}
{{ form.time_zone.errors }}
{% endif %} {{ form.time_zone }} {% if form.time_zone.help_text %}
{{ form.time_zone.help_text }}
{% endif %}
{% if form.language.errors %}
{{ form.language.errors }}
{% endif %} {{ form.language }} {% if form.language.help_text %}
{{ form.language.help_text }}
{% endif %}
{% if form.sex.errors %}
{{ form.sex.errors }}
{% endif %} {{ form.sex }} {% if form.sex.help_text %}
{{ form.sex.help_text }}
{% endif %}
{% if form.spouse.errors %}
{{ form.spouse.errors }}
{% endif %} {{ form.spouse }} {% if form.spouse.help_text %}
{{ form.spouse.help_text }}
{% endif %}
{% if form.dob.errors %}
{{ form.dob.errors }}
{% endif %} {{ form.dob }} {% if form.dob.help_text %}
{{ form.dob.help_text }}
{% endif %}
{% if request.user.is_superuser %}
J) {% trans 'Administrator Information'%}
{% if form.admin_notes.errors %}
{{ form.admin_notes.errors }}
{% endif %} {{ form.admin_notes }} {% if form.admin_notes.help_text %}
{{ form.admin_notes.help_text }}
{% endif %}
{% if form.security_level.errors %}
{{ form.security_level.errors }}
{% endif %} {{ form.security_level }} {% if form.security_level.help_text %}
{{ form.security_level.help_text }}
{% endif %}
{% endif %}
{% endblock %} {% block extra_body %} {{ block.super }} {% if not profile %} {% endif %} {% endblock %}