$searchTerm = (isset($request->get('search_entry')['term']) ? $request->get('search_entry')['term'] : '');
$currentRoute = (null !== $request->query->get('currentRoute') ? $request->query->get('currentRoute') : '');
- $sortBy = 'id';
- if (in_array($request->get('sort', 'id'), ['id', 'created_at', 'title', 'updated_at'], true)) {
- $sortBy = $request->get('sort', 'id');
+ $sortBy = 'createdAt';
+ if (in_array($request->get('sort', 'createdAt'), ['id', 'createdAt', 'title', 'updatedAt'], true)) {
+ $sortBy = $request->get('sort', 'createdAt');
}
$direction = 'DESC' === $request->get('direction') ? 'DESC' : 'ASC';
# random_entry: Jump to a random entry from that list
# export: 'Export'
# account: 'My account'
+ # sort_entries: 'Sort entries'
search_form:
input_label: 'Indtast søgning'
action:
clear: 'Ryd'
filter: 'Filter'
+ sort:
+ # title: 'Sort options'
+ # status_label: 'Sort by'
+ # by:
+ # creation_date: 'Creation date'
+ # title: 'Title'
+ # last_updated: 'Last updated'
+ #ascending: 'Asencending'
+ # descending: 'Descending'
view:
left_menu:
# back_to_top: 'Back to top'
# random_entry: Jump to a random entry from that list
export: 'Exportieren'
# account: 'My account'
+ # sort_entries: 'Sort entries'
search_form:
input_label: 'Suchbegriff hier eingeben'
action:
clear: 'Zurücksetzen'
filter: 'Filtern'
+ sort:
+ # title: 'Sort options'
+ # status_label: 'Sort by'
+ # by:
+ # creation_date: 'Creation date'
+ # title: 'Title'
+ # last_updated: 'Last updated'
+ #ascending: 'Asencending'
+ # descending: 'Descending'
view:
left_menu:
back_to_top: 'Nach oben'
random_entry: Jump to a random entry from that list
export: 'Export'
account: 'My account'
+ sort_entries: 'Sort entries'
search_form:
input_label: 'Enter your search here'
action:
clear: 'Clear'
filter: 'Filter'
+ sort:
+ title: 'Sort options'
+ status_label: 'Sort by'
+ by:
+ creation_date: 'Creation date'
+ title: 'Title'
+ last_updated: 'Last updated'
+ ascending: 'Asencending'
+ descending: 'Descending'
view:
left_menu:
back_to_top: 'Back to top'
random_entry: 'Ir a un artículo aleatório de esta lista'
export: 'Exportar'
# account: 'My account'
+ # sort_entries: 'Sort entries'
search_form:
input_label: 'Introduzca su búsqueda aquí'
action:
clear: 'Limpiar'
filter: 'Filtrar'
+ sort:
+ # title: 'Sort options'
+ # status_label: 'Sort by'
+ # by:
+ # creation_date: 'Creation date'
+ # title: 'Title'
+ # last_updated: 'Last updated'
+ #ascending: 'Asencending'
+ # descending: 'Descending'
view:
left_menu:
back_to_top: 'Regrese al principio'
# random_entry: Jump to a random entry from that list
export: 'برونبری'
# account: 'My account'
+ # sort_entries: 'Sort entries'
search_form:
input_label: 'جستجوی خود را اینجا بنویسید:'
action:
clear: 'از نو'
filter: 'فیلتر'
+ sort:
+ # title: 'Sort options'
+ # status_label: 'Sort by'
+ # by:
+ # creation_date: 'Creation date'
+ # title: 'Title'
+ # last_updated: 'Last updated'
+ #ascending: 'Asencending'
+ # descending: 'Descending'
view:
left_menu:
back_to_top: 'بازگشت به بالای صفحه'
random_entry: Aller à un article aléatoire de cette liste
export: "Exporter"
account: "Mon compte"
+ sort_entries: 'Trier les articles'
search_form:
input_label: "Saisissez votre terme de recherche"
export_title: "Exporter"
filters:
title: "Filtres"
- status_label: "Status"
+ status_label: "Statut"
archived_label: "Lus"
starred_label: "Favoris"
unread_label: "Non lus"
action:
clear: "Effacer"
filter: "Filtrer"
+ sort:
+ title: 'Options de tri'
+ status_label: 'Trier par'
+ by:
+ creation_date: 'Date de création'
+ title: 'Titre'
+ last_updated: 'Dernière mise à jour'
+ ascending: 'Ascendant'
+ descending: 'Descendant'
view:
left_menu:
back_to_top: "Revenir en haut"
# random_entry: Jump to a random entry from that list
export: 'Esporta'
# account: 'My account'
+ # sort_entries: 'Sort entries'
search_form:
input_label: 'Inserisci qui la tua ricerca'
action:
clear: 'Pulisci'
filter: 'Filtra'
+ sort:
+ # title: 'Sort options'
+ # status_label: 'Sort by'
+ # by:
+ # creation_date: 'Creation date'
+ # title: 'Title'
+ # last_updated: 'Last updated'
+ #ascending: 'Asencending'
+ # descending: 'Descending'
view:
left_menu:
back_to_top: "Torna all'inizio"
random_entry: "Sautar a un article a l'azard"
export: 'Exportar'
# account: 'My account'
+ # sort_entries: 'Sort entries'
search_form:
input_label: 'Picatz vòstre mot-clau a cercar aquí'
action:
clear: 'Escafar'
filter: 'Filtrar'
+ sort:
+ # title: 'Sort options'
+ # status_label: 'Sort by'
+ # by:
+ # creation_date: 'Creation date'
+ # title: 'Title'
+ # last_updated: 'Last updated'
+ #ascending: 'Asencending'
+ # descending: 'Descending'
view:
left_menu:
back_to_top: 'Tornar en naut'
# random_entry: Jump to a random entry from that list
export: 'Eksportuj'
# account: 'My account'
+ # sort_entries: 'Sort entries'
search_form:
input_label: 'Wpisz swoje zapytanie tutaj'
action:
clear: 'Wyczyść'
filter: 'Filtruj'
+ sort:
+ # title: 'Sort options'
+ # status_label: 'Sort by'
+ # by:
+ # creation_date: 'Creation date'
+ # title: 'Title'
+ # last_updated: 'Last updated'
+ #ascending: 'Asencending'
+ # descending: 'Descending'
view:
left_menu:
back_to_top: 'Wróć na górę'
random_entry: Ir para um artigo aleatório desta lista
export: 'Exportar'
# account: 'My account'
+ # sort_entries: 'Sort entries'
search_form:
input_label: 'Digite aqui sua pesquisa'
action:
clear: 'Limpar'
filter: 'Filtro'
+ sort:
+ # title: 'Sort options'
+ # status_label: 'Sort by'
+ # by:
+ # creation_date: 'Creation date'
+ # title: 'Title'
+ # last_updated: 'Last updated'
+ #ascending: 'Asencending'
+ # descending: 'Descending'
view:
left_menu:
back_to_top: 'Voltar ao topo'
# random_entry: Jump to a random entry from that list
# export: 'Export'
# account: 'My account'
+ # sort_entries: 'Sort entries'
search_form:
input_label: 'Introdu căutarea ta'
action:
clear: 'Șterge'
filter: 'Filtru'
+ sort:
+ # title: 'Sort options'
+ # status_label: 'Sort by'
+ # by:
+ # creation_date: 'Creation date'
+ # title: 'Title'
+ # last_updated: 'Last updated'
+ #ascending: 'Asencending'
+ # descending: 'Descending'
view:
left_menu:
# back_to_top: 'Back to top'
# random_entry: Jump to a random entry from that list
export: 'Dışa Aktar'
# account: 'My account'
+ # sort_entries: 'Sort entries'
search_form:
input_label: 'Aramak istediğiniz herhangi bir şey yazın'
action:
clear: 'Temizle'
filter: 'Filtrele'
+ sort:
+ # title: 'Sort options'
+ # status_label: 'Sort by'
+ # by:
+ # creation_date: 'Creation date'
+ # title: 'Title'
+ # last_updated: 'Last updated'
+ #ascending: 'Asencending'
+ # descending: 'Descending'
view:
left_menu:
# back_to_top: 'Back to top'
<div class="row">
<div class="col s12">
- <label>{{ 'entry.sort_by.status_label'|trans }}</label>
+ <label>{{ 'entry.sort.status_label'|trans }}</label>
</div>
<div class="input-field col s12 with-checkbox">
<select>
<option value="" disabled selected>Creation date</option>
- <option value="1">Sort by creation date</option>
- <option value="2">Sort by title</option>
- <option value="3">Sort by last updated</option>
+ <option value="createdAt">{{ 'entry.sort.by.creation_date' | trans }}</option>
+ <option value="title">{{ 'entry.sort.by.title' | trans }}</option>
+ <option value="updatedAt">{{ 'entry.sort.by.last_updated' | trans }}</option>
</select>
- {{ form_label(form.isArchived) }}
</div>
<div class="col s12">
</a>
</li>
<li id="button_sort">
- <a title="{{ 'menu.top.filter_entries'|trans }}" href="#" data-activates="sort" class="nav-panel-menu button-collapse-right">
+ <a title="{{ 'menu.top.sort_entries'|trans }}" href="#" data-activates="sort" class="nav-panel-menu button-collapse-right">
<i class="material-icons">sort_by_alpha</i>
</a>
</li>