{%extends "rolodex/base.html" %} {%load staticfiles%} {%block head%} {%endblock%} {%block content%} {% if edit %}

{{personNode.firstName}} {{personNode.lastName}}

{% else %}

New Person

{% endif %}
{%if success%}
Person added! Add another?
{%endif%}

ID

{% if edit %}
{% elif orgNode %} {%else%} {% endif %} {%csrf_token%} {% if form.errors or formset.errors %}

Whoops, there was a mistake... Correct it below and try again.

{%endif%}
{% if form.errors %}
  • {{ form.non_field_errors|striptags }}
  • {% for field in form %} {%if field.errors%}
  • {{field.label}}: {{ field.errors|striptags }}
  • {%endif%} {% endfor %}
{% endif %}
  • Personal
  • {{form.firstName}}
  • {{form.lastName}}
  • {{form.gender}}
  • Professional
  • {%if primary%}
  • @ {{primary.orgName}}
  • {%endif%}
  • {{form.role}}
  • {{form.position}}
  • {{form.department}}
  • Pro-tip: Consider whether a department should be its own org, linked to a parent org.
  • {{form.notes}}

Contacts

Contacts include links to a homepage and social media sites, phone and fax numbers, as well as email and physical addresses.

{% load formset_tags %}
{{formset.management_form}}
{% for form in formset %}
{% if form.errors %}
  • {{ form.non_field_errors|striptags }}
  • {% for field in form %} {%if field.errors%}
  • {{field.label}}: {{ field.errors|striptags }}
  • {%endif%} {% endfor %}
{% endif %} {{ form.id }} {{ form.person }} {{ form.org }}
  • Type{{ form.type }}
  • Contact{{ form.contact }}
  • {{ form.notes }}
{% endfor %}
{% if edit %} {% else %} {% endif %}
{%endblock%}