Add project files.
This commit is contained in:
73
ConstructorAppUI/Views/WorkProcess/Index.cshtml
Normal file
73
ConstructorAppUI/Views/WorkProcess/Index.cshtml
Normal file
@@ -0,0 +1,73 @@
|
||||
@model List<ResultWorkProcessDto>
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
Layout = "~/Views/AdminLayout/Index.cshtml";
|
||||
int count = 0;
|
||||
}
|
||||
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<h4 class="page-title">Ana Sayfa Çalışma Şeklimiz İş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">Kısa Açıklama</th>
|
||||
<th scope="col">Başlık</th>
|
||||
<th scope="col">Uzun Açıklama</th>
|
||||
<th scope="col">Görsel</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)
|
||||
{
|
||||
count++;
|
||||
<tr>
|
||||
<td>@count</td>
|
||||
<td>@item.Info</td>
|
||||
<td>@item.Title</td>
|
||||
<td>@item.SubTitle</td>
|
||||
<td>
|
||||
<img width="75" height="75" src="@item.ImageUrl" alt="Görsel" />
|
||||
</td>
|
||||
<td>
|
||||
<span class="badge @(item.IsActive? "bg-success text-white" : "bg-secondary text-white")">
|
||||
@(item.IsActive ? "Aktif" : "Pasif")
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<a href="/WorkProcess/UpdateWorkProcess/@item.WorkProcessID" class="btn btn-outline-success">Güncelle</a>
|
||||
<a href="/WorkProcess/ServiceStatusActive/@item.WorkProcessID" class="btn btn-outline-info @(item.IsActive == true ? "disabled" : "")">Aktif</a>
|
||||
<a href="/WorkProcess/ServiceStatusPassive/@item.WorkProcessID" class="btn btn-outline-dark @(item.IsActive == false ? "disabled" : "")">Pasif</a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user