improve type filter selection

This commit is contained in:
Vri 🌈 2023-06-16 15:30:19 +02:00
parent d08a2cfdc2
commit 9bbb1f3e03
Signed by: vrifox
GPG key ID: D40098E5B60B2197

View file

@ -81,19 +81,24 @@ export default {
<template> <template>
<form class="mr-4 mt-4"> <form class="mr-4 mt-4">
<select <fieldset class="flex flex-row mb-4">
class="w-40" <legend>Kategorie</legend>
v-model="paperFilter.type"> <select
<option class="w-40 p-2 bg-background-100 rounded-lg"
v-for="(type, i) of paperTypes" v-model="paperFilter.type">
:key="i" <option
>{{ type.value }} v-for="(type, i) of paperTypes"
</option> :key="i"
</select> :value="type"
<select >{{ type.value }}
class="w-40" </option>
v-model="paperFilter.originator"> </select>
<option v-for="(originator, i) of paperOriginators" :key="i">{{ originator }}</option> <button
</select> class="pl-2"
@click.prevent="paperFilter.type = { key: '', value: ''}"
title="zurücksetzen"
>
</button>
</fieldset>
</form> </form>
</template> </template>