|
2 | 2 |
|
3 | 3 | <section class="row well live-preview" ng-show="reviewFormCtrl.book.isbn">
|
4 | 4 | <aside class="col-sm-3">
|
5 |
| - |
6 |
| - <!-- Can't use the bookCover directive here since we can't use link. -Z --> |
7 |
| - <!-- <book-cover></book-cover> --> |
8 |
| - <a href="http://www.amazon.com/gp/product/{{reviewFormCtrl.book.isbn}}"><img ng-src="http://images.amazon.com/images/P/{{reviewFormCtrl.book.isbn}}.01.ZTZZZZZZ.jpg" alt="Cover of {{reviewFormCtrl.book.title}}" class="full"></a> |
9 |
| - |
10 |
| - |
| 5 | + <!-- no, no! <book-cover></book-cover> --> |
| 6 | + <a href="http://www.amazon.com/gp/product/{{reviewFormCtrl.book.isbn}}"> |
| 7 | + <img ng-src="http://images.amazon.com/images/P/{{reviewFormCtrl.book.isbn}}.01.ZTZZZZZZ.jpg" alt="Cover of {{reviewFormCtrl.book.title}}" class="full"> |
| 8 | + </a> |
11 | 9 | <p>{{reviewFormCtrl.book.rating || '0'}}/5</p>
|
12 | 10 | </aside>
|
13 |
| - <div class="col-sm-9"> |
14 |
| - <h3><a href="http://www.amazon.com/gp/product/{{reviewFormCtrl.book.isbn}}" |
15 |
| - >{{reviewFormCtrl.book.title || "Title of Book"}}</a></h3> |
16 | 11 |
|
| 12 | + <div class="col-sm-9"> |
| 13 | + <h3> |
| 14 | + <a href="http://www.amazon.com/gp/product/{{reviewFormCtrl.book.isbn}}"> |
| 15 | + {{reviewFormCtrl.book.title || "Title of Book"}} |
| 16 | + </a> |
| 17 | + </h3> |
17 | 18 | <cite class="text-muted">Written by {{reviewFormCtrl.book.author || "Author's Name"}}</cite>
|
18 | 19 |
|
19 |
| - <!-- David's not working line --> |
20 |
| - <!-- Doesn't work because book.authors is not an array. -Z --> |
21 |
| - |
22 |
| - <!-- <cite class="text-muted">Written by {{book.authors.join(', ') || "Author's Name"}}</cite> --> |
23 |
| - |
24 | 20 | <p>{{reviewFormCtrl.book.review || "No review yet."}}</p>
|
25 | 21 |
|
26 |
| - <!-- Can't use the bookGenres directive here since we can't use link. -Z --> |
27 |
| - <!-- <book-genres></book-genres> --> |
| 22 | + <!-- no, no! <book-genres></book-genres> --> |
28 | 23 | <ul class="list-unstyled">
|
29 | 24 | <li ng-repeat="(genre, state) in reviewFormCtrl.book.genres">
|
30 | 25 | <span class="label label-primary" ng-show="state">{{genre}}</span>
|
31 | 26 | </li>
|
32 | 27 | </ul>
|
33 |
| - |
34 | 28 | </div>
|
35 | 29 | </section>
|
| 30 | + |
36 | 31 | <div class="input-container">
|
37 | 32 | <fieldset class="form-group">
|
38 |
| - <label for="title" class="col-sm-2 control-label">Title:</label> |
39 |
| - <span class="col-sm-9"> |
40 |
| - <input type="text" class="form-control" id="title" ng-model="reviewFormCtrl.book.title" |
41 |
| - placeholder="Book Title"> |
42 |
| - </span> |
| 33 | + <label for="title" class="col-sm-2 control-label">Title:</label> |
| 34 | + <span class="col-sm-9"> |
| 35 | + <input type="text" class="form-control" id="title" ng-model="reviewFormCtrl.book.title" |
| 36 | + placeholder="Book Title"> |
| 37 | + </span> |
43 | 38 | </fieldset>
|
| 39 | + |
44 | 40 | <fieldset class="form-group">
|
45 |
| - <label for="isbn" class="control-label col-sm-2">ISBN:</label> |
46 |
| - <span class="col-sm-9"> |
47 |
| - <input type="text" id="isbn" class="form-control" ng-model="reviewFormCtrl.book.isbn" |
48 |
| - maxLength="10" placeholder="ISBN-10"> |
49 |
| - </span> |
| 41 | + <label for="isbn" class="control-label col-sm-2">ISBN:</label> |
| 42 | + <span class="col-sm-9"> |
| 43 | + <input type="text" id="isbn" class="form-control" ng-model="reviewFormCtrl.book.isbn" |
| 44 | + maxLength="10" placeholder="ISBN-10"> |
| 45 | + </span> |
50 | 46 | </fieldset>
|
| 47 | + |
51 | 48 | <fieldset class="form-group">
|
52 |
| - <label class="control-label col-sm-2" for="author">Author</label> |
53 |
| - <span class="col-sm-9"> |
54 |
| - <input type="text" id="author" class="form-control" ng-model="reviewFormCtrl.book.author" |
55 |
| - placeholder="Name of the Author"></span> |
| 49 | + <label class="control-label col-sm-2" for="author">Author</label> |
| 50 | + <span class="col-sm-9"> |
| 51 | + <input type="text" id="author" class="form-control" ng-model="reviewFormCtrl.book.author" |
| 52 | + placeholder="Name of the Author"></span> |
56 | 53 | </fieldset>
|
| 54 | + |
57 | 55 | <fieldset class="form-group">
|
58 | 56 | <label class="control-label col-sm-2" for="review">Review</label>
|
59 | 57 | <span class="col-sm-9">
|
60 | 58 | <textarea id="review" class="form-control" cols="30" rows="3" ng-model="reviewFormCtrl.book.review"
|
61 |
| - placeholder="Book Review"></textarea> |
| 59 | + placeholder="Book Review"></textarea> |
62 | 60 | </span>
|
63 | 61 | </fieldset>
|
| 62 | + |
64 | 63 | <fieldset class="form-group">
|
65 | 64 | <label for="rating" class="control-label col-sm-2">Rating:</label>
|
66 | 65 | <span class="col-sm-9">
|
@@ -89,6 +88,6 @@ <h3><a href="http://www.amazon.com/gp/product/{{reviewFormCtrl.book.isbn}}"
|
89 | 88 | <button class="btn btn-primary">Save Review</button>
|
90 | 89 | </span>
|
91 | 90 | </fieldset>
|
92 |
| - |
93 | 91 | </div>
|
| 92 | + |
94 | 93 | </form>
|
0 commit comments