50 lines
1.7 KiB
Plaintext
50 lines
1.7 KiB
Plaintext
@model atakanozbancom.Models.classes.AdminMyProjectsEditVM
|
|
@{
|
|
ViewBag.Title = "Add New Project";
|
|
Layout = "~/Views/Shared/_AdminLayout.cshtml";
|
|
}
|
|
|
|
<h2 class="text-white mt-3">Add New My Projects Post</h2>
|
|
@if (TempData["ok"] != null)
|
|
{<div class="alert alert-success">@TempData["ok"]</div>}
|
|
<br />
|
|
|
|
@using (Html.BeginForm("newmppost", "admin", FormMethod.Post,
|
|
new { enctype = "multipart/form-data" }))
|
|
{
|
|
@Html.AntiForgeryToken()
|
|
|
|
<div class="mb-3">
|
|
@Html.LabelFor(p => p.TitleEN, new { @class = "text-white" })
|
|
@Html.TextBoxFor(p => p.TitleEN, new { @class = "form-control bg-dark text-white" })
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
@Html.LabelFor(p => p.DescEN, new { @class = "text-white" })
|
|
@Html.TextAreaFor(p => p.DescEN, new { @class = "form-control bg-dark text-white" })
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
<label class="text-white">Project Image</label>
|
|
<input type="file" name="file" class="form-control bg-dark text-white" />
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
@Html.LabelFor(p => p.iframe, new { @class = "text-white" })
|
|
@Html.TextBoxFor(p => p.iframe, new { @class = "form-control bg-dark text-white" })
|
|
</div>
|
|
|
|
<h3 class="mt-3 text-white">Translation (TR)</h3>
|
|
|
|
<div class="mb-3">
|
|
@Html.LabelFor(p => p.TitleTR, new { @class = "text-white" })
|
|
@Html.TextBoxFor(p => p.TitleTR, new { @class = "form-control bg-dark text-white" })
|
|
</div>
|
|
|
|
<div class="mb-3">
|
|
@Html.LabelFor(p => p.DescTR, new { @class = "text-white" })
|
|
@Html.TextAreaFor(p => p.DescTR, new { @class = "form-control bg-dark text-white" })
|
|
</div>
|
|
|
|
<button class="btn btn-success">Save</button>
|
|
} |