Skip to content

Open-source eCommerce platform for C# and ASP.NET Core 10 with MongoDB. Build multi-store shops and multi-vendor marketplaces with B2B/B2C, REST API, plugins, Vue 3 and Docker.

Merge branch 'master' of https://github.com/grandnode/grandnode2

KrzysztofPajak953c63d13073
diff --cc src/Web/Grand.Web/Views/Catalog/Components/VendorReviews/Default.cshtml
index 5bb71dd85,0e85ae4d5..865aa2d4c
--- a/src/Web/Grand.Web/Views/Catalog/Components/VendorReviews/Default.cshtml
+++ b/src/Web/Grand.Web/Views/Catalog/Components/VendorReviews/Default.cshtml
@@@ -4,53 -4,55 +4,55 @@@
<a class="btn btn-info" @@click="vendorreviews.addVendorReview()">@Loc["Reviews.Overview.AddNew"]</a>
</div>
-<partial name="_VendorReview.Modal" model="Model" />
+<partial name="_VendorReview.Modal.cshtml" model="Model" />
- <template id="vendor-review-list" v-if="vendorreviews.Model.Items.length > 0">
+ <template id="vendor-review-list">
<div class="vendor-review-list">
- <h5 class="mb-3"><strong>@Loc["Reviews.ExistingReviews"]</strong></h5>
- <template v-for="review in vendorreviews.Model.Items">
- <div class="card vendor-review-item mb-3">
- <div class="card-header">
- <div class="review-info d-inline-flex w-100">
- <div class="user d-inline-flex align-items-center">
- <small class="text-muted mr-2">@Loc["Reviews.From"]:</small>
- <h6 class="mb-0">{{review.CustomerName}}</h6>
+ <template v-if="vendorreviews.Model.Items.length > 0">
+ <h5 class="mb-3"><strong>@Loc["Reviews.ExistingReviews"]</strong></h5>
+ <template v-for="review in vendorreviews.Model.Items">
+ <div class="card vendor-review-item mb-3">
+ <div class="card-header">
+ <div class="review-info d-inline-flex w-100">
+ <div class="user d-inline-flex align-items-center">
+ <small class="text-muted mr-2">@Loc["Reviews.From"]:</small>
+ <h6 class="mb-0">{{review.CustomerName}}</h6>
+ </div>
+ <b-icon icon="calendar2-check" variant="info" class="mx-2"></b-icon>
+ <small class="date text-muted">
+ <span class="ml-1">@Loc["Reviews.Date"]:</span>
+ <span>{{review.WrittenOnStr}}</span>
+ </small>
</div>
- <b-icon icon="calendar2-check" variant="info" class="mx-2"></b-icon>
- <small class="date text-muted">
- <span class="ml-1">@Loc["Reviews.Date"]:</span>
- <span>{{review.WrittenOnStr}}</span>
- </small>
</div>
- </div>
- <div class="card-body">
- <div class="review-title mb-3">
- <h5 class="mb-0">{{review.Title}}</h5>
- <b-form-rating id='rating-inline2' class='p-0' variant='warning' no-border size='sm' show-value precision='2' readonly inline :value='review.Rating'></b-form-rating>
- </div>
- <div class="review-content">
- <div class="review-text">
- {{review.ReviewText}}
+ <div class="card-body">
+ <div class="review-title mb-3">
+ <h5 class="mb-0">{{review.Title}}</h5>
+ <b-form-rating id='rating-inline2' class='p-0' variant='warning' no-border size='sm' show-value precision='2' readonly inline :value='review.Rating'></b-form-rating>
+ </div>
+ <div class="review-content">
+ <div class="review-text">
+ {{review.ReviewText}}
+ </div>
</div>
</div>
- </div>
- <div class="card-footer">
- <div class="vendor-review-helpfulness d-inline-flex justify-content-end align-items-center flex-wrap">
- <span class="question">@Loc["Reviews.Helpfulness.WasHelpful?"]</span>
- <span class="vote-options btn-group">
- <span :id="'vote-yes-' + review.Helpfulness.VendorReviewId" @@click="vendorreviews.setVendorReviewHelpfulness('@Url.RouteUrl("SetVendorReviewHelpfulness")', 'true', review.Id, '@Model.VendorId', '@Loc[" Reviews.Helpfulness.WasHelpful?"]')" class="btn btn-sm btn-outline vote"><b-icon variant="success" icon="hand-thumbs-up"></b-icon></span>
- <span :id="'vote-no-' + review.Helpfulness.VendorReviewId" @@click="vendorreviews.setVendorReviewHelpfulness('@Url.RouteUrl("SetVendorReviewHelpfulness")', 'false', review.Id, '@Model.VendorId', '@Loc[" Reviews.Helpfulness.WasHelpful?"]')" class="btn btn-sm btn-outline vote"><b-icon variant="danger" icon="hand-thumbs-down"></b-icon></span>
- </span>
- <span class="vote-stats d-inline-flex">
- (<span :id="'helpfulness-vote-yes-' + review.Helpfulness.VendorReviewId">{{review.Helpfulness.HelpfulYesTotal}}</span>/<span :id="'helpfulness-vote-no-' + review.Helpfulness.VendorReviewId">{{review.Helpfulness.HelpfulNoTotal}}</span>)
- </span>
+ <div class="card-footer">
+ <div class="vendor-review-helpfulness d-inline-flex justify-content-end align-items-center flex-wrap">
+ <span class="question">@Loc["Reviews.Helpfulness.WasHelpful?"]</span>
+ <span class="vote-options btn-group">
+ <span :id="'vote-yes-' + review.Helpfulness.VendorReviewId" @@click="vendorreviews.setVendorReviewHelpfulness('@Url.RouteUrl("SetVendorReviewHelpfulness")', 'true', review.Id, '@Model.VendorId', '@Loc[" Reviews.Helpfulness.WasHelpful?"]')" class="btn btn-sm btn-outline vote"><b-icon variant="success" icon="hand-thumbs-up"></b-icon></span>
+ <span :id="'vote-no-' + review.Helpfulness.VendorReviewId" @@click="vendorreviews.setVendorReviewHelpfulness('@Url.RouteUrl("SetVendorReviewHelpfulness")', 'false', review.Id, '@Model.VendorId', '@Loc[" Reviews.Helpfulness.WasHelpful?"]')" class="btn btn-sm btn-outline vote"><b-icon variant="danger" icon="hand-thumbs-down"></b-icon></span>
+ </span>
+ <span class="vote-stats d-inline-flex">
+ (<span :id="'helpfulness-vote-yes-' + review.Helpfulness.VendorReviewId">{{review.Helpfulness.HelpfulYesTotal}}</span>/<span :id="'helpfulness-vote-no-' + review.Helpfulness.VendorReviewId">{{review.Helpfulness.HelpfulNoTotal}}</span>)
+ </span>
+ </div>
</div>
</div>
- </div>
+ </template>
</template>
<template v-else>
- <p class="text-muted">@Loc["Vendor.Reviews.Empty"]</p>
+ <div class="alert alert-info">@Loc["Vendor.Reviews.Empty"]</div>
</template>
</div>
</template>