118 lines
4.1 KiB
Text
118 lines
4.1 KiB
Text
@model BannerViewModel
|
|
|
|
@{
|
|
ViewData["Title"] = "Delete";
|
|
}
|
|
|
|
|
|
<div class="container mt-4">
|
|
<div class="card justify-content-center">
|
|
<div class="card-body">
|
|
<h5 class="card-title">Delete banner</h5>
|
|
<h6 class="text-danger">Are you sure you want to delete the <span class="badge bg-danger">@Model.Title</span></h6>
|
|
|
|
<div class="row ">
|
|
<!-- 12 columns for textboxes -->
|
|
|
|
<form asp-action="Delete">
|
|
<div asp-validation-summary="All" class="text-danger"></div>
|
|
|
|
<div class="mb-3 col-12">
|
|
<label asp-for="Title" class="control-label"></label>
|
|
<input asp-for="Title" class="form-control" disabled/>
|
|
<span asp-validation-for="Title" class="text-danger"></span>
|
|
</div>
|
|
<div class="mb-3 col-12">
|
|
<label asp-for="Description" class="control-label"></label>
|
|
<input asp-for="Description" class="form-control" disabled />
|
|
<span asp-validation-for="Description" class="text-danger"></span>
|
|
</div>
|
|
<div class="mb-3 col-12">
|
|
<label asp-for="Content" class="control-label"></label>
|
|
<textarea asp-for="Content" disabled></textarea>
|
|
<span asp-validation-for="Content" class="text-danger"></span>
|
|
</div>
|
|
<div class="mb-3 col-12">
|
|
<label asp-for="LinkUrl" class="control-label"></label>
|
|
<input asp-for="LinkUrl" class="form-control" disabled />
|
|
<span asp-validation-for="LinkUrl" class="text-danger"></span>
|
|
</div>
|
|
<div class="mb-3 col-12">
|
|
<label asp-for="ImageUrl" class="control-label"></label>
|
|
<input asp-for="ImageUrl" class="form-control" disabled />
|
|
<span asp-validation-for="ImageUrl" class="text-danger"></span>
|
|
</div>
|
|
<div class="mb-3">
|
|
<input type="submit" value="Delete" class="btn btn-outline-primary" /> | <a asp-action="Index" class="btn btn-primary">Back to list</a>
|
|
</div>
|
|
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
@section Scripts {
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/ckeditor/4.11.4/ckeditor.js"></script>
|
|
<script>
|
|
CKEDITOR.replace("Content");
|
|
</script>
|
|
@{
|
|
<partial name="_ValidationScriptsPartial" />
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@* <div>
|
|
|
|
<hr />
|
|
<dl class="row">
|
|
<dt class = "col-sm-2">
|
|
@Html.DisplayNameFor(model => model.Id)
|
|
</dt>
|
|
<dd class = "col-sm-10">
|
|
@Html.DisplayFor(model => model.Id)
|
|
</dd>
|
|
<dt class = "col-sm-2">
|
|
@Html.DisplayNameFor(model => model.Title)
|
|
</dt>
|
|
<dd class = "col-sm-10">
|
|
@Html.DisplayFor(model => model.Title)
|
|
</dd>
|
|
<dt class = "col-sm-2">
|
|
@Html.DisplayNameFor(model => model.Description)
|
|
</dt>
|
|
<dd class = "col-sm-10">
|
|
@Html.DisplayFor(model => model.Description)
|
|
</dd>
|
|
<dt class = "col-sm-2">
|
|
@Html.DisplayNameFor(model => model.Content)
|
|
</dt>
|
|
<dd class = "col-sm-10">
|
|
@Html.DisplayFor(model => model.Content)
|
|
</dd>
|
|
<dt class = "col-sm-2">
|
|
@Html.DisplayNameFor(model => model.LinkUrl)
|
|
</dt>
|
|
<dd class = "col-sm-10">
|
|
@Html.DisplayFor(model => model.LinkUrl)
|
|
</dd>
|
|
<dt class = "col-sm-2">
|
|
@Html.DisplayNameFor(model => model.ImageUrl)
|
|
</dt>
|
|
<dd class = "col-sm-10">
|
|
@Html.DisplayFor(model => model.ImageUrl)
|
|
</dd>
|
|
</dl>
|
|
|
|
<form asp-action="Delete">
|
|
<input type="submit" value="Delete" class="btn btn-danger" /> |
|
|
<a asp-action="Index">Back to List</a>
|
|
</form>
|
|
</div> *@
|