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.
C# aspnet-corecsharpdockerdotnetecommerceecommerce-platformmongodbmulti-storemulti-vendornosqlonline-shopshoppingcart
Reviews - message if not allowed to add review
DanielŻuławskic7e4bba86454
diff --git a/src/Web/Grand.Web/Views/Catalog/Components/VendorReviews/Default.cshtml b/src/Web/Grand.Web/Views/Catalog/Components/VendorReviews/Default.cshtmlindex f8666acf3..a2c5e96ea 100644--- a/src/Web/Grand.Web/Views/Catalog/Components/VendorReviews/Default.cshtml+++ b/src/Web/Grand.Web/Views/Catalog/Components/VendorReviews/Default.cshtml@@ -1,12 +1,17 @@@model VendorReviewsModel-<div class="mb-3">- <a class="btn btn-info" @@click="vendorreviews.addVendorReview()">@Loc["Reviews.Overview.AddNew"]</a>-</div>@if (Model.AddVendorReview.NotAllowAnonymousUsersToReviewVendor){- <text>@Loc["VendorReviews.OnlyRegisteredUsersCanWriteReviews"]</text>+ <div class="alert alert-danger">+ @Loc["VendorReviews.OnlyRegisteredUsersCanWriteReviews"]+ </div>+}+else+{+ <div class="mb-3">+ <a class="btn btn-info" @@click="vendorreviews.addVendorReview()">@Loc["Reviews.Overview.AddNew"]</a>+ </div>}<partial name="_VendorReview.Modal.cshtml" model="Model" />diff --git a/src/Web/Grand.Web/Views/Product/Components/ProductReviews/Default.cshtml b/src/Web/Grand.Web/Views/Product/Components/ProductReviews/Default.cshtmlindex 0532ba9ec..943ee9e42 100644--- a/src/Web/Grand.Web/Views/Product/Components/ProductReviews/Default.cshtml+++ b/src/Web/Grand.Web/Views/Product/Components/ProductReviews/Default.cshtml@@ -1,8 +1,15 @@@model ProductReviewsModel-<div class="mb-3">- <a class="btn btn-info" @@click="productreviews.addProductReview()">@Loc["Reviews.Overview.AddNew"]</a>-</div>+<template v-if="productreviews.Model.AddProductReview.CanCurrentCustomerLeaveReview">+ <div class="mb-3">+ <a class="btn btn-info" @@click="productreviews.addProductReview()">@Loc["Reviews.Overview.AddNew"]</a>+ </div>+</template>+<template v-else>+ <div class="alert alert-danger">+ @Loc["reviews.onlyregistereduserscanwritereviews"]+ </div>+</template><partial name="_ProductReview.Modal.cshtml" model="Model" /><template id="product-review-list" v-if="productreviews.Model !== null">