83cf80a289
- Modifiche interfaccia - Correzioni varie
43 lines
1.6 KiB
Plaintext
43 lines
1.6 KiB
Plaintext
@using EgwCoreLib.Razor
|
|
|
|
<div class="col-md-12 col-lg-6">
|
|
<div class="input-group mb-2">
|
|
@* <span class="input-group-text">@(Name + " " + (Index+ 1))</span> *@
|
|
<span class="input-group-text">
|
|
<img class="img-fluid me-2" src="@GetImageDimensionPath()" title="@Traduci("CWSplitDim_" + Name)" width="40" />
|
|
@(Index + 1)
|
|
</span>
|
|
@if(BaseUser)
|
|
{
|
|
<input type="number" readonly class="form-control" value="@CurrVal">
|
|
<span class="input-group-text" style="width:6rem; background-color:#e9ecef">
|
|
@(CurrRec.SelMeasureType.ToString() switch
|
|
{
|
|
"Absolute" => "mm",
|
|
"Proportional" => "*",
|
|
"Percentage" => "%",
|
|
_ => CurrRec.SelMeasureType.ToString()
|
|
})
|
|
</span>
|
|
}
|
|
else
|
|
{
|
|
<input type="number" class="form-control" @bind="@CurrVal">
|
|
<select class="form-select" style="max-width:6rem; background-color:#e9ecef" @bind="@CurrType">
|
|
@foreach (var mType in CurrRec.MeasureTypeList)
|
|
{
|
|
<option value=@(mType.Id)>
|
|
@(mType.Name switch
|
|
{
|
|
"Absolute" => "mm",
|
|
"Proportional" => "*",
|
|
"Percentage" => "%",
|
|
_ => mType.Name
|
|
})
|
|
</option>
|
|
}
|
|
</select>
|
|
}
|
|
</div>
|
|
</div>
|