2021-10-15 18:45:41 +00:00
|
|
|
<template>
|
2021-10-29 20:13:38 +00:00
|
|
|
<div class="collect-quote">
|
|
|
|
<p>Sachen gibt's ...</p>
|
|
|
|
<form>
|
|
|
|
<input type="hidden" name="id" :value="quote.id" />
|
|
|
|
<input v-model="quote.quote" size="60" />
|
|
|
|
</form>
|
|
|
|
<button @click="save">Save</button>
|
|
|
|
<Quote :text="quote.quote" />
|
2021-10-15 18:45:41 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
2021-10-29 20:13:38 +00:00
|
|
|
|
2021-10-15 18:45:41 +00:00
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
props: ['quote'],
|
|
|
|
methods: {
|
2021-10-29 20:13:38 +00:00
|
|
|
save() {
|
|
|
|
this.$nuxt.$emit('save-quote', this.quote)
|
|
|
|
}
|
2021-10-15 18:45:41 +00:00
|
|
|
},
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
.collect-quote {
|
2021-10-29 20:13:38 +00:00
|
|
|
color: #ffffff;
|
2021-10-15 18:45:41 +00:00
|
|
|
}
|
|
|
|
</style>
|