83 lines
3.1 KiB
Plaintext
83 lines
3.1 KiB
Plaintext
@using MP.Data.MgModels;
|
|
|
|
@if (isLoading)
|
|
{
|
|
<LoadingData></LoadingData>
|
|
}
|
|
else
|
|
{
|
|
<div class="card shadow p-0 mb-5 bg-body rounded">
|
|
<div class="card-header">
|
|
<div class="d-flex justify-content-between">
|
|
<div>
|
|
<h4>Ricetta Assegnata</h4>
|
|
</div>
|
|
<div class="text-danger">
|
|
@if (string.IsNullOrEmpty(RecipeCode))
|
|
{
|
|
<span>Manca ricetta!</span>
|
|
<i class="fa-solid fa-triangle-exclamation fa-2x"></i>
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
<div class="d-flex justify-content-between">
|
|
<div>
|
|
<b>@(string.IsNullOrEmpty(RecipeCode) ? "-- SELEZIONARE --" : RecipeCode)</b>
|
|
</div>
|
|
<div>
|
|
<button class="btn btn-sm btn-success" @onclick="showSelect" title="Selezione Ricetta"><i class="fa-solid fa-pen"></i> Sel</button>
|
|
</div>
|
|
</div>
|
|
@if (showSearch)
|
|
{
|
|
<ul class="list-group small">
|
|
<li class="list-group-item active">
|
|
<div class="d-flex justify-content-between">
|
|
<div>
|
|
search
|
|
</div>
|
|
<div>
|
|
<input class="form-control" @bind="@searchVal" type="text" title="Filtro ricerca" placeholder="ricerca">
|
|
</div>
|
|
</div>
|
|
</li>
|
|
@foreach (var fileName in list2show)
|
|
{
|
|
<li class="list-group-item">
|
|
<div class="d-flex justify-content-between">
|
|
<div>
|
|
<button class="btn btn-sm btn-primary"><i class="fa-solid fa-file-import"></i></button>
|
|
</div>
|
|
<div>
|
|
<b>@fileName</b>
|
|
</div>
|
|
</div>
|
|
@*<b>@Path.GetFileName(fileName)</b>*@
|
|
</li>
|
|
}
|
|
<li class="list-group-item">
|
|
<div class="d-flex justify-content-between">
|
|
<div>show max</div>
|
|
<div>
|
|
<select @bind="@numShow">
|
|
<option>10</option>
|
|
<option>20</option>
|
|
<option>50</option>
|
|
</select>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
}
|
|
else if (showDetail)
|
|
{
|
|
<div class="d-flex justify-content-between">
|
|
dettaglio contenuto file ricetta
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
}
|