feat(MembersOverviewSection): add quick filter for training groups and improve layout
All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 43s
All checks were successful
Deploy tt-tagebuch / deploy (push) Successful in 43s
- Introduced a new quick filter dropdown for selecting training groups, enhancing user experience in the MembersOverviewSection. - Removed the previous training group filter from the advanced filters section to streamline the interface. - Updated styles for the quick filter group to improve layout and responsiveness.
This commit is contained in:
@@ -34,6 +34,20 @@
|
||||
<span class="scope-chip-count">{{ scope.count }}</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="members-quick-filter-group">
|
||||
<label for="members-quick-training-group">{{ $t('members.trainingGroups') }}</label>
|
||||
<select
|
||||
id="members-quick-training-group"
|
||||
:value="selectedTrainingGroup"
|
||||
class="filter-select"
|
||||
@change="$emit('update:selected-training-group', $event.target.value)"
|
||||
>
|
||||
<option value="">{{ $t('common.all') }}</option>
|
||||
<option v-for="group in trainingGroupOptions" :key="group.id" :value="group.id">
|
||||
{{ group.name }}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<details class="members-advanced-filters">
|
||||
@@ -137,15 +151,6 @@
|
||||
<option value="unknown">{{ $t('members.genderUnknown') }}</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="filter-group">
|
||||
<label>{{ $t('members.trainingGroups') }}:</label>
|
||||
<select :value="selectedTrainingGroup" class="filter-select" @change="$emit('update:selected-training-group', $event.target.value)">
|
||||
<option value="">{{ $t('common.all') }}</option>
|
||||
<option v-for="group in trainingGroupOptions" :key="group.id" :value="group.id">
|
||||
{{ group.name }}
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="filter-group">
|
||||
<label>{{ $t('members.lastTrainingFilter') }}</label>
|
||||
<select
|
||||
@@ -431,6 +436,13 @@ export default {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.members-quick-filter-group {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 0.35rem;
|
||||
min-width: 16rem;
|
||||
}
|
||||
|
||||
.members-advanced-filters {
|
||||
margin-top: 0.75rem;
|
||||
border-top: 1px solid var(--border-color);
|
||||
@@ -511,6 +523,11 @@ export default {
|
||||
.members-results-actions {
|
||||
justify-content: flex-start;
|
||||
}
|
||||
|
||||
.members-quick-filter-group {
|
||||
width: 100%;
|
||||
min-width: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: 640px) {
|
||||
|
||||
Reference in New Issue
Block a user