137 lines
6.6 KiB
Plaintext
137 lines
6.6 KiB
Plaintext
<EditForm Model="@CurrRecord">
|
|
<div class="card">
|
|
<div class="card-header bg-info">
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<h4>
|
|
Modifica #
|
|
@if (CurrRecord != null)
|
|
{
|
|
<b>@CurrRecord.IdxRa</b>
|
|
}
|
|
</h4>
|
|
</div>
|
|
<div class="col-12 text-end">
|
|
<div class="input-group input-group-sm">
|
|
<span class="input-group-text">
|
|
<i class="far fa-object-group"></i>
|
|
</span>
|
|
<InputSelect @bind-Value="@gruppoSel" class="form-select" title="Gruppo">
|
|
@foreach (var item in gruppiList)
|
|
{
|
|
<option value="@item.Gruppo">@item.DescrGruppo</option>
|
|
}
|
|
</InputSelect>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="card-body">
|
|
<DataAnnotationsValidator />
|
|
<ValidationSummary />
|
|
<div class="row">
|
|
<div class="col-12 col-xl-6 text-end">
|
|
<label class="small">Progetto</label>
|
|
<div class="input-group input-group-sm" title="Progetto">
|
|
<span class="input-group-text" style="width:3em;">
|
|
<i class="fas fa-project-diagram"></i>
|
|
</span>
|
|
<InputSelect @bind-Value="@idxProj" class="form-select bg-light text-start" title="Progetto">
|
|
@foreach (var item in projList)
|
|
{
|
|
<option value="@item.IdxProgetto">@item.ClienteNav.RagSociale | @item.NomeProj</option>
|
|
}
|
|
</InputSelect>
|
|
</div>
|
|
<label class="small">Fase</label>
|
|
<div class="input-group input-group-sm" title="Fase">
|
|
<span class="input-group-text" style="width:3em;">
|
|
<i class="fas fa-tasks"></i>
|
|
</span>
|
|
<InputSelect @bind-Value="@idxFase" class="form-select bg-light text-start" title="Fase">
|
|
@foreach (var item in fasiList)
|
|
{
|
|
if (@item.EnableTime)
|
|
{
|
|
if (item.Attivo)
|
|
{
|
|
<option value="@item.IdxFase">@item.NomeFase</option>
|
|
}
|
|
else
|
|
{
|
|
<option value="@item.IdxFase" disabled="@VetoInsert" title="Fase Disattivata, non selezionabile">@item.NomeFase / DISATTIVA</option>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if (item.Attivo)
|
|
{
|
|
<option value="@item.IdxFase" disabled class="bg-dark text-warning">[@item.NomeFase]</option>
|
|
}
|
|
else
|
|
{
|
|
<option value="@item.IdxFase" disabled class="bg-dark text-warning" title="Fase Disattivata, non selezionabile">[@item.NomeFase / DISATTIVA]</option>
|
|
}
|
|
}
|
|
}
|
|
</InputSelect>
|
|
</div>
|
|
</div>
|
|
@if (CurrRecord != null)
|
|
{
|
|
<div class="col-12 col-xl-6 text-end">
|
|
<label class="small">Periodo (arr 5 min)</label>
|
|
<div class="input-group input-group-sm">
|
|
<span class="input-group-text">
|
|
<i class="fas fa-play fa-xs"></i>
|
|
</span>
|
|
<input type="datetime-local" class="form-control text-end" @bind="@CurrRecord.Inizio"></input>
|
|
<span class="input-group-text" style="width: 4em;">
|
|
inizio
|
|
</span>
|
|
</div>
|
|
<div class="input-group input-group-sm">
|
|
<span class="input-group-text">
|
|
<i class="fas fa-stop fa-xs"></i>
|
|
</span>
|
|
<input type="datetime-local" class="form-control text-end" @bind="@CurrRecord.Fine"></input>
|
|
<span class="input-group-text" style="width: 4em;">
|
|
fine
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<div class="col-12 text-start">
|
|
<label class="small">Descrizione</label>
|
|
<div class="input-group input-group-sm">
|
|
<span class="input-group-text">
|
|
<i class="far fa-comment-alt"></i>
|
|
</span>
|
|
<InputTextArea id="idxRa" @bind-Value="@CurrRecord.Descrizione" class="form-control" title="Descrizione attività"></InputTextArea>
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
</div>
|
|
<div class="card-footer">
|
|
<div class="row">
|
|
<div class="col">
|
|
@if (AppMServ.PayloadOk)
|
|
{
|
|
<button type="button" class="btn w-100 btn-success" @onclick="DoUpdate"><i class="fas fa-check-circle"></i> Save</button>
|
|
}
|
|
</div>
|
|
<div class="col px-0 mx-0">
|
|
<button type="button" class="btn w-100 btn-warning" @onclick="DoReset"><i class="fas fa-ban"></i> Cancel</button>
|
|
</div>
|
|
<div class="col">
|
|
@if (AppMServ.PayloadOk)
|
|
{
|
|
<button type="button" class="btn w-100 btn-danger" @onclick="DoDelete"><i class="fa-solid fa-trash"></i> Delete</button>
|
|
}
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</EditForm>
|
|
|