57 lines
3.0 KiB
Plaintext
57 lines
3.0 KiB
Plaintext
<div class="modal" tabindex="-1" style="display:block; background-color: rgba(10,10,10,.6);" role="dialog">
|
|
<div class="modal-dialog modal-xl">
|
|
<div class="modal-content">
|
|
<div class="modal-header py-1">
|
|
<div class="row w-100 align-items-center">
|
|
<div class="col-4 fs-4">
|
|
Selezione prodotto
|
|
</div>
|
|
<div class="col-4">
|
|
<select @bind="@SelTemplateID" class="form-select">
|
|
<option value="0">--- Selezionare Catalogo ---</option>
|
|
@foreach (var itemAlt in ListCataloghi)
|
|
{
|
|
<option value="@itemAlt.TemplateID">@itemAlt.Name | @itemAlt.Description</option>
|
|
}
|
|
</select>
|
|
</div>
|
|
<div class="col-4 text-end fs-5">
|
|
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close" @onclick="ClosePopup">
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="modal-body pt-0 pb-2">
|
|
@if (SelTemplateID == 0)
|
|
{
|
|
<div class="alert alert-info fs-4">Selezionare Catalogo!</div>
|
|
}
|
|
else
|
|
{
|
|
<div class="row">
|
|
@foreach (var item in ListTemplatePaged)
|
|
{
|
|
<div class="col-2 gx-2 gy-2">
|
|
<div class="card shadow image-big-hover-pop p-0" @onclick="() => DoAddOrderRow(item)">
|
|
@* <img src="@(imgUrl(item.ImgType, item.ImgUID, $"{item.Envir}"))" class="card-img-top card-img-fixed img-fluid"> *@
|
|
<img src="@imgSrc(item.ImgUrl)" class="card-img-top card-img-fixed img-fluid">
|
|
<div class="card-body bg-secondary bg-opacity-25 bg-gradient px-2" style="height: 5rem;">
|
|
<div class="card-title fs-5 condensed text-truncate" title="@item.TemplateRowUID">@item.TemplateRowUID</div>
|
|
<div class="card-text text-secondary condensed text-truncate" tit="@item.Name">
|
|
@item.Name
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
}
|
|
</div>
|
|
<div class="modal-footer">
|
|
<div class="w-100">
|
|
<EgwCoreLib.Razor.DataPager currPage="@currPage" PageSize="@numRecord" totalCount="@totalCount" numPageChanged="SavePage" numRecordChanged="SaveNumRec" PageSizeList="pageSizes"></EgwCoreLib.Razor.DataPager>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div> |