@model atakanozbancom.Models.classes.AdminSocialIconVM
@{
ViewBag.Title = "Add New Social Icon";
Layout = "~/Views/Shared/_AdminLayout.cshtml";
}
Add New Social Icon
@using (Html.BeginForm("newsocialicon", "admin", FormMethod.Post))
{
@Html.AntiForgeryToken()
@Html.ValidationSummary(false, "", new { @class = "alert alert-danger" + (ViewData.ModelState.IsValid ? " d-none" : "") })
@Html.LabelFor(p => p.icon, new { @class = "text-white" })
@Html.TextBoxFor(p => p.icon, new { @class = "form-control bg-dark text-white", placeholder = "e.g. fa-brands fa-youtube", id = "icon-input" })
Any Font Awesome class name, e.g. fa-brands fa-youtube or fa-solid fa-link.
@Html.LabelFor(p => p.url, new { @class = "text-white" })
@Html.TextBoxFor(p => p.url, new { @class = "form-control bg-dark text-white", placeholder = "https://..." })
@Html.LabelFor(p => p.sort_order, new { @class = "text-white" })
@Html.TextBoxFor(p => p.sort_order, new { @class = "form-control bg-dark text-white", type = "number" })
Lower numbers show first.
}