Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
53 lines (52 sloc) 1.91 KB
<h1>Submit a new review!</h1>
<form name="submitReviewForm" class="form-horizontal">
<div class="form-group">
<label class="col-sm-2 control-label">Subject</label>
<div class="col-sm-10">
<input
type="text"
class="form-control"
name="subject"
ng-required="true"
ng-model="$ctrl.review.subject">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Rating</label>
<div class="col-sm-10">
<select
class="form-control"
name="rating"
ng-required="true"
ng-model="$ctrl.review.rating">
<option ng-value=0>(0) Never ever again</option>
<option ng-value=1>(1) Very poor</option>
<option ng-value=2>(2) OK, but I've expected more</option>
<option ng-value=3>(3) Well, I did a good job</option>
<option ng-value=4>(4) Nice</option>
<option ng-value=5>(5) The best thing I ever saw</option>
</select>
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">Review</label>
<div class="col-sm-10">
<textarea
class="form-control"
rows="3"
name="content"
ng-required="true"
ng-model="$ctrl.review.content"></textarea>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<button
type="button"
class="btn btn-default"
name="submit"
ng-disabled="submitReviewForm.$invalid"
ng-click="$ctrl.submitReview()">Submit</button>
</div>
</div>
</form>