forked from wanderer/pwt-0x01-ng
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
18 lines
434 B
Plaintext
18 lines
434 B
Plaintext
@using pwt_0x01_ng.Areas.Admin.Controllers;
|
|
@model Carousel
|
|
@{
|
|
ViewData["Title"] = "Carousel Creation";
|
|
}
|
|
<h2>@ViewData["Title"]</h2>
|
|
<h3>@ViewData["Message"]</h3>
|
|
|
|
<p>Create new carousel item.</p>
|
|
|
|
@{ViewBag.Action = "Create";}
|
|
@await Html.PartialAsync("PartialForm_EditCreate", Model)
|
|
|
|
@section Scripts {
|
|
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
|
|
<script defer src="~/js/validation/file_type.js"></script>
|
|
}
|