56 lines
1.6 KiB
Plaintext
56 lines
1.6 KiB
Plaintext
<div class="input-group mb-2">
|
|
@if (User)
|
|
{
|
|
<span class="input-group-text">@(CurrOpt.sName)</span>
|
|
@if (CurrOpt.sName.Equals("HMan"))
|
|
{
|
|
<input type="number" readonly class="form-control" value="@CurrValue">
|
|
}
|
|
else if (CurrOpt.ValueList.Count > 0)
|
|
{
|
|
if (CurrValue is String)
|
|
{
|
|
<input type="text" readonly class="form-control" value="@CurrValue">
|
|
}
|
|
else
|
|
{
|
|
<input type="number" readonly class="form-control" value="@CurrValue">
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if (CurrValue is String)
|
|
{
|
|
<input type="text" readonly class="form-control" value="@CurrValue">
|
|
}
|
|
else
|
|
{
|
|
<input type="number" readonly class="form-control" value="@CurrValue">
|
|
}
|
|
}
|
|
}
|
|
else
|
|
{
|
|
<label class="input-group-text">@(CurrOpt.sName)</label>
|
|
@if (CurrOpt.sName.Equals("HMan"))
|
|
{
|
|
<input type="number" class="form-control" @bind="@CurrValue">
|
|
}
|
|
else if (CurrOpt.ValueList.Count > 0)
|
|
{
|
|
<select class="form-select" @bind="CurrValue">
|
|
@foreach (var currValueCombo in CurrOpt.ValueList)
|
|
{
|
|
<option value="@currValueCombo">@currValueCombo</option>
|
|
}
|
|
</select>
|
|
}
|
|
else
|
|
{
|
|
<select class="form-select" @bind="CurrValue">
|
|
<option value="@CurrOpt.sValue">@CurrOpt.sValue</option>
|
|
</select>
|
|
}
|
|
|
|
}
|
|
</div> |