Skip to content

Commit

Permalink
Merge pull request #1048 from didoda/ui/filter-only-my-contents
Browse files Browse the repository at this point in the history
UI: filter only my contents in more filters
  • Loading branch information
didoda authored Sep 28, 2023
2 parents 49d8c47 + f0e19a9 commit 9e8c6a0
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions templates/Element/FilterBox/filter_box_common.twig
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
v-model.trim="queryFilter.q"
@keydown.enter.prevent="applyFilter"
/>

<label class="mt-025" v-if="showAdvanced">
<input type="checkbox" form="_filters" v-model="queryFilter.filter['history_editor']" :initvalue="initHistoryEditor">{{ __('Only my contents') }}</input>
</label>
</div>

<div class="filter-buttons">
Expand Down Expand Up @@ -45,6 +41,13 @@
</select>
</div>

{# only my contents filter #}
<div class="filter-container" v-if="showAdvanced">
<label>
<input type="checkbox" form="_filters" v-model="queryFilter.filter['history_editor']" :initvalue="initHistoryEditor">{{ __('Only my contents') }}</input>
</label>
</div>

{# status filter #}
<div class="filter-container" v-if="statusFilter.options">
<label>{{ __('Status') }}</label>
Expand Down

0 comments on commit 9e8c6a0

Please sign in to comment.