all atb changes
This commit is contained in:
42
app/plugins/reviews/views/admin/category.html
Normal file
42
app/plugins/reviews/views/admin/category.html
Normal file
@ -0,0 +1,42 @@
|
||||
<div class="container py-4">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
{ADMIN_BREADCRUMBS}
|
||||
<div class="card shadow">
|
||||
<!-- Card Header -->
|
||||
<div class="card-header text-center bg-dark text-white">
|
||||
<h3 class="card-title mb-0">Review Category: {name}</h3>
|
||||
</div>
|
||||
|
||||
<!-- Card Body -->
|
||||
<div class="card-body">
|
||||
<div class="row align-items-center">
|
||||
<!-- Details -->
|
||||
<table class="table table-borderless">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">Name:</th>
|
||||
<td>{name}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Slug:</th>
|
||||
<td>{slug}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Created:</th>
|
||||
<td>{DTC}{createdAt}{/DTC}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Admin Controls -->
|
||||
<div class="card-footer text-center">
|
||||
<a href="{ROOT_URL}admin/reviews/categoryEdit/{ID}" class="btn btn-md btn-warning" role="button"><i class="fa fa-fw fa-pencil"></i></a>
|
||||
<a href="{ROOT_URL}admin/reviews/categoryDelete/{ID}" class="btn btn-md btn-danger" role="button"><i class="fa fa-fw fa-trash"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
35
app/plugins/reviews/views/admin/categoryCreate.html
Normal file
35
app/plugins/reviews/views/admin/categoryCreate.html
Normal file
@ -0,0 +1,35 @@
|
||||
<div class="context-main-bg context-main p-3">
|
||||
<legend class="text-center">Add Review Category</legend>
|
||||
<hr>
|
||||
{ADMIN_BREADCRUMBS}
|
||||
<form method="post">
|
||||
<fieldset>
|
||||
<!-- Name -->
|
||||
<div class="mb-3 row">
|
||||
<label for="name" class="col-lg-6 col-form-label text-end">Name:</label>
|
||||
<div class="col-lg-2">
|
||||
<input type="text" class="form-control" name="name" id="name" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Slug -->
|
||||
<div class="mb-3 row">
|
||||
<label for="slug" class="col-lg-6 col-form-label text-end">Slug:</label>
|
||||
<div class="col-lg-2">
|
||||
<input type="text" class="form-control" name="slug" id="slug" aria-describedby="slugHelp" required>
|
||||
<small id="slugHelp" class="form-text text-muted">
|
||||
Public links would be {ROOT_URL}reviews/YOUR_SLUG_HERE
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Hidden Token -->
|
||||
<input type="hidden" name="token" value="{TOKEN}">
|
||||
|
||||
<!-- Submit Button -->
|
||||
<div class="text-center">
|
||||
<button type="submit" name="submit" value="submit" class="btn btn-primary btn-lg">Create</button>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
35
app/plugins/reviews/views/admin/categoryEdit.html
Normal file
35
app/plugins/reviews/views/admin/categoryEdit.html
Normal file
@ -0,0 +1,35 @@
|
||||
<div class="context-main-bg context-main p-3">
|
||||
<legend class="text-center">Edit Review Category</legend>
|
||||
<hr>
|
||||
{ADMIN_BREADCRUMBS}
|
||||
<form method="post">
|
||||
<fieldset>
|
||||
<!-- Name -->
|
||||
<div class="mb-3 row">
|
||||
<label for="name" class="col-lg-6 col-form-label text-end">Name:</label>
|
||||
<div class="col-lg-2">
|
||||
<input type="text" class="form-control" name="name" id="name" value="{name}" required>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Slug -->
|
||||
<div class="mb-3 row">
|
||||
<label for="slug" class="col-lg-6 col-form-label text-end">Slug:</label>
|
||||
<div class="col-lg-2">
|
||||
<input type="text" class="form-control" name="slug" id="slug" aria-describedby="slugHelp" value="{slug}" required>
|
||||
<small id="slugHelp" class="form-text text-muted">
|
||||
Public links would be {ROOT_URL}reviews/YOUR_SLUG_HERE
|
||||
</small>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Hidden Token -->
|
||||
<input type="hidden" name="token" value="{TOKEN}">
|
||||
|
||||
<!-- Submit Button -->
|
||||
<div class="text-center">
|
||||
<button type="submit" name="submit" value="submit" class="btn btn-primary btn-lg">Create</button>
|
||||
</div>
|
||||
</fieldset>
|
||||
</form>
|
||||
</div>
|
33
app/plugins/reviews/views/admin/categoryList.html
Normal file
33
app/plugins/reviews/views/admin/categoryList.html
Normal file
@ -0,0 +1,33 @@
|
||||
<legend>Review Categories</legend>
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 10%">ID</th>
|
||||
<th style="width: 30%">Name</th>
|
||||
<th style="width: 30%">Slug</th>
|
||||
<th style="width: 10%"></th>
|
||||
<th style="width: 10%"></th>
|
||||
<th style="width: 10%"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{LOOP}
|
||||
<tr>
|
||||
<td align="center">{ID}</td>
|
||||
<td>{name}</td>
|
||||
<td>{slug}</td>
|
||||
<td><a href="{ROOT_URL}admin/reviews/categoryView/{ID}" class="btn btn-sm btn-primary" role="button"><i class="fa fa-fw fa-info-circle"></i></a></td>
|
||||
<td><a href="{ROOT_URL}admin/reviews/categoryEdit/{ID}" class="btn btn-sm btn-warning" role="button"><i class="fa fa-fw fa-pencil"></i></a></td>
|
||||
<td><a href="{ROOT_URL}admin/reviews/categoryDelete/{ID}" class="btn btn-sm btn-danger" role="button"><i class="fa fa-fw fa-trash"></i></a></td>
|
||||
</tr>
|
||||
{/LOOP}
|
||||
{ALT}
|
||||
<tr>
|
||||
<td align="center" colspan="6">
|
||||
No results to show.
|
||||
</td>
|
||||
</tr>
|
||||
{/ALT}
|
||||
</tbody>
|
||||
</table>
|
||||
<a href="{ROOT_URL}admin/reviews/categoryCreate" class="btn btn-sm btn-primary" role="button">Create</a>
|
9
app/plugins/reviews/views/admin/dashboard.html
Normal file
9
app/plugins/reviews/views/admin/dashboard.html
Normal file
@ -0,0 +1,9 @@
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xlg-6 col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
||||
{reviews}
|
||||
</div>
|
||||
<div class="col-xlg-6 col-lg-6 col-md-6 col-sm-6 col-xs-6">
|
||||
{reviewCategories}
|
||||
</div>
|
||||
</div>
|
49
app/plugins/reviews/views/admin/review.html
Normal file
49
app/plugins/reviews/views/admin/review.html
Normal file
@ -0,0 +1,49 @@
|
||||
<div class="container py-4">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
{ADMIN_BREADCRUMBS}
|
||||
<div class="card shadow">
|
||||
<!-- Card Header -->
|
||||
<div class="card-header text-center bg-dark text-white">
|
||||
<h3 class="card-title mb-0">Review: {title}</h3>
|
||||
</div>
|
||||
|
||||
<!-- Card Body -->
|
||||
<div class="card-body">
|
||||
<div class="row align-items-center">
|
||||
<!-- Details -->
|
||||
<table class="table table-borderless">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">Title:</th>
|
||||
<td>{title}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Rating:</th>
|
||||
<td>{rating}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Created:</th>
|
||||
<td>{DTC}{createdAt}{/DTC}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" colspan="2">Review:</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">{review}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Admin Controls -->
|
||||
<div class="card-footer text-center">
|
||||
<a href="{ROOT_URL}admin/reviews/reviewApprove/{ID}" class="btn btn-sm btn-success" role="button"><i class="fa fa-fw fa-info-circle"></i></a>
|
||||
<a href="{ROOT_URL}admin/reviews/reviewHide/{ID}" class="btn btn-sm btn-info" role="button"><i class="fa fa-fw fa-eye-closed"></i></a>
|
||||
<a href="{ROOT_URL}admin/reviews/reviewDelete/{ID}" class="btn btn-sm btn-danger" role="button"><i class="fa fa-fw fa-trash"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
32
app/plugins/reviews/views/admin/reviewList.html
Normal file
32
app/plugins/reviews/views/admin/reviewList.html
Normal file
@ -0,0 +1,32 @@
|
||||
<legend>Reviews</legend>
|
||||
<table class="table table-striped">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 10%">ID</th>
|
||||
<th style="width: 30%">Title</th>
|
||||
<th style="width: 30%">Rating</th>
|
||||
<th style="width: 10%"></th>
|
||||
<th style="width: 10%"></th>
|
||||
<th style="width: 10%"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{LOOP}
|
||||
<tr>
|
||||
<td align="center">{ID}</td>
|
||||
<td><a href="{ROOT_URL}admin/reviews/reviewView/{ID}" class="btn btn-sm btn-primary" role="button">{title}</a></td>
|
||||
<td align="center">{rating}</td>
|
||||
<td><a href="{ROOT_URL}admin/reviews/reviewApprove/{ID}" class="btn btn-sm btn-success" role="button"><i class="fa fa-fw fa-check"></i></a></td>
|
||||
<td><a href="{ROOT_URL}admin/reviews/reviewHide/{ID}" class="btn btn-sm btn-info" role="button"><i class="fa fa-fw fa-eye-closed"></i></a></td>
|
||||
<td><a href="{ROOT_URL}admin/reviews/reviewDelete/{ID}" class="btn btn-sm btn-danger" role="button"><i class="fa fa-fw fa-trash"></i></a></td>
|
||||
</tr>
|
||||
{/LOOP}
|
||||
{ALT}
|
||||
<tr>
|
||||
<td align="center" colspan="6">
|
||||
No results to show.
|
||||
</td>
|
||||
</tr>
|
||||
{/ALT}
|
||||
</tbody>
|
||||
</table>
|
49
app/plugins/reviews/views/admin/view.html
Normal file
49
app/plugins/reviews/views/admin/view.html
Normal file
@ -0,0 +1,49 @@
|
||||
<div class="container py-4">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
{ADMIN_BREADCRUMBS}
|
||||
<div class="card shadow">
|
||||
<!-- Card Header -->
|
||||
<div class="card-header text-center bg-dark text-white">
|
||||
<h3 class="card-title mb-0">Review: {title}</h3>
|
||||
</div>
|
||||
|
||||
<!-- Card Body -->
|
||||
<div class="card-body">
|
||||
<div class="row align-items-center">
|
||||
<!-- Details -->
|
||||
<table class="table table-borderless">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">Title:</th>
|
||||
<td>{title}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Rating:</th>
|
||||
<td>{rating}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Created:</th>
|
||||
<td>{DTC}{createdAt}{/DTC}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" colspan="2">Review:</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">{review}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Admin Controls -->
|
||||
<div class="card-footer text-center">
|
||||
<a href="{ROOT_URL}admin/reviews/reviewApprove/{ID}" class="btn btn-sm btn-success" role="button"><i class="fa fa-fw fa-info-circle"></i></a>
|
||||
<a href="{ROOT_URL}admin/reviews/reviewHide/{ID}" class="btn btn-sm btn-info" role="button"><i class="fa fa-fw fa-eye-closed"></i></a>
|
||||
<a href="{ROOT_URL}admin/reviews/reviewDelete/{ID}" class="btn btn-sm btn-danger" role="button"><i class="fa fa-fw fa-trash"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
52
app/plugins/reviews/views/create.html
Normal file
52
app/plugins/reviews/views/create.html
Normal file
@ -0,0 +1,52 @@
|
||||
<div class="col-8 mx-auto p-4 rounded shadow-sm mb-5 context-main-bg mt-4 container">
|
||||
<h2 class="text-center mb-4">Share a Review</h2>
|
||||
<hr>
|
||||
<p>We thank you for for taking the time to review our products. We do not edit or modify reviews in any way. You, as the customer have the ability to modify your own reviews.</p>
|
||||
<p>We read each and every review. You and the admin team both have the ability to comment on reviews privately. Neither your reviews or comments will be publicly shared without your permission.</p>
|
||||
<form id="review-form" method="post">
|
||||
<!-- Review Category -->
|
||||
<div class="mb-3">
|
||||
<label for="review_category_id" class="form-label">Review Category:</label>
|
||||
{reviewCategorySelect}
|
||||
</div>
|
||||
|
||||
<!-- Rating -->
|
||||
<div class="mb-3">
|
||||
<label for="star-rating" class="form-label">Rating:</label>
|
||||
<div class="star-rating">
|
||||
<span class="fa fa-star" data-rating="1"></span>
|
||||
<span class="fa fa-star" data-rating="2"></span>
|
||||
<span class="fa fa-star" data-rating="3"></span>
|
||||
<span class="fa fa-star" data-rating="4"></span>
|
||||
<span class="fa fa-star" data-rating="5"></span>
|
||||
<input type="hidden" name="rating" class="rating-value" value="0">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Review Title -->
|
||||
<div class="mb-3">
|
||||
<label for="title" class="form-label">Review Title:</label>
|
||||
<input type="text" class="form-control" id="title" name="title" aria-describedby="titleHelp" required>
|
||||
<small id="titleHelp" class="form-text text-muted">
|
||||
No need to overthink it, something as simple as "My Review" is fine.
|
||||
</small>
|
||||
</div>
|
||||
|
||||
<!-- Review -->
|
||||
<div class="mb-3">
|
||||
<label for="review" class="form-label">Your Review:</label>
|
||||
<textarea class="form-control" name="review" id="review" rows="5" maxlength="2000" aria-describedby="reviewHelp" required></textarea>
|
||||
<small id="reviewHelp" class="form-text text-muted">
|
||||
(max: 2000 characters)
|
||||
</small>
|
||||
</div>
|
||||
|
||||
<!-- Hidden Token -->
|
||||
<input type="hidden" name="token" value="{TOKEN}">
|
||||
|
||||
<!-- Submit Button -->
|
||||
<div class="text-center">
|
||||
<button type="submit" name="submit" value="submit" class="btn btn-primary btn-lg atb-green-bg">Submit</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
44
app/plugins/reviews/views/edit.html
Normal file
44
app/plugins/reviews/views/edit.html
Normal file
@ -0,0 +1,44 @@
|
||||
<div class="col-8 mx-auto p-4 rounded shadow-sm mb-5 context-main-bg mt-4 container">
|
||||
<h2 class="text-center mb-4">Edit Your Review</h2>
|
||||
<hr>
|
||||
<form id="review-form" method="post">
|
||||
<!-- Review Title -->
|
||||
<div class="mb-3">
|
||||
<label for="title" class="form-label">Review Title:</label>
|
||||
<input type="text" class="form-control" id="title" name="title" aria-describedby="titleHelp" value="{title}" required>
|
||||
<small id="titleHelp" class="form-text text-muted">
|
||||
No need to overthink it, something as simple as "My Review" is fine.
|
||||
</small>
|
||||
</div>
|
||||
|
||||
<!-- Rating -->
|
||||
<div class="mb-3">
|
||||
<label for="star-rating" class="form-label">Rating:</label>
|
||||
<div class="star-rating">
|
||||
<span class="fa fa-star" data-rating="1"></span>
|
||||
<span class="fa fa-star" data-rating="2"></span>
|
||||
<span class="fa fa-star" data-rating="3"></span>
|
||||
<span class="fa fa-star" data-rating="4"></span>
|
||||
<span class="fa fa-star" data-rating="5"></span>
|
||||
<input type="hidden" name="rating" class="rating-value" value="{rating}">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Review -->
|
||||
<div class="mb-3">
|
||||
<label for="review" class="form-label">Your Review:</label>
|
||||
<textarea class="form-control" name="review" id="review" rows="5" maxlength="2000" aria-describedby="reviewHelp" required>{review}</textarea>
|
||||
<small id="reviewHelp" class="form-text text-muted">
|
||||
(max: 2000 characters)
|
||||
</small>
|
||||
</div>
|
||||
|
||||
<!-- Hidden Token -->
|
||||
<input type="hidden" name="token" value="{TOKEN}">
|
||||
|
||||
<!-- Submit Button -->
|
||||
<div class="text-center">
|
||||
<button type="submit" name="submit" value="submit" class="btn btn-primary btn-lg atb-green-bg">Submit</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
38
app/plugins/reviews/views/list.html
Normal file
38
app/plugins/reviews/views/list.html
Normal file
@ -0,0 +1,38 @@
|
||||
<div class="col-8 mx-auto p-4 rounded shadow-sm mb-5 context-main-bg mt-4 context-main text-center">
|
||||
<legend>Reviews</legend>
|
||||
<hr>
|
||||
<p>
|
||||
Understanding the customer is a huge part of making products better. Whether its feedback that we are doing great, or we need work; the review allows users to share that with us.
|
||||
</p>
|
||||
<p>
|
||||
On this page you can find <strong>your</strong> reviews to see any responses or make edits.
|
||||
</p>
|
||||
<table class="table context-main text-center">
|
||||
<thead>
|
||||
<tr>
|
||||
<th style="width: 60%">Title</th>
|
||||
<th style="width: 20%">Rating</th>
|
||||
<th style="width: 10%"></th>
|
||||
<th style="width: 10%"></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{LOOP}
|
||||
<tr>
|
||||
<td><a href="{ROOT_URL}reviews/view/{ID}" class="text-decoration-none atb-green" role="button">{title}</a></td>
|
||||
<td>{rating}</td>
|
||||
<td><a href="{ROOT_URL}reviews/edit/{ID}" class="btn btn-sm btn-warning" role="button"><i class="fa fa-fw fa-pencil"></i></a></td>
|
||||
<td><a href="{ROOT_URL}reviews/delete/{ID}" class="btn btn-sm btn-danger" role="button"><i class="fa fa-fw fa-trash"></i></a></td>
|
||||
</tr>
|
||||
{/LOOP}
|
||||
{ALT}
|
||||
<tr>
|
||||
<td colspan="4">
|
||||
No results to show.
|
||||
</td>
|
||||
</tr>
|
||||
{/ALT}
|
||||
</tbody>
|
||||
</table>
|
||||
<a href="{ROOT_URL}reviews/review" class="btn btn-md atb-green-bg" role="button">Add Review</a>
|
||||
</div>
|
47
app/plugins/reviews/views/view.html
Normal file
47
app/plugins/reviews/views/view.html
Normal file
@ -0,0 +1,47 @@
|
||||
<div class="container py-4">
|
||||
<div class="row justify-content-center">
|
||||
<div class="col-md-8">
|
||||
<div class="card shadow">
|
||||
<!-- Card Header -->
|
||||
<div class="card-header text-center bg-dark text-white">
|
||||
<h3 class="card-title mb-0">Review: {title}</h3>
|
||||
</div>
|
||||
|
||||
<!-- Card Body -->
|
||||
<div class="card-body">
|
||||
<div class="row align-items-center">
|
||||
<!-- Details -->
|
||||
<table class="table table-borderless">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">Title:</th>
|
||||
<td>{title}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Rating:</th>
|
||||
<td>{rating}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">Created:</th>
|
||||
<td>{DTC}{createdAt}{/DTC}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row" colspan="2">Review:</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2">{review}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- Admin Controls -->
|
||||
<div class="card-footer text-center">
|
||||
<a href="{ROOT_URL}reviews/edit/{ID}" class="btn btn-sm btn-warning" role="button"><i class="fa fa-fw fa-pencil"></i></a>
|
||||
<a href="{ROOT_URL}reviews/delete/{ID}" class="btn btn-sm btn-danger" role="button"><i class="fa fa-fw fa-trash"></i></a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
Reference in New Issue
Block a user