Add project files.
This commit is contained in:
60
ConstructorAppUI/Views/ContactUs/Index.cshtml
Normal file
60
ConstructorAppUI/Views/ContactUs/Index.cshtml
Normal file
@@ -0,0 +1,60 @@
|
||||
@model List<ResultContactUsDto>
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
Layout = "~/Views/AdminLayout/Index.cshtml";
|
||||
int count = 0;
|
||||
}
|
||||
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<h4 class="page-title">İletişim İş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">#</th>
|
||||
<th scope="col">Tarih</th>
|
||||
<th scope="col">Gönderen</th>
|
||||
<th scope="col">E-Posta</th>
|
||||
<th scope="col">Telefon</th>
|
||||
<th scope="col">Mesaj</th>
|
||||
<th scope="col">Durum</th>
|
||||
<th scope="col">İşlemler</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@foreach (var item in Model)
|
||||
{
|
||||
count++;
|
||||
<tr>
|
||||
<th>@count</th>
|
||||
<td>@item.Date</td>
|
||||
<td>@item.NameSurname</td>
|
||||
<td>@item.Mail</td>
|
||||
<td>@item.Phone</td>
|
||||
<td>@item.MessageContent</td>
|
||||
<td>
|
||||
<span class="badge @(item.Status ? "bg-success text-white" : "bg-secondary text-white")">
|
||||
@(item.Status ? "Okundu" : "Okunmadı")
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<a href="/ContactUs/MarkAsRead/@item.ContactusID" class="btn btn-outline-info @(item.Status ? "disabled" : "")">Okundu</a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user