Add project files.
This commit is contained in:
72
ConstructorAppUI/Views/Footer/Index.cshtml
Normal file
72
ConstructorAppUI/Views/Footer/Index.cshtml
Normal file
@@ -0,0 +1,72 @@
|
||||
@model List<ResultFooterDto>
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
Layout = "~/Views/AdminLayout/Index.cshtml";
|
||||
}
|
||||
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<h4 class="page-title">Ana Sayfa Footer İş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">Logo</th>
|
||||
<th scope="col">Telefon</th>
|
||||
<th scope="col">E-Posta</th>
|
||||
<th scope="col">Facebook</th>
|
||||
<th scope="col">Instagram</th>
|
||||
<th scope="col">Linkedin</th>
|
||||
<th scope="col">Youtube</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>
|
||||
<img width="75" height="75" src="@item.LogoUrl" alt="Görsel" />
|
||||
</td>
|
||||
<td>@item.Phone</td>
|
||||
<td>@item.Mail</td>
|
||||
<td>@item.Facebook</td>
|
||||
<td>@item.Instagram</td>
|
||||
<td>@item.Linkedin</td>
|
||||
<td>@item.Youtube</td>
|
||||
<td>
|
||||
<a href="/Footer/UpdateFooter/@item.FooterID" class="btn btn-outline-success">Güncelle</a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
90
ConstructorAppUI/Views/Footer/UpdateFooter.cshtml
Normal file
90
ConstructorAppUI/Views/Footer/UpdateFooter.cshtml
Normal file
@@ -0,0 +1,90 @@
|
||||
@model UpdateFooterDto
|
||||
@{
|
||||
ViewData["Title"] = "UpdateFooter";
|
||||
Layout = "~/Views/AdminLayout/Index.cshtml";
|
||||
}
|
||||
|
||||
<div class="content">
|
||||
<div class="container-fluid">
|
||||
<h4 class="page-title">Ana Sayfa Footer İşlemleri</h4>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
<div class="card">
|
||||
<div class="card-header">
|
||||
<div class="card-title">Banner Güncelleme</div>
|
||||
</div>
|
||||
<input type="hidden" asp-for="FooterID" />
|
||||
<div class="card-body">
|
||||
<!-- Görsel -->
|
||||
<div class="form-group row">
|
||||
<label for="ImageFile" class="col-md-2 col-form-label">Logo</label>
|
||||
<div class="col-md-10">
|
||||
<input type="file" class="form-control" name="ImageFile" id="ImageFile">
|
||||
@if (!string.IsNullOrEmpty(Model.LogoUrl))
|
||||
{
|
||||
<img src="@Model.LogoUrl" alt="Görsel" class="img-fluid mt-2" style="width: 100px; height: 100px;">
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="Phone" class="col-md-2 col-form-label">Telefon</label>
|
||||
<div class="col-md-10">
|
||||
<input type="tel" class="form-control" asp-for="Phone" id="Phone">
|
||||
<span asp-validation-for="Phone" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="Mail" class="col-md-2 col-form-label">E-Posta</label>
|
||||
<div class="col-md-10">
|
||||
<input type="email" class="form-control" asp-for="Mail" id="Mail">
|
||||
<span asp-validation-for="Mail" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="Facebook" class="col-md-2 col-form-label">Facebook</label>
|
||||
<div class="col-md-10">
|
||||
<input type="url" class="form-control" asp-for="Facebook" id="Facebook">
|
||||
<span asp-validation-for="Facebook" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="Instagram" class="col-md-2 col-form-label">Instagram</label>
|
||||
<div class="col-md-10">
|
||||
<input type="url" class="form-control" asp-for="Instagram" id="Instagram">
|
||||
<span asp-validation-for="Instagram" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="Linkedin" class="col-md-2 col-form-label">Linkedin</label>
|
||||
<div class="col-md-10">
|
||||
<input type="url" class="form-control" asp-for="Linkedin" id="Linkedin">
|
||||
<span asp-validation-for="Linkedin" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group row">
|
||||
<label for="Youtube" class="col-md-2 col-form-label">Youtube</label>
|
||||
<div class="col-md-10">
|
||||
<input type="url" class="form-control" asp-for="Youtube" id="Youtube">
|
||||
<span asp-validation-for="Youtube" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div class="card-action">
|
||||
<button class="btn btn-success">Kaydet</button>
|
||||
<a href="/Footer/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