{% extends 'base.html' %} {% load static %} {% load i18n %} {% load omflow_tags %} {% block content %}

{% if not request.session.principal_id %} {% omform_update_perms user flow_uuid data_no data_id '_Add' as check_add%} {% else %} {% omform_update_perms request.session.principal_id flow_uuid data_no data_id '_Add' as check_add%} {% endif%} {% if 'omformmodel.Omdata_'|add:flow_uuid|add:'_Add' in perms and not request.session.principal_id or check_add%} {% endif %} {% if not request.session.principal_id %} {% omform_update_perms user flow_uuid data_no data_id '_Delete' as check_delete%} {% else %} {% omform_update_perms request.session.principal_id flow_uuid data_no data_id '_Delete' as check_delete%} {% endif %} {% if 'omformmodel.Omdata_'|add:flow_uuid|add:'_Delete' in perms and not request.session.principal_id or check_delete%} {% endif %}
{% endblock%}