@model atakanozbancom.Models.classes.AdminMyProjectsEditVM @{ ViewBag.Title = "myprojectsget"; Layout = "~/Views/Shared/_AdminLayout.cshtml"; }

My Projects Edit Post

@if (TempData["ok"] != null) {
@TempData["ok"]
}
@using (Html.BeginForm("myprojectsget", "admin", FormMethod.Post, new { enctype = "multipart/form-data" })) { @Html.AntiForgeryToken() @Html.HiddenFor(m => m.id) @Html.LabelFor(x => x.id, new { @class = "text-white" }) @Html.TextBoxFor(x => x.id, new { @class = "form-control bg-dark text-white", @readonly = "readonly" })
@Html.LabelFor(p => p.TitleEN, new { @class = "text-white" }) @Html.TextBoxFor(p => p.TitleEN, new { @class = "form-control bg-dark text-white required" })
@Html.LabelFor(p => p.DescEN, new { @class = "text-white" }) @Html.TextAreaFor(p => p.DescEN, new { @class = "form-control bg-dark text-white required" }) To add a link, use: [Link text](https://example.com)

Translation

@Html.LabelFor(m => m.TitleTR, new { @class = "text-white" }) @Html.TextBoxFor(m => m.TitleTR, new { @class = "form-control bg-dark text-white required" })
@Html.LabelFor(m => m.DescTR, new { @class = "text-white" }) @Html.TextAreaFor(m => m.DescTR, new { @class = "form-control bg-dark text-white required" }) To add a link, use: [Link text](https://example.com)
}

Media Manager

@if (Model.medias != null && Model.medias.Count > 0) {
@foreach (var m in Model.medias) {
@m.media_type (order: @m.sort_order)
@m.url
@*@if (!string.IsNullOrWhiteSpace(m.title)) {
@m.title
}*@
@using (Html.BeginForm("deletemedia", "admin", new { id = m.id, projectId = Model.id }, FormMethod.Post, new { onsubmit = "return confirm('Delete this media?');" })) { @Html.AntiForgeryToken() }

}
} else {
No media for this project.
} @using (Html.BeginForm("addmedia", "admin", FormMethod.Post, new { enctype = "multipart/form-data" })) { @Html.AntiForgeryToken()
Upload image/document files.
}