{% extends 'base.html' %} {% block title %}

{{ pageTitle }}

{% include 'create-new.html' %}
{% 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 %}
{# next div is wrapper to position pre below textarea #}
{# wrap button into a div or it appears too tall #}
{# END SEARCH BAR #} {# QUERY FILTERS #}
{# FIRST LINE: ALWAYS ON FILTERS: CATEGORY, STATUS, OWNER, TAGS #}
{% if App.Request.query.get('related') %} {% endif %}
{# CATEGORY #} {# STATUS #} {# OWNER filter #} {# SEARCH WITH TAG #} {# select is hidden to avoid showing the raw list and a layout change, it shows up with TomSelect #} {% if App.Config.configArr.debug -%} {%- endif %} {# END SEARCH WITH TAG #}
{# TOGGLE MORE FILTERS BUTTON #}
{# END ALWAYS VISIBLE FILTERS #}
{# START HIDDEN FILTERS #}

{# 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) #}
{# LIMIT if there is nothing in the query params, take the user configured one #}

{% 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 %}
{% set otherPage = Entity.entityType.value == 'experiments' ? 'database' : 'experiments' %} {{ "Sorry. I couldn't find anything :("|trans|msg('ko', false) }}
{% elseif count == 0 and (App.Request.query.all|length == 0) and not App.Session.get('is_anon') and not App.Request.query.get('offset') %}
{{ "Welcome to eLabFTW. Use the 'Create new' button to get started!"|trans|msg('ok', false) }}
{% else %}

{{ 'With selected:'|trans }}

{# First line #}
{# Export #} {# Action buttons #}
{# CHANGE CATEGORY #} {# CHANGE STATUS #} {# CANREAD #} {# CANWRITE #} {# ADD A TAG #} {# ADD A RESOURCE LINK #}
{# ADD AN EXPERIMENT LINK #}
{# SAVE AND RESET BUTTONS #}
{% if App.Users.userData.display_mode == 'it' %}
{% for item in itemsArr|slice(0, DisplayParams.limit) %} {% include 'show-item.html' %} {% endfor %}
{% elseif App.Users.userData.display_mode == 'tb' -%} {% for item in itemsArr|slice(0, DisplayParams.limit) %} {% include 'show-item-table.html' %} {% endfor %}
{{ 'Date'|trans }}
{{ 'Title'|trans }}
{{ 'Next step'|trans }}
{{ 'Category'|trans }}
{{ 'Status'|trans }}
{{ 'Tags'|trans }}
{# add mr-1 here because column is small #} {{ 'Rating'|trans }}
{{ 'Owner'|trans }}
{% endif %} {# LOAD MORE button #}
{% endif %}
{% endblock body %}