Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Sign in
Toggle navigation
Open sidebar
w.pan
bookle
Commits
6baf2998
Commit
6baf2998
authored
Feb 03, 2019
by
Xiaoyu Yang
Browse files
proper exist problem1
parent
6d7dc441
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
src/app/admin-add/admin-add.component.html
src/app/admin-add/admin-add.component.html
+9
-9
src/app/collectionitem/collectionitem.component.html
src/app/collectionitem/collectionitem.component.html
+1
-1
No files found.
src/app/admin-add/admin-add.component.html
View file @
6baf2998
...
...
@@ -5,47 +5,47 @@
<div
class=
"form-group"
>
<label
for=
"Input2"
>
Book name
</label>
<input
type=
"text"
class=
"form-control"
placeholder=
"Book name"
name=
"name"
[(ngModel)]=
"book.name"
>
[(ngModel)]=
"book.name"
>
</div>
<div
class=
"form-group"
>
<label
for=
"Input10"
>
Authors
</label>
<input
type=
"text"
class=
"form-control"
placeholder=
"Authors"
name=
"isolatedAuthorNames"
[(ngModel)]=
"book.isolatedAuthorNames"
>
[(ngModel)]=
"book.isolatedAuthorNames"
>
</div>
<div
class=
"form-group"
>
<label
for=
"Input9"
>
Abstract
</label>
<textarea
class=
"form-control bkl-textarea"
placeholder=
"Abstract (HTML syntax supported)"
name=
"abstract"
[(ngModel)]=
"book.abstract"
></textarea>
[(ngModel)]=
"book.abstract"
></textarea>
</div>
<div
class=
"form-group"
>
<label
for=
"Input3"
>
ISBN
</label>
<input
type=
"text"
class=
"form-control"
placeholder=
"ISBN"
name=
"ISBN"
[(ngModel)]=
"book.ISBN"
>
[(ngModel)]=
"book.ISBN"
>
</div>
<div
class=
"form-group"
>
<label
for=
"Input4"
>
Rating
</label>
<input
type=
"number"
class=
"form-control"
placeholder=
"Rating"
name=
"rating"
[(ngModel)]=
"book.rating"
>
[(ngModel)]=
"book.rating"
>
</div>
<div
class=
"form-group"
>
<label
for=
"Input5"
>
Publish Year
</label>
<input
type=
"number"
class=
"form-control"
placeholder=
"Publish Year"
name=
"publishYear"
[(ngModel)]=
"book.publishYear"
>
[(ngModel)]=
"book.publishYear"
>
</div>
<div
class=
"form-group"
>
<label
for=
"Input6"
>
Pages
</label>
<input
type=
"number"
class=
"form-control"
placeholder=
"Pages"
name=
"pages"
[(ngModel)]=
"book.pages"
>
[(ngModel)]=
"book.pages"
>
</div>
<div
class=
"form-group"
>
<label
for=
"Input7"
>
Books Categories
</label>
<input
type=
"string"
class=
"form-control"
placeholder=
"Books Categories (separated with commas)"
name=
"tags_z"
[(ngModel)]=
"tags_z"
>
[(ngModel)]=
"tags_z"
>
</div>
<div
class=
"form-group"
>
<label
for=
"Input8"
>
Book Link
</label>
<input
type=
"text"
class=
"form-control"
placeholder=
"Book Link"
name=
"link"
[(ngModel)]=
"book.link"
>
[(ngModel)]=
"book.link"
>
</div>
<button
type=
"submit"
class=
"btn btn-primary mb-2"
(click)=
"onAdd()"
>
Add
</button>
...
...
src/app/collectionitem/collectionitem.component.html
View file @
6baf2998
...
...
@@ -8,7 +8,7 @@
<div
class=
"card-body"
>
<h6
class=
"card-subtitle mb-2 text-muted"
>
rating: {{ book.rating }}
</h6>
<p
class=
"card-text"
><b>
Abstract:
</b>
{{ book.abstract }}}
</p>
<a
class=
"card-link"
><b>
Authors:
</b>
{{ authorNames }}
</a>
<!--
<a class="card-link"><b>Authors:</b> {{ authorNames }}</a>
-->
</div>
</div>
<button
*ngIf=
"isOwnCollection"
type=
"button"
class=
"btn btn-outline-primary btn-sm"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment