{% extends "entities/entity_create_generic.html" %} {% load guardian_tags %} {% block Titel %}Create an Institution{% endblock %} {% block scripts %} {{ block.super }} {% if instance %} {% get_obj_perms request.user for instance as "instance_perms" %} {% if "change_institution" in instance_perms %} {% else %} {% endif %} {% endif %} {% endblock %} {% block editbuttons %} {% if instance %} {% get_obj_perms request.user for instance as "instance_perms" %} {% if "delete_institution" in instance_perms %} delete {% endif %} {% if "change_institution" in instance_perms %} {% endif %} {% else %} {% if perms.entities.add_institution %} {% endif %} {% endif %} {% if instance %} {% endif %} {% endblock editbuttons %}