iotgateway/IoTGateway/Areas/BasicData/Views/Device/Edit.cshtml
2021-12-12 14:55:48 +08:00

25 lines
881 B
Plaintext

@model IoTGateway.ViewModel.BasicData.DeviceVMs.DeviceVM
@inject IStringLocalizer<Program> Localizer;
<wt:form vm="@Model">
<wt:row items-per-row="ItemsPerRowEnum.Two">
<wt:textbox field="Entity.DeviceName" />
<wt:textbox field="Entity.Index" />
<wt:textbox field="Entity.Description" />
<wt:display field="Entity.DeviceTypeEnum" />
@{
if (Model.Entity.DeviceTypeEnum == IoTGateway.Model.DeviceTypeEnum.Device)
{
<wt:combobox field="Entity.ParentId" items="AllParents" />
<wt:combobox field="Entity.DriverId" items="AllDrivers" />
<wt:switch field="Entity.AutoStart" />
}
}
</wt:row>
<wt:hidden field="Entity.ID" />
<wt:row align="AlignEnum.Right">
<wt:submitbutton />
<wt:closebutton />
</wt:row>
</wt:form>