You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1.9 KiB
Plaintext

@page
@model IoTSharp.Gateway.Modbus.Pages.SlaveAdmin.CreateModel
@{
ViewData["Title"] = "Create";
}
<h1>Create</h1>
<h4>ModbusSlave</h4>
<hr />
<div class="row">
<div class="col-md-4">
<form method="post">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group">
<label asp-for="ModbusSlave.Slave" class="control-label"></label>
<input asp-for="ModbusSlave.Slave" class="form-control" />
<span asp-validation-for="ModbusSlave.Slave" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ModbusSlave.TimeOut" class="control-label"></label>
<input asp-for="ModbusSlave.TimeOut" class="form-control" />
<span asp-validation-for="ModbusSlave.TimeOut" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ModbusSlave.DeviceName" class="control-label"></label>
<input asp-for="ModbusSlave.DeviceName" class="form-control" />
<span asp-validation-for="ModbusSlave.DeviceName" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="ModbusSlave.DeviceNameFormat" class="control-label"></label>
<input asp-for="ModbusSlave.DeviceNameFormat" class="form-control" />
<span asp-validation-for="ModbusSlave.DeviceNameFormat" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Create" class="btn btn-primary" />
</div>
</form>
</div>
</div>
<div>
<a asp-page="Index">Back to List</a>
</div>
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}