Add the ability to filter for unread pages in the filters menu.
->add('isStarred', CheckboxFilterType::class, [
'label' => 'entry.filters.starred_label',
])
+ ->add('isUnread', CheckboxFilterType::class, [
+ 'label' => 'entry.filters.unread_label',
+ 'apply_filter' => function (QueryInterface $filterQuery, $field, $values) {
+ if (false === $values['value']) {
+ return;
+ }
+
+ $expression = $filterQuery->getExpr()->eq('e.isArchived', 'false');
+
+ return $filterQuery->createCondition($expression);
+ },
+ ])
->add('previewPicture', CheckboxFilterType::class, [
'apply_filter' => function (QueryInterface $filterQuery, $field, $values) {
if (false === $values['value']) {
status_label: 'Status'
archived_label: 'Arkiveret'
starred_label: 'Favorit'
+ unread_label: 'Ulæst'
preview_picture_label: 'Har et vist billede'
preview_picture_help: 'Forhåndsvis billede'
language_label: 'Sprog'
status_label: 'Status'
archived_label: 'Archiviert'
starred_label: 'Favorisiert'
+ unread_label: 'Ungelesene'
preview_picture_label: 'Vorschaubild vorhanden'
preview_picture_help: 'Vorschaubild'
language_label: 'Sprache'
status_label: 'Status'
archived_label: 'Archived'
starred_label: 'Starred'
+ unread_label: 'Unread'
preview_picture_label: 'Has a preview picture'
preview_picture_help: 'Preview picture'
language_label: 'Language'
status_label: 'Estatus'
archived_label: 'Archivado'
starred_label: 'Favorito'
+ unread_label: 'Sin leer'
preview_picture_label: 'Hay una foto'
preview_picture_help: 'Foto de preview'
language_label: 'Idioma'
status_label: 'وضعیت'
archived_label: 'بایگانیشده'
starred_label: 'برگزیده'
+ unread_label: 'خواندهنشده'
preview_picture_label: 'دارای عکس پیشنمایش'
preview_picture_help: 'پیشنمایش عکس'
language_label: 'زبان'
status_label: 'Status'
archived_label: 'Lus'
starred_label: 'Favoris'
+ unread_label: 'Non lus'
preview_picture_label: 'A une photo'
preview_picture_help: 'Photo'
language_label: 'Langue'
status_label: 'Estatus'
archived_label: 'Legits'
starred_label: 'Favorits'
+ unread_label: 'Pas legits'
preview_picture_label: 'A una fotò'
preview_picture_help: 'Fotò'
language_label: 'Lenga'
status_label: 'Status'
archived_label: 'Zarchiwizowane'
starred_label: 'Oznaczone gwiazdką'
+ unread_label: 'Nieprzeczytane'
preview_picture_label: 'Posiada podgląd obrazu'
preview_picture_help: 'Podgląd obrazu'
language_label: 'Język'
status_label: 'Status'
archived_label: 'Arhivat'
starred_label: 'Steluțe'
+ unread_label: 'Necitite'
preview_picture_label: 'Are o imagine de previzualizare'
preview_picture_help: 'Previzualizare imagine'
language_label: 'Limbă'
status_label: 'Durum'
archived_label: 'Arşiv'
starred_label: 'Favori'
+ unread_label: 'Okunmayan'
preview_picture_label: 'Resim önizlemesi varsa'
preview_picture_help: 'Resim önizlemesi'
language_label: 'Dil'
{{ form_label(form.isStarred) }}
</div>
+ <div class="input-field">
+ {{ form_widget(form.isUnread) }}
+ {{ form_label(form.isUnread) }}
+ </div>
+
<div class="input-field">
{{ form_widget(form.previewPicture) }}
{{ form_label(form.previewPicture) }}
{{ form_label(form.isStarred) }}
</div>
+ <div class="input-field col s6 with-checkbox">
+ {{ form_widget(form.isUnread) }}
+ {{ form_label(form.isUnread) }}
+ </div>
+
<div class="col s12">
<label>{{ 'entry.filters.preview_picture_help'|trans }}</label>
</div>