-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathproduct-review-form.html
More file actions
executable file
·34 lines (32 loc) · 1.18 KB
/
product-review-form.html
File metadata and controls
executable file
·34 lines (32 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<form name="reviewForm"
class="form-horizontal"
ng-submit="reviewForm.$valid && reviews.addReview(product.reviews)"
novalidate>
<product-review class="well live-preview"
ng-show="!reviews.review.isEmpty()"
review="reviews.review">
</product-review>
<fieldset class="form-group">
<label>Your Review:</label>
<textarea class="form-control" rows="5"
ng-model="reviews.review.body"
required></textarea>
</fieldset>
<fieldset class="form-group">
<label>Stars:</label>
<select ng-model="reviews.review.stars">
<option value="5">5 stars</option>
<option value="4">4 stars</option>
<option value="3">3 stars</option>
<option value="2">2 stars</option>
<option value="1">1 star</option>
</select>
</fieldset>
<fieldset class="form-group">
<label>by:</label>
ng-model="reviews.review.author"
required>
</fieldset>
<button type="submit" class="btn btn-primary pull-right">Submit</button>
</form>