{%- macro htmButton_patchTenant() %}Modify{%- endmacro %} {%- macro htmButton_postTenant() %}Create{%- endmacro %} {%- macro htmButton_deleteTenant() %}Delete{%- endmacro %} {%- macro htmButton_putimportTenant() %}Import{%- endmacro %} {%- macro htmButton_deletefilterTenant() %}Delete{%- endmacro %}
{% if AUTH_SCOPE_SUPER_ADMIN in scopes %} {% if "PATCH" in scopes %} {% if resultCount >= 1 %} refresh {% endif %} {% if resultCount > 0 %} refresh all {% endif %} {% endif %} {% endif %} {%- if 'PATCH' in scopes %} {%- if resultCount > 0 %} {%- if AUTH_SCOPE_SUPER_ADMIN in scopes %} {{ htmButton_patchTenant() }} {%- endif %} {%- endif %} {%- endif %} {%- if 'POST' in scopes %} {%- if resultCount >= 1 %} {{ htmButton_postTenant() }} {%- else %} {{ htmButton_postTenant() }} {%- endif %} {%- endif %} {%- if 'DELETE' in scopes %} {%- if result is defined %} {{ htmButton_deleteTenant() }} {%- endif %} {%- endif %} {%- if AUTH_SCOPE_SUPER_ADMIN in scopes %} {{ htmButton_putimportTenant() }} {%- endif %} {%- if 'DELETE' in scopes %} {%- if result is not defined %} {%- if AUTH_SCOPE_SUPER_ADMIN in scopes %} {{ htmButton_deletefilterTenant() }} {%- endif %} {%- endif %} {%- endif %}