Add project files.
This commit is contained in:
70
ConstructorAppUI/Views/Service/Index.cshtml
Normal file
70
ConstructorAppUI/Views/Service/Index.cshtml
Normal file
@@ -0,0 +1,70 @@
|
||||
@model List<ResultServiceDto>
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
Layout = "~/Views/AdminLayout/Index.cshtml";
|
||||
int count = 0;
|
||||
}
|
||||
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<h4 class="page-title">Ana Sayfa Hakkımızda İş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">Başlık</th>
|
||||
<th scope="col">Alt Başlık</th>
|
||||
<th scope="col">Durumu</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.Title</td>
|
||||
<td>@item.SubTitle</td>
|
||||
<td>
|
||||
<span class="badge @(item.IsActive? "bg-success text-white" : "bg-secondary text-white")">
|
||||
@(item.IsActive ? "Aktif" : "Pasif")
|
||||
</span>
|
||||
</td>
|
||||
<td>
|
||||
<a href="/Service/UpdateService/@item.ServiceID" class="btn btn-outline-success">Güncelle</a>
|
||||
<a href="/Service/ServiceStatusActive/@item.ServiceID" class="btn btn-outline-info @(item.IsActive == true ? "disabled" : "")">Aktif</a>
|
||||
<a href="/Service/ServiceStatusPassive/@item.ServiceID" class="btn btn-outline-dark @(item.IsActive == false ? "disabled" : "")">Pasif</a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
46
ConstructorAppUI/Views/Service/UpdateService.cshtml
Normal file
46
ConstructorAppUI/Views/Service/UpdateService.cshtml
Normal file
@@ -0,0 +1,46 @@
|
||||
@model UpdateServiceDto
|
||||
@{
|
||||
ViewData["Title"] = "UpdateService";
|
||||
Layout = "~/Views/AdminLayout/Index.cshtml";
|
||||
}
|
||||
|
||||
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<h4 class="page-title">Ana Sayfa Hakkımızda İşlemleri</h4>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<form method="post">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<div class="card-title">Hizmet Güncelleme</div>
|
||||
</div>
|
||||
<input type="hidden" asp-for="ServiceID" />
|
||||
<input type="hidden" asp-for="IsActive" />
|
||||
<div class="card-body">
|
||||
<div class="form-group row">
|
||||
<label for="Title" class="col-md-2 col-form-label">Başlık</label>
|
||||
<div class="col-md-10">
|
||||
<input type="text" class="form-control" asp-for="Title" id="Title">
|
||||
<span asp-validation-for="Title" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="SubTitle" class="col-md-2 col-form-label">Alt Başlık</label>
|
||||
<div class="col-md-10">
|
||||
<input type="text" class="form-control" asp-for="SubTitle" id="SubTitle">
|
||||
<span asp-validation-for="SubTitle" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="card-action">
|
||||
<button class="btn btn-success">Kaydet</button>
|
||||
<a href="/Service/Index/" class="btn btn-warning ml-2">Listeye Dön</a>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user