RMS.Manage.Web/Areas/RMS/Views/Program/Edit.cshtml
(完整代码) 2KB@using RMS.EF.Model
@model RMS_Program
@{
var errorMsg = ViewBag.ErrorMsg as string;
if (!string.IsNullOrWhiteSpace(errorMsg))
{
<script>
toastr.error("@(errorMsg)");
</script>
}
}
<div class="form-horizontal">
@Html.HiddenFor(model => model.Id)
<div class="form-group">
@Html.LabelFor(model => model.Name, "名称", htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.Name, new { htmlAttributes = new { @class = "form-control", @maxlength = 50 } })
@Html.ValidationMessageFor(model => model.Name)
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.Domain, "域名", htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.Domain, new { htmlAttributes = new { @class = "form-control", @maxlength = 50 } })
@Html.ValidationMessageFor(model => model.Domain)
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.Ordering, "排序值", htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.Ordering, new { htmlAttributes = new { @class = "form-control", @maxlength = 10 } })
@Html.ValidationMessageFor(model => model.Ordering)
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.EStatus, "状态", htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.DropDownListFor(model => model.EStatus, new List<SelectListItem>()
{
new SelectListItem() {Value=(E_Status.Disable).ToString(),Text="不可用" },
new SelectListItem() {Value=(E_Status.Enable).ToString(),Text="可用" }
}, new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.EStatus)
</div>
</div>
</div>
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。