Compare commits
2 Commits
8a817f8be4
...
fc51c284c1
| Author | SHA1 | Date | |
|---|---|---|---|
| fc51c284c1 | |||
| 8691dc7c32 |
@ -4,6 +4,46 @@
|
|||||||
cols="12"
|
cols="12"
|
||||||
md="12"
|
md="12"
|
||||||
>
|
>
|
||||||
|
<VCard
|
||||||
|
class="mb-6"
|
||||||
|
title="TEST"
|
||||||
|
>
|
||||||
|
<VCardText>
|
||||||
|
<VRow>
|
||||||
|
<VCol>
|
||||||
|
<AppSelect
|
||||||
|
v-model="value"
|
||||||
|
:items="items"
|
||||||
|
item-title="name"
|
||||||
|
item-value="name"
|
||||||
|
label="Select Item"
|
||||||
|
placeholder="Select Item"
|
||||||
|
multiple
|
||||||
|
clearable
|
||||||
|
clear-icon="tabler-x"
|
||||||
|
>
|
||||||
|
<template #selection="{ item }">
|
||||||
|
<VChip>
|
||||||
|
<template #prepend>
|
||||||
|
<VAvatar
|
||||||
|
start
|
||||||
|
:image="item.raw.avatar"
|
||||||
|
/>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<span>{{ item.title }}</span>
|
||||||
|
</VChip>
|
||||||
|
</template>
|
||||||
|
</AppSelect>
|
||||||
|
</VCol>
|
||||||
|
</VRow>
|
||||||
|
</VCardText>
|
||||||
|
</VCard>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<!-- v-show="!showEnterBooks" -->
|
||||||
|
<!-- ToDo: Wieder einfügen, wenn fertig -->
|
||||||
<VCard
|
<VCard
|
||||||
class="mb-6"
|
class="mb-6"
|
||||||
title="Bücher eintragen"
|
title="Bücher eintragen"
|
||||||
@ -13,12 +53,14 @@
|
|||||||
<VRow>
|
<VRow>
|
||||||
<VCol
|
<VCol
|
||||||
v-show="!inputValueISBN"
|
v-show="!inputValueISBN"
|
||||||
cols="12"
|
cols="6"
|
||||||
>
|
>
|
||||||
<AppTextField
|
<AppTextField
|
||||||
v-model="inputValueTitle"
|
v-model="inputValueTitle"
|
||||||
|
clearable
|
||||||
label="Titel eingeben:"
|
label="Titel eingeben:"
|
||||||
placeholder="Harry Potter und der Stein der Weisen"
|
placeholder="Harry Potter und der Stein der Weisen"
|
||||||
|
clear-icon="tabler-x"
|
||||||
/>
|
/>
|
||||||
</VCol>
|
</VCol>
|
||||||
<VCol
|
<VCol
|
||||||
@ -29,20 +71,23 @@
|
|||||||
</VCol>
|
</VCol>
|
||||||
<VCol
|
<VCol
|
||||||
v-show="!inputValueTitle"
|
v-show="!inputValueTitle"
|
||||||
cols="12"
|
cols="6"
|
||||||
>
|
>
|
||||||
<AppTextField
|
<AppTextField
|
||||||
id="isbnInput"
|
id="isbnInput"
|
||||||
v-model="inputValueISBN"
|
v-model="inputValueISBN"
|
||||||
|
clearable
|
||||||
type="text"
|
type="text"
|
||||||
label="ISBN eingeben:"
|
label="ISBN eingeben:"
|
||||||
placeholder="978-3-551-55167-7"
|
placeholder="978-3-551-55167-7"
|
||||||
|
clear-icon="tabler-x"
|
||||||
/>
|
/>
|
||||||
</VCol>
|
</VCol>
|
||||||
<VCol
|
<VCol
|
||||||
v-show="showButton"
|
v-show="showButton"
|
||||||
cols="12"
|
cols="12"
|
||||||
>
|
>
|
||||||
|
<div class="demo-space-x">
|
||||||
<VBtn @click="displayBook">
|
<VBtn @click="displayBook">
|
||||||
Suchen
|
Suchen
|
||||||
<VIcon
|
<VIcon
|
||||||
@ -50,6 +95,7 @@
|
|||||||
icon="tabler-search"
|
icon="tabler-search"
|
||||||
/>
|
/>
|
||||||
</VBtn>
|
</VBtn>
|
||||||
|
</div>
|
||||||
</VCol>
|
</VCol>
|
||||||
|
|
||||||
|
|
||||||
@ -60,7 +106,7 @@
|
|||||||
<VBtn
|
<VBtn
|
||||||
variant="text"
|
variant="text"
|
||||||
color="error"
|
color="error"
|
||||||
@click="displayBook"
|
@click="displayedEnterBooks"
|
||||||
>
|
>
|
||||||
Wurde dein Buch nicht gefunden? Dann trage es jetzt ein!
|
Wurde dein Buch nicht gefunden? Dann trage es jetzt ein!
|
||||||
</VBtn>
|
</VBtn>
|
||||||
@ -73,8 +119,10 @@
|
|||||||
|
|
||||||
|
|
||||||
<VCard
|
<VCard
|
||||||
|
v-show="showEnterBooks"
|
||||||
class="mb-6"
|
class="mb-6"
|
||||||
title="Buch eintragen"
|
title="Trage dein Buch jetzt ein:"
|
||||||
|
subtitle="Alle mit * gekennzeichneten Felder sind Pflichtfelder!"
|
||||||
>
|
>
|
||||||
<VCardText>
|
<VCardText>
|
||||||
<VRow>
|
<VRow>
|
||||||
@ -116,7 +164,7 @@
|
|||||||
>
|
>
|
||||||
<AppTextField
|
<AppTextField
|
||||||
label="Untertitel eingeben:"
|
label="Untertitel eingeben:"
|
||||||
placeholder="..."
|
placeholder=" "
|
||||||
/>
|
/>
|
||||||
</VCol>
|
</VCol>
|
||||||
<!-- Genre* -> 1:n -->
|
<!-- Genre* -> 1:n -->
|
||||||
@ -211,23 +259,34 @@ der bei seinem gehässigen Onkel Vernon, seiner Tante Petunia und seinem Cousin
|
|||||||
<!-- Cover/Umschlagbild* -->
|
<!-- Cover/Umschlagbild* -->
|
||||||
<VCol cols="12">
|
<VCol cols="12">
|
||||||
<!-- 👉 Cover -->
|
<!-- 👉 Cover -->
|
||||||
<!-- <VCardItem>
|
<!--
|
||||||
|
<VCardItem>
|
||||||
<template #title>
|
<template #title>
|
||||||
Buchcover hochladen
|
Buchcover hochladen
|
||||||
</template>
|
</template>
|
||||||
</VCardItem>-->
|
</VCardItem>
|
||||||
|
-->
|
||||||
<DropZone />
|
<DropZone />
|
||||||
</VCol>
|
</VCol>
|
||||||
|
|
||||||
|
|
||||||
<VCol cols="12">
|
<VCol cols="12">
|
||||||
<VBtn>
|
<div class="demo-space-x">
|
||||||
Speichern
|
<VBtn color="success">
|
||||||
|
Buch eintragen
|
||||||
<VIcon
|
<VIcon
|
||||||
end
|
end
|
||||||
icon="tabler-device-floppy"
|
icon="tabler-device-floppy"
|
||||||
/>
|
/>
|
||||||
</VBtn>
|
</VBtn>
|
||||||
|
<VBtn color="error">
|
||||||
|
Löschen
|
||||||
|
<VIcon
|
||||||
|
end
|
||||||
|
icon="tabler-x"
|
||||||
|
/>
|
||||||
|
</VBtn>
|
||||||
|
</div>
|
||||||
</VCol>
|
</VCol>
|
||||||
</VRow>
|
</VRow>
|
||||||
</VCardText>
|
</VCardText>
|
||||||
@ -239,8 +298,8 @@ der bei seinem gehässigen Onkel Vernon, seiner Tante Petunia und seinem Cousin
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { ref, watch } from 'vue'
|
import { ref, watch } from 'vue'
|
||||||
import AppTextField from "@core/components/app-form-elements/AppTextField.vue"
|
import AppTextField from "@core/components/app-form-elements/AppTextField.vue"
|
||||||
import DropZone from "@core/components/DropZone.vue";
|
import DropZone from "@core/components/DropZone.vue"
|
||||||
import AppCombobox from "@core/components/app-form-elements/AppCombobox.vue";
|
import AppCombobox from "@core/components/app-form-elements/AppCombobox.vue"
|
||||||
|
|
||||||
const inputValueTitle = ref('')
|
const inputValueTitle = ref('')
|
||||||
const inputValueISBN = ref('')
|
const inputValueISBN = ref('')
|
||||||
@ -249,7 +308,6 @@ const displayedBooks = ref(false)
|
|||||||
|
|
||||||
watch(inputValueTitle, newValue => {
|
watch(inputValueTitle, newValue => {
|
||||||
showButton.value = newValue !== ''
|
showButton.value = newValue !== ''
|
||||||
console.log("Test1")
|
|
||||||
if (!showButton.value){
|
if (!showButton.value){
|
||||||
displayedBooks.value = false
|
displayedBooks.value = false
|
||||||
}
|
}
|
||||||
@ -257,7 +315,6 @@ watch(inputValueTitle, newValue => {
|
|||||||
|
|
||||||
watch(inputValueISBN, newValue => {
|
watch(inputValueISBN, newValue => {
|
||||||
showButton.value = newValue !== ''
|
showButton.value = newValue !== ''
|
||||||
console.log("Test2")
|
|
||||||
if (!showButton.value){
|
if (!showButton.value){
|
||||||
displayedBooks.value = false
|
displayedBooks.value = false
|
||||||
}
|
}
|
||||||
@ -267,12 +324,32 @@ function displayBook() {
|
|||||||
displayedBooks.value = true
|
displayedBooks.value = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
//////////////////
|
//////////////////
|
||||||
|
const showEnterBooks = ref(true) /// false setzten!
|
||||||
|
|
||||||
|
function displayedEnterBooks() {
|
||||||
|
showEnterBooks.value = true
|
||||||
|
}
|
||||||
const seitenanzahl = ref(null)
|
const seitenanzahl = ref(null)
|
||||||
|
|
||||||
//////////////////
|
// import genre Icons
|
||||||
|
const avatar1 = {
|
||||||
|
icon: 'tabler-compass',
|
||||||
|
size: '28',
|
||||||
|
}
|
||||||
|
|
||||||
|
const items = [
|
||||||
|
{
|
||||||
|
name: 'Michi',
|
||||||
|
avatar: avatar1,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
|
||||||
|
const value = ref(['Michi'])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const content = ref(`<p>
|
const content = ref(`<p>
|
||||||
Der elfjährige Harry Potter,<br>der bei seinem gehässigen Onkel Vernon, seiner Tante Petunia und seinem Cousin Dudley lebt, erfährt an seinem elften Geburtstag, dass er ein Zauberer ist. Er erhält einen Platz auf der Schule für Hexerei und Zauberei Hogwarts, wo er neue Freunde findet und in die Geheimnisse der Zauberwelt eintaucht.
|
Der elfjährige Harry Potter,<br>der bei seinem gehässigen Onkel Vernon, seiner Tante Petunia und seinem Cousin Dudley lebt, erfährt an seinem elften Geburtstag, dass er ein Zauberer ist. Er erhält einen Platz auf der Schule für Hexerei und Zauberei Hogwarts, wo er neue Freunde findet und in die Geheimnisse der Zauberwelt eintaucht.
|
||||||
</br>`)
|
</br>`)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user