iotgateway/IoTGateway/Areas/BasicData/Views/DeviceConfig/Edit.cshtml

27 lines
863 B
Plaintext
Raw Normal View History

2021-12-12 06:55:48 +00:00
@model IoTGateway.ViewModel.BasicData.DeviceConfigVMs.DeviceConfigVM
@inject IStringLocalizer<Program> Localizer;
<wt:form vm="@Model" height="400">
2021-12-12 06:55:48 +00:00
<wt:row items-per-row="ItemsPerRowEnum.Two">
@*<wt:textbox field="Entity.DeviceConfigName" />*@
2021-12-12 06:55:48 +00:00
@{
if (Model.Entity.EnumInfo != null)
{
<wt:combobox field="Entity.Value" items="AllTypes" />
}
else
{
<wt:textbox field="Entity.Value" />
}
}
<wt:textbox field="Entity.Description" />
@*<wt:textbox field="Entity.EnumInfo" />*@
@*<wt:combobox field="Entity.DeviceId" items="AllDevices" />*@
2021-12-12 06:55:48 +00:00
</wt:row>
<wt:hidden field="Entity.ID" />
<wt:row align="AlignEnum.Right">
<wt:submitbutton />
<wt:closebutton />
</wt:row>
</wt:form>