demo20230512/Areas/admin/Views/ARnGWP/Create.cshtml

89 lines
6.1 KiB
Plaintext
Raw Normal View History

2023-05-12 10:20:28 +08:00
@using Resources
@using Weee.Models.ExtensionMethods
@model Qcarbon.ViewModels.DTO.ARnGWProwViewModel
@{ ViewBag.Title = Resource.StaticLabelNonYearlyParameterMaintain;
Layout = "~/Areas/admin/Views/Shared/_AdminLayout.cshtml"; }
<div class="col-md-12">
<h2>@Resource.StaticLabelGlobal_New</h2>
<hr />
@using (Html.BeginForm())
{
@Html.AntiForgeryToken()
<div class="col-md-1"></div>
<div class="form-horizontal col-md-10">
@Html.ValidationSummary(true)
<div class="form-group">
@Html.LabelFor(model => model.ingredientName, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.ingredientName, new { htmlAttributes = new { @class = "form-control", @required = "required" } })
@Html.ValidationMessageFor(model => model.ingredientName, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.chemicalFormula, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.chemicalFormula, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.chemicalFormula, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.GWP100, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.GWP100, new { htmlAttributes = new { @class = "form-control", @required = "required" } })
@Html.ValidationMessageFor(model => model.GWP100, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.ChineseName, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.ChineseName, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.ChineseName, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.Alias, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.Alias, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.Alias, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.GHGType, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.EditorFor(model => model.GHGType, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.GHGType, null, new { @class = "text-danger" })
</div>
</div>
<div class="form-group">
@Html.LabelFor(model => model.GWPtype, new { @class = "control-label docs-control-label col-xs-3" })
<div class="col-xs-9">
@Html.DropDownListFor(model => model.GWPtype, (IEnumerable<SelectListItem>)ViewBag.selectGWPparameterType, new { @class = "form-control", @required = "required" })
@*<select class="form-control" id="GWPtype" name="GWPtype">
<option value=""></option>
<option value="0">@Resource.OtherCompound</option>
<option value="1">@Resource.Refrigerant</option>
<option value="2">@Resource.ParamemterCategoriesFireEquipment</option>
</select>*@
</div>
</div>
<div class="form-group" style="padding-top: 10px;">
<div class="col-md-offset-2 col-md-10 text-right">
<input type="submit" value="@Resource.StaticLabelGlobal_Save" class="btn btn-default" />
@Html.ActionLink(Resource.StaticLabelGlobal_Cancel, null, null, new { @class = "btn btn-default", href = Request.UrlReferrer })
</div>
</div>
<div>
</div>
</div>}
</div>
<div class="col-md-2"></div>