@model Project_63135350.Models.Model_63135350.Product_63135350 @{ ViewBag.Title = "Thêm mới"; Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml"; } @section naviheader{ }

Thêm mới sản phẩm

Thông tin thêm mới sản phẩm

@using (Html.BeginForm("Add", "Products_63135350", FormMethod.Post, new { })) { @Html.AntiForgeryToken() @Html.ValidationSummary(true)
@Html.TextBoxFor(x => x.Title, new { @class = "form-control", @placeholder = "Tên sản phẩm" }) @Html.ValidationMessageFor(x => x.Title, null, new { @class = "text-danger" })
@Html.TextBoxFor(x => x.Alias, new { @class = "form-control", @placeholder = "Alias" }) @Html.ValidationMessageFor(x => x.Alias, null, new { @class = "text-danger" })
@Html.TextBoxFor(x => x.ProductCode, new { @class = "form-control", @placeholder = "Mã sản phẩm" }) @Html.ValidationMessageFor(x => x.ProductCode, null, new { @class = "text-danger" })
@Html.DropDownListFor(x => x.ProductCategoryID, ViewBag.ProductCategory_63135350 as SelectList, "-Chọn danh mục sản phẩm-", new { @class = "form-control", @placeholder = "Mã sản phẩm" }) @Html.ValidationMessageFor(x => x.ProductCategoryID, null, new { @class = "text-danger" })
@Html.TextAreaFor(x => x.Description, new { @class = "form-control", @placeholder = "Mô tả" }) @Html.ValidationMessageFor(x => x.Description, null, new { @class = "text-danger" })
@Html.TextAreaFor(x => x.Detail, new { @class = "form-control", @id = "txtDetail" }) @Html.ValidationMessageFor(x => x.Detail, null, new { @class = "text-danger" })
@Html.TextBoxFor(x => x.Quanlity, new { @class = "form-control", @Value = "1" }) @Html.ValidationMessageFor(x => x.Quanlity, null, new { @class = "text-danger" })
@Html.HiddenFor(x => x.Price, new { @class = "", @placeholder = "Giá" }) @Html.ValidationMessageFor(x => x.Price, null, new { @class = "text-danger" })
@Html.HiddenFor(x => x.PriceSale, new { @class = "form-control", @placeholder = "Khuyến mãi" }) @Html.ValidationMessageFor(x => x.PriceSale, null, new { @class = "text-danger" })
@Html.HiddenFor(x => x.OriginalPrice, new { @class = "form-control", @placeholder = "Giá nhập" }) @Html.ValidationMessageFor(x => x.OriginalPrice, null, new { @class = "text-danger" })
@Html.CheckBoxFor(x => x.IsActive, new { @class = "custom-control-input", @id = "customCheckbox2", @checked = "checked" })
@Html.CheckBoxFor(x => x.IsHot, new { @class = "custom-control-input", @id = "IsHotCheckbox2" })
@Html.CheckBoxFor(x => x.IsFeature, new { @class = "custom-control-input", @id = "IsFeatureCheckbox" })
@Html.CheckBoxFor(x => x.IsSale, new { @class = "custom-control-input", @id = "IsSaleCheckbox" })
# Ảnh Ảnh đại diện Thao tác
}
@section scripts{ }