@model atakanozbancom.Models.classes.AdminMyProjectsEditVM
@{
ViewBag.Title = "Add New Project";
Layout = "~/Views/Shared/_AdminLayout.cshtml";
}
Add New My Projects Post
@if (TempData["ok"] != null)
{@TempData["ok"]
}
@using (Html.BeginForm("newmppost", "admin", FormMethod.Post,
new { enctype = "multipart/form-data" }))
{
@Html.AntiForgeryToken()
@Html.LabelFor(p => p.TitleEN, new { @class = "text-white" })
@Html.TextBoxFor(p => p.TitleEN, new { @class = "form-control bg-dark text-white" })
@Html.LabelFor(p => p.DescEN, new { @class = "text-white" })
@Html.TextAreaFor(p => p.DescEN, new { @class = "form-control bg-dark text-white" })
To add a link, use: [Link text](https://example.com)
Translation (TR)
@Html.LabelFor(p => p.TitleTR, new { @class = "text-white" })
@Html.TextBoxFor(p => p.TitleTR, new { @class = "form-control bg-dark text-white" })
@Html.LabelFor(p => p.DescTR, new { @class = "text-white" })
@Html.TextAreaFor(p => p.DescTR, new { @class = "form-control bg-dark text-white" })
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()
Only for iframe embed links.
Upload image/document files.
}