{% 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 %}