Added book description
the build failed
Details
the build failed
Details
This commit is contained in:
parent
2744214185
commit
50b368320a
|
@ -86,6 +86,10 @@
|
||||||
|
|
||||||
// Build the list object
|
// Build the list object
|
||||||
this.bookList = [
|
this.bookList = [
|
||||||
|
{
|
||||||
|
header: this.translate('books').description,
|
||||||
|
content: this.book.Description.replace(/\n/g, '<br>')
|
||||||
|
},
|
||||||
{
|
{
|
||||||
header: this.translate('books').gridColumns.isbn,
|
header: this.translate('books').gridColumns.isbn,
|
||||||
content: this.book.Isbn
|
content: this.book.Isbn
|
||||||
|
@ -98,6 +102,10 @@
|
||||||
header: this.translate('books').gridColumns.price,
|
header: this.translate('books').gridColumns.price,
|
||||||
content: this.book.Price
|
content: this.book.Price
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
header: this.translate('books').gridColumns.quantity,
|
||||||
|
content: this.book.Quantity
|
||||||
|
},
|
||||||
{
|
{
|
||||||
header: this.translate('books').gridColumns.status,
|
header: this.translate('books').gridColumns.status,
|
||||||
content: this.book.Status
|
content: this.book.Status
|
||||||
|
|
|
@ -5,6 +5,10 @@
|
||||||
<label v-lang.books.gridColumns.title></label>
|
<label v-lang.books.gridColumns.title></label>
|
||||||
<input name="title" :placeholder="langBooks.gridColumns.title" type="text" v-model="book.Title" required v-focus>
|
<input name="title" :placeholder="langBooks.gridColumns.title" type="text" v-model="book.Title" required v-focus>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="field">
|
||||||
|
<label v-lang.books.description></label>
|
||||||
|
<textarea name="description" :placeholder="langBooks.description" rows="3" v-model="book.Description"></textarea>
|
||||||
|
</div>
|
||||||
<div class="three fields">
|
<div class="three fields">
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label v-lang.books.gridColumns.isbn></label>
|
<label v-lang.books.gridColumns.isbn></label>
|
||||||
|
@ -48,7 +52,7 @@
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<label>Authors</label>
|
<label v-lang.books.gridColumns.authors></label>
|
||||||
<multiselect
|
<multiselect
|
||||||
v-model="book.Authors"
|
v-model="book.Authors"
|
||||||
track-by="ID"
|
track-by="ID"
|
||||||
|
@ -70,7 +74,7 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<div class="field">
|
<div class="field">
|
||||||
<a class="ui green icon button" @click="addAddAuthor()"><i class="plus icon"></i> <span v-lang.author.newAuthor></span></a>
|
<a class="ui green icon button" @click="addAddAuthor()"><i class="plus icon"></i> <span v-lang.authors.newAuthor></span></a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="inline fields">
|
<div class="inline fields">
|
||||||
|
@ -101,6 +105,7 @@
|
||||||
edit: false,
|
edit: false,
|
||||||
book: {
|
book: {
|
||||||
Title: '',
|
Title: '',
|
||||||
|
Description: '',
|
||||||
Isbn: '',
|
Isbn: '',
|
||||||
Year: (new Date()).getFullYear(),
|
Year: (new Date()).getFullYear(),
|
||||||
Price: 0,
|
Price: 0,
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
</template>
|
</template>
|
||||||
<!-- Otherwise show its content -->
|
<!-- Otherwise show its content -->
|
||||||
<template v-else>
|
<template v-else>
|
||||||
{{ info.content }}
|
<span v-html="info.content"></span>
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -37,6 +37,7 @@ export default {
|
||||||
},
|
},
|
||||||
books: {
|
books: {
|
||||||
title: 'Bücherübersicht',
|
title: 'Bücherübersicht',
|
||||||
|
description: 'Beschreibung',
|
||||||
add: 'Buch hinzufügen',
|
add: 'Buch hinzufügen',
|
||||||
deleteHeader: 'Buch löschen',
|
deleteHeader: 'Buch löschen',
|
||||||
deleteMsg: 'Bist du sicher dass du dieses Buch löschen willst? <b>Das kann nicht Rückgängig gemacht werden!</b>',
|
deleteMsg: 'Bist du sicher dass du dieses Buch löschen willst? <b>Das kann nicht Rückgängig gemacht werden!</b>',
|
||||||
|
|
|
@ -37,6 +37,7 @@ export default {
|
||||||
},
|
},
|
||||||
books: {
|
books: {
|
||||||
title: 'Books overview',
|
title: 'Books overview',
|
||||||
|
description: 'Description',
|
||||||
add: 'Add a book',
|
add: 'Add a book',
|
||||||
deleteHeader: 'Delete this book',
|
deleteHeader: 'Delete this book',
|
||||||
deleteMsg: 'Are you sure you want to delete this book? <b>This cannot be undone!</b>',
|
deleteMsg: 'Are you sure you want to delete this book? <b>This cannot be undone!</b>',
|
||||||
|
|
|
@ -37,6 +37,7 @@ export default {
|
||||||
},
|
},
|
||||||
books: {
|
books: {
|
||||||
title: 'Liste des livres',
|
title: 'Liste des livres',
|
||||||
|
description: 'Description',
|
||||||
add: 'Ajouter un livre',
|
add: 'Ajouter un livre',
|
||||||
deleteHeader: 'Supprimer le livre',
|
deleteHeader: 'Supprimer le livre',
|
||||||
deleteMsg: 'Est-ce que vous êtes sur que vous voulez supprimer cette livre? <b>Cette operation est irréversible !</b>',
|
deleteMsg: 'Est-ce que vous êtes sur que vous voulez supprimer cette livre? <b>Cette operation est irréversible !</b>',
|
||||||
|
|
|
@ -8,6 +8,7 @@ import (
|
||||||
type Book struct {
|
type Book struct {
|
||||||
ID int64 `xorm:"int(11) autoincr not null unique pk"`
|
ID int64 `xorm:"int(11) autoincr not null unique pk"`
|
||||||
Title string `xorm:"varchar(250) not null"`
|
Title string `xorm:"varchar(250) not null"`
|
||||||
|
Description string `xorm:"varchar(750)"`
|
||||||
Isbn string `xorm:"varchar(30)"`
|
Isbn string `xorm:"varchar(30)"`
|
||||||
Year int64 `xorm:"int(11)"`
|
Year int64 `xorm:"int(11)"`
|
||||||
Price float64 `xorm:"double"`
|
Price float64 `xorm:"double"`
|
||||||
|
|
Loading…
Reference in New Issue