{% extends "entities/entity_create_generic.html" %}
{% block Titel %}Create a Person{% endblock %}
{% load guardian_tags %}
{% load crispy_forms_tags %}
{% block scripts %}
{{ block.super }}
{% if instance %}
{% get_obj_perms request.user for instance as "instance_perms" %}
{% if "change_person" in instance_perms %}
{% else %}
{% endif %}
{% endif %}
{% endblock %}
{% block editbuttons %}
{% if instance %}
{% get_obj_perms request.user for instance as "instance_perms" %}
{% if "delete_person" in instance_perms %}
delete
{% endif %}
{% if "change_person" in instance_perms %}
{% endif %}
{% else %}
{% if perms.entities.add_person %}
{% endif %}
{% endif %}
{% if instance %}
{% endif %}
{% endblock editbuttons %}