disabled fields for not authorized users
This commit is contained in:
+1
-1
@@ -63,7 +63,7 @@
|
||||
JOIN MapPcbIdToSerialNumber AS map
|
||||
ON aps.SerienNr = map.MapPcbIdToSerialNumber_SerialNumber
|
||||
AND (cr.PcbId = map.MapPcbIdToSerialNumber_PcbId OR cr.PcbId IS NULL)
|
||||
WHERE map.MapPcbIdToSerialNumber_PcbId = '212120036'")
|
||||
WHERE map.MapPcbIdToSerialNumber_PcbId = @{nameof(pcbid)}")
|
||||
.SetParameter(nameof(pcbid), pcbid)
|
||||
.FirstOrDefault(this.ParseCordonelRequirements);
|
||||
|
||||
|
||||
@@ -284,21 +284,25 @@ else
|
||||
<div class="row">
|
||||
<div class="col">
|
||||
<div class="form-floating mb-3">
|
||||
@Html.TextBoxFor(x => x.ProductionOrderNr, new { @class = "form-control bg-light", placeholder = "...", @readonly = "readonly" })
|
||||
@Html.TextBoxFor(x => x.ProductionOrderNr, new { @class = "form-control bg-light", placeholder = "...", @readonly = "readonly", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.ProductionOrderNr)
|
||||
</div>
|
||||
<div class="form-floating mb-3">
|
||||
@Html.TextBoxFor(x => x.PcbId, new { @class = "form-control bg-light", placeholder = "...", @readonly = "readonly" })
|
||||
@Html.TextBoxFor(x => x.PcbId, new { @class = "form-control bg-light", placeholder = "...", @readonly = "readonly", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.PcbId)
|
||||
@Html.PopoverFor(x => x.PcbId)
|
||||
</div>
|
||||
<div class="form-floating position-relative mb-3">
|
||||
<div class="form-control d-flex py-0 align-items-center">
|
||||
<div class="pb-0 m-0">
|
||||
@{
|
||||
var _checked = Model.SkipCalibration == true ? "checked" : "";
|
||||
@if (Model.SkipCalibration == true)
|
||||
{
|
||||
<input type="checkbox" checked="checked" class="form-check-input" readonly="readonly" disabled="disabled" />
|
||||
}
|
||||
else
|
||||
{
|
||||
<input type="checkbox" class="form-check-input" readonly="readonly" disabled="disabled" />
|
||||
}
|
||||
<input class="form-check-input" checked="@_checked" readonly="readonly" />
|
||||
@Html.LabelFor(x => x.SkipCalibration, new { @class = "form-check-label" })
|
||||
</div>
|
||||
</div>
|
||||
@@ -307,10 +311,14 @@ else
|
||||
<div class="form-floating position-relative mb-3">
|
||||
<div class="form-control d-flex py-0 align-items-center">
|
||||
<div class="pb-0 m-0">
|
||||
@{
|
||||
_checked = Model.SkipRadioCheck == true ? "checked" : "";
|
||||
@if (Model.SkipRadioCheck == true)
|
||||
{
|
||||
<input type="checkbox" checked="checked" class="form-check-input" readonly="readonly" disabled="disabled" />
|
||||
}
|
||||
else
|
||||
{
|
||||
<input type="checkbox" class="form-check-input" readonly="readonly" disabled="disabled" />
|
||||
}
|
||||
<input class="form-check-input" checked="@_checked" readonly="readonly" />
|
||||
@Html.LabelFor(x => x.SkipRadioCheck, new { @class = "form-check-label" })
|
||||
</div>
|
||||
</div>
|
||||
@@ -319,10 +327,14 @@ else
|
||||
<div class="form-floating position-relative mb-3">
|
||||
<div class="form-control d-flex py-0 align-items-center">
|
||||
<div class="pb-0 m-0">
|
||||
@{
|
||||
_checked = Model.IsActive == true ? "checked" : "";
|
||||
@if (Model.IsActive == true)
|
||||
{
|
||||
<input type="checkbox" checked="checked" class="form-check-input" readonly="readonly" disabled="disabled" />
|
||||
}
|
||||
else
|
||||
{
|
||||
<input type="checkbox" class="form-check-input" readonly="readonly" disabled="disabled" />
|
||||
}
|
||||
<input class="form-check-input" checked="@_checked" readonly="readonly" />
|
||||
@Html.LabelFor(x => x.IsActive, new { @class = "form-check-label" })
|
||||
</div>
|
||||
</div>
|
||||
@@ -337,7 +349,7 @@ else
|
||||
idnr = $"{Model.StandardRequirement.Id}.{Model.StandardRequirement.Version}";
|
||||
}
|
||||
}
|
||||
@Html.TextBoxFor(x => idnr, new { @class = "form-control bg-light", placeholder = "...", @readonly = "readonly" })
|
||||
@Html.TextBoxFor(x => idnr, new { @class = "form-control bg-light", placeholder = "...", @readonly = "readonly", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.StandardId)
|
||||
</div>
|
||||
<div class="form-floating mb-3">
|
||||
@@ -349,7 +361,7 @@ else
|
||||
regionAndSize = $"{Model.StandardRequirement?.Region} - {Model.StandardRequirement?.MeterSize} ({Model.StandardRequirement?.Key})";
|
||||
}
|
||||
}
|
||||
@Html.TextBoxFor(x => regionAndSize, new { @class = "form-control bg-light", placeholder = "...", @readonly = "readonly" })
|
||||
@Html.TextBoxFor(x => regionAndSize, new { @class = "form-control bg-light", placeholder = "...", @readonly = "readonly", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.StandardRequirement)
|
||||
</div>
|
||||
<div class="form-floating mb-3">
|
||||
@@ -386,7 +398,7 @@ else
|
||||
<div class="row">
|
||||
<div class="col pe-0">
|
||||
<div class="form-floating mb-3">
|
||||
@Html.TextBoxFor(x => x.CreatedBy, new { @class = "form-control bg-light", placeholder = "...", @readonly = "readonly" })
|
||||
@Html.TextBoxFor(x => x.CreatedBy, new { @class = "form-control bg-light", placeholder = "...", @readonly = "readonly", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.CreatedBy)
|
||||
@Html.PopoverFor(x => x.CreatedBy)
|
||||
@Html.ValidationMessageFor(x => x.CreatedBy, null, new { @class = "small text-danger" })
|
||||
@@ -402,7 +414,7 @@ else
|
||||
approver = "---";
|
||||
}
|
||||
}
|
||||
@Html.TextBoxFor(x => approver, new { @class = "form-control bg-light", placeholder = "...", @readonly = "readonly" })
|
||||
@Html.TextBoxFor(x => approver, new { @class = "form-control bg-light", placeholder = "...", @readonly = "readonly", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.ApprovedBy)
|
||||
@Html.PopoverFor(x => x.ApprovedBy)
|
||||
@Html.ValidationMessageFor(x => x.ApprovedBy, null, new { @class = "small text-danger" })
|
||||
@@ -412,7 +424,7 @@ else
|
||||
<div class="row">
|
||||
<div class="col pe-0">
|
||||
<div class="form-floating mb-3">
|
||||
@Html.TextBoxFor(x => x.Timestamp, new { @class = "form-control bg-light", placeholder = "...", @readonly = "readonly" })
|
||||
@Html.TextBoxFor(x => x.Timestamp, new { @class = "form-control bg-light", placeholder = "...", @readonly = "readonly", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.Timestamp)
|
||||
@Html.PopoverFor(x => x.Timestamp)
|
||||
@Html.ValidationMessageFor(x => x.Timestamp, null, new { @class = "small text-danger" })
|
||||
@@ -428,7 +440,7 @@ else
|
||||
date = "---";
|
||||
}
|
||||
}
|
||||
@Html.TextBoxFor(x => date, new { @class = "form-control bg-light", placeholder = "...", @readonly = "readonly" })
|
||||
@Html.TextBoxFor(x => date, new { @class = "form-control bg-light", placeholder = "...", @readonly = "readonly", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.ApprovedDate)
|
||||
@Html.PopoverFor(x => x.ApprovedDate)
|
||||
@Html.ValidationMessageFor(x => x.ApprovedDate, null, new { @class = "small text-danger" })
|
||||
@@ -438,52 +450,52 @@ else
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="form-floating mb-3">
|
||||
@Html.TextBoxFor(x => x.FwVersion, new { @class = "form-control", placeholder = "...", @readonly = "readonly" })
|
||||
@Html.TextBoxFor(x => x.FwVersion, new { @class = "form-control", placeholder = "...", @readonly = "readonly", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.FwVersion)
|
||||
@Html.PopoverFor(x => x.FwVersion)
|
||||
</div>
|
||||
<div class="form-floating mb-3">
|
||||
@Html.TextBoxFor(x => x.LutCrc, new { @class = "form-control", placeholder = "...", @readonly = "readonly" })
|
||||
@Html.TextBoxFor(x => x.LutCrc, new { @class = "form-control", placeholder = "...", @readonly = "readonly", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.LutCrc)
|
||||
@Html.PopoverFor(x => x.LutCrc)
|
||||
</div>
|
||||
<div class="form-floating mb-3">
|
||||
@Html.TextBoxFor(x => x.RequiredLifeTimeYearsAssembly, new { @class = "form-control", placeholder = "...", @readonly = "readonly" })
|
||||
@Html.TextBoxFor(x => x.RequiredLifeTimeYearsAssembly, new { @class = "form-control", placeholder = "...", @readonly = "readonly", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.RequiredLifeTimeYearsAssembly)
|
||||
@Html.PopoverFor(x => x.RequiredLifeTimeYearsAssembly)
|
||||
</div>
|
||||
<div class="form-floating mb-3">
|
||||
@Html.TextBoxFor(x => x.RequiredLifeTimeYearsShipping, new { @class = "form-control", placeholder = "...", @readonly = "readonly" })
|
||||
@Html.TextBoxFor(x => x.RequiredLifeTimeYearsShipping, new { @class = "form-control", placeholder = "...", @readonly = "readonly", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.RequiredLifeTimeYearsShipping)
|
||||
@Html.PopoverFor(x => x.RequiredLifeTimeYearsShipping)
|
||||
</div>
|
||||
<div class="form-floating mb-3">
|
||||
@Html.TextBoxFor(x => x.MaxDrainedBatteryLoadPercentAssembly, new { @class = "form-control", placeholder = "...", @readonly = "readonly" })
|
||||
@Html.TextBoxFor(x => x.MaxDrainedBatteryLoadPercentAssembly, new { @class = "form-control", placeholder = "...", @readonly = "readonly", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.MaxDrainedBatteryLoadPercentAssembly)
|
||||
@Html.PopoverFor(x => x.MaxDrainedBatteryLoadPercentAssembly)
|
||||
</div>
|
||||
<div class="form-floating mb-3">
|
||||
@Html.TextBoxFor(x => x.MaxDrainedBatteryLoadPercentShipping, new { @class = "form-control", placeholder = "...", @readonly = "readonly" })
|
||||
@Html.TextBoxFor(x => x.MaxDrainedBatteryLoadPercentShipping, new { @class = "form-control", placeholder = "...", @readonly = "readonly", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.MaxDrainedBatteryLoadPercentShipping)
|
||||
@Html.PopoverFor(x => x.MaxDrainedBatteryLoadPercentShipping)
|
||||
</div>
|
||||
<div class="form-floating mb-3">
|
||||
@Html.TextBoxFor(x => x.MaxStorageMonths, new { @class = "form-control", placeholder = "...", @readonly = "readonly" })
|
||||
@Html.TextBoxFor(x => x.MaxStorageMonths, new { @class = "form-control", placeholder = "...", @readonly = "readonly", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.MaxStorageMonths)
|
||||
@Html.PopoverFor(x => x.MaxStorageMonths)
|
||||
</div>
|
||||
<div class="form-floating mb-3">
|
||||
@Html.TextBoxFor(x => x.MaxStorageMonthsBigOrders, new { @class = "form-control", placeholder = "...", @readonly = "readonly" })
|
||||
@Html.TextBoxFor(x => x.MaxStorageMonthsBigOrders, new { @class = "form-control", placeholder = "...", @readonly = "readonly", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.MaxStorageMonthsBigOrders)
|
||||
@Html.PopoverFor(x => x.MaxStorageMonthsBigOrders)
|
||||
</div>
|
||||
<div class="form-floating mb-3">
|
||||
@Html.TextBoxFor(x => x.QuiescentCurrent_uA, new { @class = "form-control", placeholder = "...", @readonly = "readonly" })
|
||||
@Html.TextBoxFor(x => x.QuiescentCurrent_uA, new { @class = "form-control", placeholder = "...", @readonly = "readonly", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.QuiescentCurrent_uA)
|
||||
@Html.PopoverFor(x => x.QuiescentCurrent_uA)
|
||||
</div>
|
||||
<div class="form-floating mb-3">
|
||||
@Html.TextBoxFor(x => x.EstimatedProductionBatteryLoadPercent, new { @class = "form-control", placeholder = "...", @readonly = "readonly" })
|
||||
@Html.TextBoxFor(x => x.EstimatedProductionBatteryLoadPercent, new { @class = "form-control", placeholder = "...", @readonly = "readonly", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.EstimatedProductionBatteryLoadPercent)
|
||||
@Html.PopoverFor(x => x.EstimatedProductionBatteryLoadPercent)
|
||||
</div>
|
||||
@@ -497,7 +509,8 @@ else
|
||||
id="@nameof(Model.Comment)"
|
||||
name="@nameof(Model.Comment)"
|
||||
style="height: 100px;"
|
||||
readonly="readonly">@Model.Comment</textarea>
|
||||
readonly="readonly"
|
||||
disabled="disabled">@Model.Comment</textarea>
|
||||
@Html.LabelFor(x => x.Comment)
|
||||
@Html.PopoverFor(x => x.Comment, top: 5)
|
||||
</div>
|
||||
|
||||
@@ -302,7 +302,7 @@ else
|
||||
<div class="row">
|
||||
<div class="col pe-0">
|
||||
<div class="form-floating mb-3">
|
||||
@Html.TextBoxFor(x => x.Id, new { @class = "form-control", placeholder = "...", @readonly = "readonly", autocomplete = "off" })
|
||||
@Html.TextBoxFor(x => x.Id, new { @class = "form-control", placeholder = "...", @readonly = "readonly", autocomplete = "off", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.Id)
|
||||
@Html.PopoverFor(x => x.Id)
|
||||
</div>
|
||||
@@ -318,7 +318,7 @@ else
|
||||
name="Version"
|
||||
placeholder="..."
|
||||
readonly="readonly"
|
||||
type="text"
|
||||
type="text"
|
||||
value="@Model.Version">
|
||||
@Html.LabelFor(x => x.Version)
|
||||
@Html.PopoverFor(x => x.Version)
|
||||
@@ -326,39 +326,47 @@ else
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-floating mb-3">
|
||||
@Html.TextBoxFor(x => x.Key, new { @class = "form-control", placeholder = "...", @readonly = "readonly", autocomplete = "off" })
|
||||
@Html.TextBoxFor(x => x.Key, new { @class = "form-control", placeholder = "...", @readonly = "readonly", autocomplete = "off", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.Key)
|
||||
@Html.PopoverFor(x => x.Key)
|
||||
</div>
|
||||
<div class="form-floating mb-3">
|
||||
@Html.TextBoxFor(x => x.Region, new { @class = "form-control", placeholder = "...", @readonly = "readonly", autocomplete = "off" })
|
||||
@Html.TextBoxFor(x => x.Region, new { @class = "form-control", placeholder = "...", @readonly = "readonly", autocomplete = "off", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.Region)
|
||||
@Html.PopoverFor(x => x.Region)
|
||||
</div>
|
||||
<div class="form-floating mb-3">
|
||||
@Html.TextBoxFor(x => x.MeterSize, new { @class = "form-control", placeholder = "...", @readonly = "readonly", autocomplete = "off" })
|
||||
@Html.TextBoxFor(x => x.MeterSize, new { @class = "form-control", placeholder = "...", @readonly = "readonly", autocomplete = "off", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.MeterSize)
|
||||
@Html.PopoverFor(x => x.MeterSize)
|
||||
</div>
|
||||
<div class="form-floating position-relative mb-3">
|
||||
<div class="form-control d-flex py-0 align-items-center">
|
||||
<div class="form-control d-flex py-0 align-items-center bg-light">
|
||||
<div class="pb-0 m-0">
|
||||
@{
|
||||
var _checked = Model.SkipCalibration == true ? "checked" : "";
|
||||
@if (Model.SkipCalibration == true)
|
||||
{
|
||||
<input type="checkbox" checked="checked" class="form-check-input" readonly="readonly" disabled="disabled" />
|
||||
}
|
||||
else
|
||||
{
|
||||
<input type="checkbox" class="form-check-input" readonly="readonly" disabled="disabled" />
|
||||
}
|
||||
<input class="form-check-input" checked="@_checked" readonly="readonly" />
|
||||
@Html.LabelFor(x => x.SkipCalibration, new { @class = "form-check-label" })
|
||||
</div>
|
||||
</div>
|
||||
@Html.PopoverFor(x => x.SkipCalibration)
|
||||
</div>
|
||||
<div class="form-floating position-relative mb-3">
|
||||
<div class="form-control d-flex py-0 align-items-center">
|
||||
<div class="form-control d-flex py-0 align-items-center bg-light">
|
||||
<div class="pb-0 m-0">
|
||||
@{
|
||||
_checked = Model.SkipRadioCheck == true ? "checked" : "";
|
||||
@if (Model.SkipRadioCheck == true)
|
||||
{
|
||||
<input type="checkbox" checked="checked" class="form-check-input" readonly="readonly" disabled="disabled" />
|
||||
}
|
||||
else
|
||||
{
|
||||
<input type="checkbox" class="form-check-input" readonly="readonly" disabled="disabled" />
|
||||
}
|
||||
<input class="form-check-input" checked="@_checked" readonly="readonly" />
|
||||
@Html.LabelFor(x => x.SkipRadioCheck, new { @class = "form-check-label" })
|
||||
</div>
|
||||
</div>
|
||||
@@ -367,10 +375,14 @@ else
|
||||
<div class="form-floating position-relative mb-3">
|
||||
<div class="form-control d-flex py-0 align-items-center">
|
||||
<div class="pb-0 m-0">
|
||||
@{
|
||||
_checked = Model.IsActive == true ? "checked" : "";
|
||||
@if (Model.IsActive == true)
|
||||
{
|
||||
<input type="checkbox" checked="checked" class="form-check-input" readonly="readonly" disabled="disabled" />
|
||||
}
|
||||
else
|
||||
{
|
||||
<input type="checkbox" class="form-check-input" readonly="readonly" disabled="disabled" />
|
||||
}
|
||||
<input class="form-check-input" checked="@_checked" readonly="readonly" />
|
||||
@Html.LabelFor(x => x.IsActive, new { @class = "form-check-label" })
|
||||
</div>
|
||||
</div>
|
||||
@@ -410,7 +422,7 @@ else
|
||||
<div class="row">
|
||||
<div class="col pe-0">
|
||||
<div class="form-floating mb-3">
|
||||
@Html.TextBoxFor(x => x.CreatedBy, new { @class = "form-control", placeholder = "...", @readonly = "readonly", autocomplete = "off" })
|
||||
@Html.TextBoxFor(x => x.CreatedBy, new { @class = "form-control", placeholder = "...", @readonly = "readonly", autocomplete = "off", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.CreatedBy)
|
||||
@Html.PopoverFor(x => x.CreatedBy)
|
||||
@Html.ValidationMessageFor(x => x.CreatedBy, null, new { @class = "small text-danger" })
|
||||
@@ -426,7 +438,7 @@ else
|
||||
approver = "---";
|
||||
}
|
||||
}
|
||||
@Html.TextBoxFor(x => approver, new { @class = "form-control", placeholder = "...", @readonly = "readonly", autocomplete = "off" })
|
||||
@Html.TextBoxFor(x => approver, new { @class = "form-control", placeholder = "...", @readonly = "readonly", autocomplete = "off", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.ApprovedBy)
|
||||
@Html.PopoverFor(x => x.ApprovedBy)
|
||||
@Html.ValidationMessageFor(x => x.ApprovedBy, null, new { @class = "small text-danger" })
|
||||
@@ -436,7 +448,7 @@ else
|
||||
<div class="row">
|
||||
<div class="col pe-0">
|
||||
<div class="form-floating mb-3">
|
||||
@Html.TextBoxFor(x => x.Timestamp, new { @class = "form-control", placeholder = "...", @readonly = "readonly", autocomplete = "off" })
|
||||
@Html.TextBoxFor(x => x.Timestamp, new { @class = "form-control", placeholder = "...", @readonly = "readonly", autocomplete = "off", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.Timestamp)
|
||||
@Html.PopoverFor(x => x.Timestamp)
|
||||
@Html.ValidationMessageFor(x => x.Timestamp, null, new { @class = "small text-danger" })
|
||||
@@ -452,7 +464,7 @@ else
|
||||
date = "---";
|
||||
}
|
||||
}
|
||||
@Html.TextBoxFor(x => date, new { @class = "form-control", placeholder = "...", @readonly = "readonly", autocomplete = "off" })
|
||||
@Html.TextBoxFor(x => date, new { @class = "form-control", placeholder = "...", @readonly = "readonly", autocomplete = "off", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.ApprovedDate)
|
||||
@Html.PopoverFor(x => x.ApprovedDate)
|
||||
@Html.ValidationMessageFor(x => x.ApprovedDate, null, new { @class = "small text-danger" })
|
||||
@@ -462,52 +474,52 @@ else
|
||||
</div>
|
||||
<div class="col">
|
||||
<div class="form-floating mb-3">
|
||||
@Html.TextBoxFor(x => x.FwVersion, new { @class = "form-control", placeholder = "...", autocomplete = "off", @readonly = "readonly" })
|
||||
@Html.TextBoxFor(x => x.FwVersion, new { @class = "form-control", placeholder = "...", autocomplete = "off", @readonly = "readonly", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.FwVersion)
|
||||
@Html.PopoverFor(x => x.FwVersion)
|
||||
</div>
|
||||
<div class="form-floating mb-3">
|
||||
@Html.TextBoxFor(x => x.LutCrc, new { @class = "form-control", placeholder = "...", autocomplete = "off", @readonly = "readonly" })
|
||||
@Html.TextBoxFor(x => x.LutCrc, new { @class = "form-control", placeholder = "...", autocomplete = "off", @readonly = "readonly", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.LutCrc)
|
||||
@Html.PopoverFor(x => x.LutCrc)
|
||||
</div>
|
||||
<div class="form-floating mb-3">
|
||||
@Html.TextBoxFor(x => x.RequiredLifeTimeYearsAssembly, new { @class = "form-control", placeholder = "...", autocomplete = "off", @readonly = "readonly" })
|
||||
@Html.TextBoxFor(x => x.RequiredLifeTimeYearsAssembly, new { @class = "form-control", placeholder = "...", autocomplete = "off", @readonly = "readonly", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.RequiredLifeTimeYearsAssembly)
|
||||
@Html.PopoverFor(x => x.RequiredLifeTimeYearsAssembly)
|
||||
</div>
|
||||
<div class="form-floating mb-3">
|
||||
@Html.TextBoxFor(x => x.RequiredLifeTimeYearsShipping, new { @class = "form-control", placeholder = "...", autocomplete = "off", @readonly = "readonly" })
|
||||
@Html.TextBoxFor(x => x.RequiredLifeTimeYearsShipping, new { @class = "form-control", placeholder = "...", autocomplete = "off", @readonly = "readonly", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.RequiredLifeTimeYearsShipping)
|
||||
@Html.PopoverFor(x => x.RequiredLifeTimeYearsShipping)
|
||||
</div>
|
||||
<div class="form-floating mb-3">
|
||||
@Html.TextBoxFor(x => x.MaxDrainedBatteryLoadPercentAssembly, new { @class = "form-control", placeholder = "...", autocomplete = "off", @readonly = "readonly" })
|
||||
@Html.TextBoxFor(x => x.MaxDrainedBatteryLoadPercentAssembly, new { @class = "form-control", placeholder = "...", autocomplete = "off", @readonly = "readonly", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.MaxDrainedBatteryLoadPercentAssembly)
|
||||
@Html.PopoverFor(x => x.MaxDrainedBatteryLoadPercentAssembly)
|
||||
</div>
|
||||
<div class="form-floating mb-3">
|
||||
@Html.TextBoxFor(x => x.MaxDrainedBatteryLoadPercentShipping, new { @class = "form-control", placeholder = "...", autocomplete = "off", @readonly = "readonly" })
|
||||
@Html.TextBoxFor(x => x.MaxDrainedBatteryLoadPercentShipping, new { @class = "form-control", placeholder = "...", autocomplete = "off", @readonly = "readonly", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.MaxDrainedBatteryLoadPercentShipping)
|
||||
@Html.PopoverFor(x => x.MaxDrainedBatteryLoadPercentShipping)
|
||||
</div>
|
||||
<div class="form-floating mb-3">
|
||||
@Html.TextBoxFor(x => x.MaxStorageMonths, new { @class = "form-control", placeholder = "...", autocomplete = "off", @readonly = "readonly" })
|
||||
@Html.TextBoxFor(x => x.MaxStorageMonths, new { @class = "form-control", placeholder = "...", autocomplete = "off", @readonly = "readonly", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.MaxStorageMonths)
|
||||
@Html.PopoverFor(x => x.MaxStorageMonths)
|
||||
</div>
|
||||
<div class="form-floating mb-3">
|
||||
@Html.TextBoxFor(x => x.MaxStorageMonthsBigOrders, new { @class = "form-control", placeholder = "...", autocomplete = "off", @readonly = "readonly" })
|
||||
@Html.TextBoxFor(x => x.MaxStorageMonthsBigOrders, new { @class = "form-control", placeholder = "...", autocomplete = "off", @readonly = "readonly", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.MaxStorageMonthsBigOrders)
|
||||
@Html.PopoverFor(x => x.MaxStorageMonthsBigOrders)
|
||||
</div>
|
||||
<div class="form-floating mb-3">
|
||||
@Html.TextBoxFor(x => x.QuiescentCurrent_uA, new { @class = "form-control", placeholder = "...", autocomplete = "off", @readonly = "readonly" })
|
||||
@Html.TextBoxFor(x => x.QuiescentCurrent_uA, new { @class = "form-control", placeholder = "...", autocomplete = "off", @readonly = "readonly", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.QuiescentCurrent_uA)
|
||||
@Html.PopoverFor(x => x.QuiescentCurrent_uA)
|
||||
</div>
|
||||
<div class="form-floating mb-3">
|
||||
@Html.TextBoxFor(x => x.EstimatedProductionBatteryLoadPercent, new { @class = "form-control", placeholder = "...", autocomplete = "off", @readonly = "readonly" })
|
||||
@Html.TextBoxFor(x => x.EstimatedProductionBatteryLoadPercent, new { @class = "form-control", placeholder = "...", autocomplete = "off", @readonly = "readonly", disabled = "disabled" })
|
||||
@Html.LabelFor(x => x.EstimatedProductionBatteryLoadPercent)
|
||||
@Html.PopoverFor(x => x.EstimatedProductionBatteryLoadPercent)
|
||||
</div>
|
||||
@@ -522,7 +534,8 @@ else
|
||||
id="@nameof(Model.Comment)"
|
||||
name="@nameof(Model.Comment)"
|
||||
style="height: 100px;"
|
||||
readonly="readonly">@(Model.Comment?.Trim())</textarea>
|
||||
readonly="readonly"
|
||||
disabled="disabled">@(Model.Comment?.Trim())</textarea>
|
||||
@Html.PopoverFor(x => x.Comment, top: 5)
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user