-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reformat and add some php to reviews
- Loading branch information
1 parent
e88e406
commit 6e50d7f
Showing
2 changed files
with
48 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
@extends('layouts.page') | ||
@section('title','Review') | ||
@section('content') | ||
<div class="review"> | ||
<h1>Create Review</h1> | ||
<!-- Need a form submission --> | ||
|
||
<form method="POST" action="/review" onsubmit="validateReviewForm(event)"> | ||
|
||
</form> | ||
<!-- Image + Name of Product --> | ||
<img></img> | ||
<p></p> | ||
<div class="line-break"><br></div> | ||
<h2>Overall rating</h2> | ||
<!-- Stars --> | ||
<div class="rating" data-rating="0"> | ||
<span class="star" data-value="1">☆</span> | ||
<span class="star" data-value="2">☆</span> | ||
<span class="star" data-value="3">☆</span> | ||
<span class="star" data-value="4">☆</span> | ||
<span class="star" data-value="5">☆</span> | ||
<div class="review"> | ||
<h1>Create Review</h1> | ||
<!-- Need a form submission --> | ||
<form method="POST" action="/review"> | ||
<!-- Image + Name of Product --> | ||
<img src="{{asset($product->getMainImage())}}" alt="Product Image"> | ||
<p>{{$product->name}}</p> | ||
<div class="line-break"><br></div> | ||
<h2>Overall rating</h2> | ||
<!-- Stars --> | ||
<div class="rating" data-rating="0"> | ||
<span class="star" data-value="1">☆</span> | ||
<span class="star" data-value="2">☆</span> | ||
<span class="star" data-value="3">☆</span> | ||
<span class="star" data-value="4">☆</span> | ||
<span class="star" data-value="5">☆</span> | ||
</div> | ||
<script src="{{ asset('js/rating.js') }}"></script> | ||
<div class="line-break"><br></div> | ||
<h2>Add a headline</h2> | ||
<!-- Input for headline --> | ||
<input type="text" placeholder="What's most important to know?"></input> | ||
<div class="line-break"><br></div> | ||
<h2>Add a written review</h2> | ||
<!-- Input for review --> | ||
<textarea name="message" id="message" cols="10" rows="7" | ||
placeholder="What did you like or dislike? What did you use this product for?" required | ||
style="resize: none"></textarea> | ||
<div class="line-break"><br></div> | ||
<p>We will notify you via email as soon as your review is processed.</p> | ||
<!-- Submit button --> | ||
<button>Submit</button> | ||
</form> | ||
</div> | ||
<script src="{{ asset('js/rating.js') }}"></script> | ||
<div class="line-break"><br></div> | ||
<h2>Add a headline</h2> | ||
<!-- Input for headline --> | ||
<input type="text" placeholder="What's most important to know?"></input> | ||
<div class="line-break"><br></div> | ||
<h2>Add a written review</h2> | ||
<!-- Input for review --> | ||
<textarea name="message" id="message" cols="10" rows="7" placeholder="What did you like or dislike? What did you use this product for?" required style="resize: none"></textarea> | ||
<div class="line-break"><br></div> | ||
<p>We will notify you via email as soon as your review is processed.<p> | ||
<!-- Submit button --> | ||
<button>Submit</button> | ||
</div> | ||
@endsection |