Add project files.
This commit is contained in:
54
ConstructorAppUI/Views/HomeBanner/Index.cshtml
Normal file
54
ConstructorAppUI/Views/HomeBanner/Index.cshtml
Normal file
@@ -0,0 +1,54 @@
|
||||
@model List<ResultHomeBannerDto>
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
Layout = "~/Views/AdminLayout/Index.cshtml";
|
||||
}
|
||||
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<h4 class="page-title">Ana Sayfa Banner İşlemleri</h4>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<table class="table table-head-bg-success table-striped table-hover">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Başlık</th>
|
||||
<th scope="col">Alt Başlık</th>
|
||||
<th scope="col">Logo</th>
|
||||
<th scope="col">İşlemler</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@if (Model == null || !Model.Any())
|
||||
{
|
||||
<tr>
|
||||
<td colspan="3">Kayıt bulunamadı.</td>
|
||||
</tr>
|
||||
}
|
||||
else
|
||||
{
|
||||
@foreach (var item in Model)
|
||||
{
|
||||
<tr>
|
||||
<td>@item.Title</td>
|
||||
<td>@item.SubTitle</td>
|
||||
<td>
|
||||
<img width="75" height="75" src="@item.LogoUrl" alt="Görsel1" />
|
||||
</td>
|
||||
<td><a href="/HomeBanner/UpdateHomeBanner/@item.HomeBannerID" class="btn btn-outline-success">Güncelle</a></td>
|
||||
</tr>
|
||||
}
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user