forked from wanderer/pwt-0x01-ng
as per #5 commit d0b491d1dc289dedf242a974b1b42e021272234b Author: surtur <a_mirre@utb.cz> Date: Tue Jan 26 14:35:05 2021 +0100 chore: add proper Product validation * image file type checking with custom attr commit 81a5fe36c2aef355aa71a6208acea096dd35d70e Author: surtur <a_mirre@utb.cz> Date: Mon Jan 25 22:29:48 2021 +0100 chore: add client-side carousel edit validation commit 5cddb4bd9b55a514d9aa6f79f291678c88d33773 Author: surtur <a_mirre@utb.cz> Date: Mon Jan 25 22:27:38 2021 +0100 chore: add carousel image file type checking * since image is not required, so isn't ImageSrc
17 lines
373 B
Plaintext
17 lines
373 B
Plaintext
@model Product
|
|
@{
|
|
ViewData["Title"] = "Product - Create";
|
|
}
|
|
<h2>@ViewData["Title"]</h2>
|
|
<h3>@ViewData["Message"]</h3>
|
|
|
|
<p>Create new item.</p>
|
|
|
|
@{ViewBag.Action = "Create";}
|
|
@await Html.PartialAsync("edit-create_part", Model)
|
|
|
|
@section Scripts {
|
|
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
|
|
<script defer src="~/js/validation/file_type.js"></script>
|
|
}
|