hjkljlhkl

This commit is contained in:
Adam 2024-11-24 19:37:27 +01:00
parent 52a1768480
commit 6d55bb3d43
5 changed files with 18 additions and 17 deletions

View File

@ -31,6 +31,7 @@
console.log(data); console.log(data);
var myObject = JSON.parse(data); var myObject = JSON.parse(data);
console.log(myObject); console.log(myObject);
var publicProductBidBox = document.getElementById("publicProductBidBox"); var publicProductBidBox = document.getElementById("publicProductBidBox");
var liveScreen = document.getElementById("auctionProductLiveScreenBox"); var liveScreen = document.getElementById("auctionProductLiveScreenBox");
if (publicProductBidBox) if (publicProductBidBox)

View File

@ -80,7 +80,10 @@ public class AuctionController : BasePluginController
var auctionDto = await _auctionService.GetAuctionDtoWithAuctionBids(auctionId, true); var auctionDto = await _auctionService.GetAuctionDtoWithAuctionBids(auctionId, true);
var activeMapping = auctionDto?.ProductToAuctionDtos.MinBy(x => x.SortIndex); var activeMapping = auctionDto?.ProductToAuctionDtos.MinBy(x => x.SortIndex);
var isAnyItemLive = activeMapping != null; var isAnyItemLive = activeMapping != null;
if (auctionDto == null)
{
return new RedirectResult("/", false);
}
var model = new LiveScreenViewModel(auctionDto); var model = new LiveScreenViewModel(auctionDto);
Product product; Product product;

View File

@ -59,7 +59,7 @@
<!-- Item Information --> <!-- Item Information -->
<ul class="list-group mb-3 border-0"> <ul class="list-group mb-3 border-0">
<li class="bg-transparent border-0 list-group-item d-flex justify-content-between align-items-center"> <li class="bg-transparent fs-4 border-0 list-group-item d-flex justify-content-between align-items-center">
<div> <div>
@await Html.PartialAsync("Product/_ProductSpecifications.cshtml", Model.ActiveProductDetails.ProductSpecificationModel) @await Html.PartialAsync("Product/_ProductSpecifications.cshtml", Model.ActiveProductDetails.ProductSpecificationModel)
</div> </div>
@ -73,7 +73,7 @@
</div> </div>
</li> </li>
<li class="bg-transparent border-0 list-group-item"> <li class="bg-transparent border-0 list-group-item fs-5">
<span class="font-weight-bold">Description:</span> <span class="font-weight-bold">Description:</span>
<p class="mb-0 mt-2 text-muted"> <p class="mb-0 mt-2 text-muted">
@Html.Raw(Model.ActiveProductDetails.FullDescription) @Html.Raw(Model.ActiveProductDetails.FullDescription)
@ -95,9 +95,9 @@
else else
{ {
<div class="row mt-4"> <div class="row mt-4">
<!-- Bid History Table -->
<div class="col-12"> <div class="col-12">
<h1>@Model.AuctionDto.AuctionName</h1> <h1 class="fs-1">@Model.AuctionDto.AuctionName</h1>
</div> </div>
</div> </div>

View File

@ -10,22 +10,22 @@
<strong>@T("Products.Specs")</strong> <strong>@T("Products.Specs")</strong>
</div> </div>
<div class="table-wrapper"> <div class="table-wrapper">
<table class="data-table table-responsive"> <table class="data-table table table-responsive border-0">
@* <thead> @* <thead>
<tr class="hidden-row"> <tr class="hidden-row">
<th width="25%"><span>@T("Products.Specs.AttributeName")</span></th> <th width="25%"><span>@T("Products.Specs.AttributeName")</span></th>
<th><span>@T("Products.Specs.AttributeValue")</span></th> <th><span>@T("Products.Specs.AttributeValue")</span></th>
</tr> </tr>
</thead> *@ </thead> *@
<tbody> <tbody border-0>
@foreach (var group in Model.Groups) @foreach (var group in Model.Groups)
{ {
@if (group.Attributes.Count > 0) @if (group.Attributes.Count > 0)
{ {
@if (group.Id > 0) @if (group.Id > 0)
{ {
<tr class="spec-header"> <tr class="spec-header p-3 border-0">
<td class="spec-group-name" colspan="2"> <td class="spec-group-name p-1 bg-transparent" colspan="2">
@group.Name @group.Name
</td> </td>
</tr> </tr>
@ -35,11 +35,11 @@
{ {
var attr = group.Attributes[i]; var attr = group.Attributes[i];
<tr @(i % 2 == 0 ? Html.Raw(" class=\"odd\"") : Html.Raw(" class=\"even\""))> <tr class="p-3 border-0">
<td class="spec-name"> <td class="spec-name bg-transparent p-1">
@attr.Name @attr.Name:
</td> </td>
<td class="spec-value"> <td class="spec-value bg-transparent p-1">
@for (int j = 0; j < attr.Values.Count; j++) @for (int j = 0; j < attr.Values.Count; j++)
{ {
var value = attr.Values[j]; var value = attr.Values[j];

View File

@ -195,10 +195,7 @@
function refreshPublicBidBox(data) { function refreshPublicBidBox(data) {
// let HUFFormatter = new Intl.NumberFormat('hu-HU', { //TODO: is it for me?
// style: 'currency',
// currency: 'HUF',
// });
var widgetPriceElement = document.getElementById("price-value-" + bidBoxPageViewModel.ProductId); var widgetPriceElement = document.getElementById("price-value-" + bidBoxPageViewModel.ProductId);
var budButtonElement = document.getElementById("signalRBidButton"); var budButtonElement = document.getElementById("signalRBidButton");