81 lines
3.8 KiB
Plaintext
81 lines
3.8 KiB
Plaintext
@using Resources
|
|
|
|
@model Weee.Models.PCR
|
|
@{
|
|
ViewBag.Title = Resource.StaticLabelPCRList;
|
|
Layout = "~/Areas/Admin/Views/Shared/_AdminLayout.cshtml";
|
|
}
|
|
|
|
|
|
<div class="col-md-12">
|
|
<h2>@(Model.ID == 0 ? Resource.StaticLabelGlobal_New : Resource.StaticLabelGlobal_Edit) - PCR</h2>
|
|
<hr />
|
|
@using (Html.BeginForm())
|
|
{
|
|
@Html.AntiForgeryToken()
|
|
<div class="col-md-1"></div>
|
|
<div class="form-horizontal col-md-10">
|
|
<div>
|
|
@Html.ValidationSummary(true)
|
|
@Html.HiddenFor(model => model.ID)
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.Percentage, new { @class = "control-label docs-control-label col-xs-3" })
|
|
<div class="col-xs-9">
|
|
@Html.EditorFor(model => model.Percentage, new { htmlAttributes = new { @class = "form-control" } })
|
|
@Html.ValidationMessageFor(model => model.Percentage, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.DisplayNameTW, new { @class = "control-label docs-control-label col-xs-3" })
|
|
<div class="col-xs-9">
|
|
@Html.EditorFor(model => model.DisplayNameTW, new { htmlAttributes = new { @class = "form-control" } })
|
|
@Html.ValidationMessageFor(model => model.DisplayNameTW, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.DisplayNameCN, new { @class = "control-label docs-control-label col-xs-3" })
|
|
<div class="col-xs-9">
|
|
@Html.EditorFor(model => model.DisplayNameCN, new { htmlAttributes = new { @class = "form-control" } })
|
|
@Html.ValidationMessageFor(model => model.DisplayNameCN, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.DisplayNameEN, new { @class = "control-label docs-control-label col-xs-3" })
|
|
<div class="col-xs-9">
|
|
@Html.EditorFor(model => model.DisplayNameEN, new { htmlAttributes = new { @class = "form-control" } })
|
|
@Html.ValidationMessageFor(model => model.DisplayNameEN, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.version, new { @class = "control-label docs-control-label col-xs-3" })
|
|
<div class="col-xs-9">
|
|
@Html.EditorFor(model => model.version, new { htmlAttributes = new { @class = "form-control" } })
|
|
@Html.ValidationMessageFor(model => model.version, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
@Html.LabelFor(model => model.Description, new { @class = "control-label docs-control-label col-xs-3" })
|
|
<div class="col-xs-9">
|
|
@Html.TextAreaFor(model => model.Description, new { @class = "form-control", rows = "4" })
|
|
@Html.ValidationMessageFor(model => model.Description, "", new { @class = "text-danger" })
|
|
</div>
|
|
</div>
|
|
|
|
<div class="form-group" style="padding-top: 10px;">
|
|
<div class="col-md-offset-3 col-md-9 text-right">
|
|
<input type="submit" value="@Resource.StaticLabelGlobal_Save" class="btn btn-default" />
|
|
@Html.ActionLink(Resource.StaticLabelGlobal_Cancel, "Index", new { }, new { @class = "btn btn-default" })
|
|
</div>
|
|
</div>
|
|
</div>
|
|
}
|
|
</div>
|
|
|