{% endblock %}
{% block body %}
{% include 'search-help-modal.html' %}
{% include 'show-view-edit.html' %}
{% include 'request-actions-show.html' %}
{# SEARCH BAR #}
{% set pageName = scriptName|replace({'.php': ''}) %}
{% set searchTarget = pageName %}
{% if pageName == 'database' %}
{% set searchTarget = 'resources'|trans %}
{% endif %}
{# wrap button into a div or it appears too tall #}
{# END SEARCH BAR #}
{# QUERY FILTERS #}
{# FIRST LINE: ALWAYS ON FILTERS: CATEGORY, STATUS, OWNER, TAGS #}
{# TOGGLE MORE FILTERS BUTTON #}
{# END ALWAYS VISIBLE FILTERS #}
{# START HIDDEN FILTERS #}
{# METADATA SEARCH #}
{% if App.Config.configArr.debug -%}
{%- endif %}
{% if App.Config.configArr.debug -%}
{%- endif %}
:
{# METADATA SEARCH END #}
{# GROUPS filter: disabled because not working FIXME #}
{# VISIBILITY filter #}
{# STATE #}
{# END STATE #}
{# LOCK #}
{# END LOCK #}
{# TIMESTAMPED #}
{# END TIMESTAMPED #}
{# RATING #}
{# END RATING #}
{# SEARCH DATE #}
{# END SEARCH DATE #}
{# BUTTONS TOOLBAR #}
{# LEFT #}
{# RIGHT #}
{# SCOPE FILTER #}
{% include 'scope-button.html' with {'reload': 'reloadEntitiesShow,scopeBtn', 'target': 'scope_' ~ Entity.entityType.value, 'isSmall': 0, 'isSecondary': 0} %}
{# SWITCH LAYOUT #}
{# ORDER (Sort) #}
{{ 'Sort'|trans }}
{# LIMIT if there is nothing in the query params, take the user configured one #}
{{ 'Results per page'|trans }}
{% for option in limitOptions(DisplayParams.limit) %}
{% endfor %}
{% set count = itemsArr|length %}
{% if App.Users.isAdmin and itemsCategoryArr|length == 0 %}
{{ 'No resources categories have been defined for your team. Head to the %sAdmin Panel%s to add one.'|trans|format("", "")|raw|msg('warning', false) }}
{% endif %}
{# Show message if we're looking for something (query parameters are present), but the number of results is 0 #}
{% if count == 0 and App.Request.query.all|length > 0 %}