{% if AUTH_SCOPE_SUPER_ADMIN in scopes %} {% if "PATCH" in scopes %} {% if resultCount >= 1 %} recharger {% endif %} {% if resultCount > 0 %} recharger toutes {% endif %} {% endif %} {% endif %}
{%- macro htmButton_patchFishingTrip() %}Modifier{%- endmacro %} {%- macro htmButton_postFishingTrip() %}Créer{%- endmacro %} {%- macro htmButton_deleteFishingTrip() %}Supprimer{%- endmacro %} {%- macro htmButton_putimportFishingTrip() %}Importer{%- endmacro %} {%- macro htmButton_deletefilterFishingTrip() %}Supprimer{%- endmacro %}
{% if AUTH_SCOPE_SUPER_ADMIN in scopes %} {% if "PATCH" in scopes %} {% if resultCount >= 1 %} recharger {% endif %} {% if resultCount > 0 %} recharger toutes {% endif %} {% endif %} {% endif %} {%- if 'PATCH' in scopes %} {%- if resultCount > 0 %} {%- if AUTH_SCOPE_SUPER_ADMIN in scopes %} {{ htmButton_patchFishingTrip() }} {%- endif %} {%- endif %} {%- endif %} {%- if 'POST' in scopes %} {%- if resultCount >= 1 %} {{ htmButton_postFishingTrip() }} {%- else %} {{ htmButton_postFishingTrip() }} {%- endif %} {%- endif %} {%- if 'DELETE' in scopes %} {%- if result is defined %} {{ htmButton_deleteFishingTrip() }} {%- endif %} {%- endif %} {%- if AUTH_SCOPE_SUPER_ADMIN in scopes %} {{ htmButton_putimportFishingTrip() }} {%- endif %} {%- if 'DELETE' in scopes %} {%- if result is not defined %} {%- if AUTH_SCOPE_SUPER_ADMIN in scopes %} {{ htmButton_deletefilterFishingTrip() }} {%- endif %} {%- endif %} {%- endif %}