src/Front/Templates/Journal/_list/list.html.twig line 1
{% from '@front_templates/_includes/_icons.html.twig' import search, chevronDown, close, delete, filters, grid, gridRow %}
<div class="list-filters">
<div class="search-form search-form__input-wrapper">
<input class="search-form__input" type="text" id="journal-search" required>
<label class="search-form__label" for="journal-search">{{ 'T_JOURNAL_TEXT_SEARCH_LABEL'|trans }}</label>
{{ search('T_SEARCH'|trans, 'black') }}
</div>
<div style="display: none;">
<span class="tag-label">{{ 'T_JOURNAL_TEXT_SEARCH'|trans }}</span>
<button class="tag" id="searched-text"><span class="searched-text">Leonardo da Vinci</span>{{ close('T_REMOVE'|trans, 'black') }}</button>
</div>
{% if isStandalone is defined and isStandalone %}
<div class="list-filters__dropdowns">
<div>
<span class="tag-label">{{ 'T_JOURNAL_LIST_DOMAIN_SELECTION'|trans }}</span>
<button class="form__select form__select--button js-dialog-trigger">
{{ 'T_JOURNAL_ALL_DOMAINS'|trans }} {{ chevronDown('T_ARROW_DOWN'|trans) }}
</button>
</div>
<div>
<span class="tag-label">{{ 'T_JOURNAL_LIST_AFFILIATION_SELECTION'|trans }}</span>
<button class="form__select form__select--button js-dialog-trigger">
{{ 'T_JOURNAL_LIST_ALL_AFFILIATIONS'|trans }} {{ chevronDown('T_ARROW_DOWN'|trans) }}
</button>
</div>
</div>
{% endif %}
<button class="filter-button js-dialog-trigger">{{ filters('T_FILTERS') }} {{ 'T_JOURNAL_SHOW_ALL_FILTERS'|trans }}</button>
<span id="filters-label" class="tag-label" style="display: none;">{{ 'wybrane filtry'|trans }}</span>
<div id="filters-list" class="tag-list" style="display: none;">
<button
style="display: none;"
id="button-template"
data-target=""
class="tag selected-filter template"
>
<span>{{ 'czasopisma naukowe'|trans }}</span> {{ close('T_REMOVE'|trans, 'black') }}
</button>
<button id="clear-filters" class="filter-button">
{{ delete('T_DELETE'|trans, 'black') }} {{ 'T_JOURNAL_CLEAN_ALL_FILTERS'|trans }}
</button>
</div>
</div>
{% include '@front_templates/Journal/_list/_mobile_dialogs.html.twig' %}
{% include '@front_templates/Journal/_list/_filters.html.twig' %}
<div class="select-filters select-filters--mb select-filters--end">
<div class="select-filters__wrapper">
{% if isStandalone is not defined or not isStandalone %}
<label class="select-label" for="perPage">{{ 'SHOW_ON_PAGE'|trans }}:</label>
<select id="perPage">
<option value="16" selected="selected">16</option>
<option value="32">32</option>
</select>
{% endif %}
<label class="select-label" for="sort">{{ 'T_SORT'|trans }}:</label>
{% set sorters = journal_list_util.Sorters %}
<select id="sort">
{% for sorter in sorters %}
<option value="{{ sorter }}">{{ ('T_JOURNAL_LIST_SORT_' ~ sorter)|trans }}</option>
{% endfor %}
</select>
<div class="select-filters__wrapper">
<label class="select-label" for="view">{{ 'T_JOURNAL_LIST_VIEW_TYPE'|trans }}:</label>
<button class="view-option-selector js-view-option-selector" id="view" data-list="js-list-view">
<span class="view-option-selector__block">{{ grid('T_VIEW_BLOCK'|trans) }}</span>
<span class="view-option-selector__row">{{ gridRow('T_VIEW_ROW'|trans) }}</span>
</button>
</div>
</div>
</div>
<div class="js-list-view" id="js-api-result" data-action="{{ site_url_generator.Url('api_front_journals') }}"></div>
{% if isStandalone is not defined or not isStandalone %}
{% include '@front_templates/_includes/_pagination.html.twig' with { display: 'none' } %}
{% endif %}