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
Replace <b-tags> - ProductReviews
DanielŻuławski0dee5057a800
diff --git a/src/Web/Grand.Web/Views/Product/Components/ProductReviews/Default.cshtml b/src/Web/Grand.Web/Views/Product/Components/ProductReviews/Default.cshtmlindex 0d09d8655..b1260e233 100644--- a/src/Web/Grand.Web/Views/Product/Components/ProductReviews/Default.cshtml+++ b/src/Web/Grand.Web/Views/Product/Components/ProductReviews/Default.cshtml@@ -3,7 +3,7 @@@inject IPageHeadBuilder pagebuilder<script asp-location="Footer" src="/theme/script/product.reviews.js"></script><div class="mb-3">- <b-button variant="info" href="@Url.RouteUrl("ProductReviews", new { productId = Model.ProductId })">@Loc["Reviews.Overview.AddNew"]</b-button>+ <a class="btn btn-info" href="@Url.RouteUrl("ProductReviews", new { productId = Model.ProductId })">@Loc["Reviews.Overview.AddNew"]</a></div>@if (Model.Items.Any())@@ -13,8 +13,8 @@@foreach (var review in Model.Items){int ratingStars = review.Rating;- <b-card header-tag="header" footer-tag="footer" class="product-review-item mb-3" data-url="@Url.RouteUrl("SetProductReviewHelpfulness")" data-id="@Model.ProductId" data-reviewid="@review.Id" data-title="@Loc["Reviews.Helpfulness.WasHelpful?"]">- <template v-slot:header>+ <div header-tag="header" footer-tag="footer" class="card product-review-item mb-3" data-url="@Url.RouteUrl("SetProductReviewHelpfulness")" data-id="@Model.ProductId" data-reviewid="@review.Id" data-title="@Loc["Reviews.Helpfulness.WasHelpful?"]">+ <header 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>@@ -26,31 +26,33 @@<span>@review.WrittenOnStr</span></small></div>- </template>- <div class="review-title mb-3">- <h5 class="mb-0">@review.Title</h5>- <b-form-rating id='[email protected]' class='p-0' variant='warning' no-border size='sm' show-value precision='2' readonly inline value='@(ratingStars)'></b-form-rating>- </div>- <div class="review-content">- <div class="review-text">- @review.ReviewText+ </header>+ <div class="card-body">+ <div class="review-title mb-3">+ <h5 class="mb-0">@review.Title</h5>+ <b-form-rating id='[email protected]' class='p-0' variant='warning' no-border size='sm' show-value precision='2' readonly inline value='@(ratingStars)'></b-form-rating></div>- </div>- @if (!string.IsNullOrEmpty(review.ReplyText))- {- <hr />- <div class="reply-content mt-2">- <blockquote class="administration-response">- <h5 class="administration-response-header">@Loc["Reviews.AdministrationResponse"]</h5>- @review.ReplyText- <p>@review.Signature</p>- </blockquote>+ <div class="review-content">+ <div class="review-text">+ @review.ReviewText+ </div></div>- }- <template v-slot:footer>+ @if (!string.IsNullOrEmpty(review.ReplyText))+ {+ <hr />+ <div class="reply-content mt-2">+ <blockquote class="administration-response">+ <h5 class="administration-response-header">@Loc["Reviews.AdministrationResponse"]</h5>+ @review.ReplyText+ <p>@review.Signature</p>+ </blockquote>+ </div>+ }+ </div>+ <footer class="card-footer"><partial name="_ProductReviewHelpfulness" model="review.Helpfulness" />- </template>- </b-card>+ </footer>+ </div>}</div>}