{% extends "base.html" %} {% import "_fields.html" as fm %} {% block main %} {% if p %} {% include "_person_head.html" %} {% else %}
Companies

{{ heading }}

{% endif %}
{% if p %}

{{ heading }}

{% endif %} {% if lead %}

{{ lead }}

{% endif %}
{%- for fl in fields %} {%- if fl.section %}

{{ fl.section }}

{%- endif %} {%- if fl.kind == "area" %} {{ fm.area(fl.name, fl.label, values[fl.name], err=errors[fl.name], hint=fl.hint, rows=3, fcls="wide") }} {%- elif fl.kind == "select" %} {{ fm.select(fl.name, fl.label, values[fl.name], fl.options, err=errors[fl.name], hint=fl.hint, blank=fl.blank, cls=("wide" if fl.wide else ""), req=fl.required) }} {%- else %} {{ fm.text(fl.name, fl.label, values[fl.name], err=errors[fl.name], hint=fl.hint, req=fl.required, type=fl.kind, list=fl.suggest, cls=("wide" if fl.wide else "")) }} {%- endif %} {%- endfor %}
Cancel
{% for x in ports %}{% endfor %} {% for x in offices %}{% endfor %} {% for x in provinces %}{% endfor %} {% if mode == "edit" and p %}
For a record entered by mistake. The activity log keeps a note that it existed.
{% endif %} {% endblock %}