фикс макетов страниц

This commit is contained in:
russell 2024-05-01 01:26:52 +04:00
parent 4a5e3ddd9f
commit 8389625a49
9 changed files with 51 additions and 16 deletions

View File

@ -0,0 +1,8 @@
namespace TravelAgencyContracts.ViewModels
{
public class ReportPlaceTourViewModel
{
public string TourName { get; set; } = string.Empty;
public List<string> Places { get; set; } = new();
}
}

View File

@ -0,0 +1,9 @@
namespace TravelAgencyContracts.ViewModels
{
public class ReportTourPeriodViewModel
{
public string TourName { get; set; } = string.Empty;
public List<string> ExcursionGroups { get; set; } = new();
public List<string> Guides { get; set; } = new();
}
}

View File

@ -68,12 +68,12 @@ namespace TravelAgencyWebApp.Controllers
[HttpGet]
public IActionResult CreateExcursion()
{
return View();
return View(new List<TourViewModel>());
}
[HttpGet]
public IActionResult CreateExcursionGroup()
{
return View();
return View(new List<TourViewModel>());
}
[HttpGet]
public IActionResult UpdateTour()
@ -83,12 +83,12 @@ namespace TravelAgencyWebApp.Controllers
[HttpGet]
public IActionResult UpdateExcursion()
{
return View();
return View(new List<TourViewModel>());
}
[HttpGet]
public IActionResult UpdateExcursionGroup()
{
return View();
return View(new List<TourViewModel>());
}
[HttpGet]
public IActionResult ReportMenu()
@ -98,12 +98,12 @@ namespace TravelAgencyWebApp.Controllers
[HttpGet]
public IActionResult ReportPlaceTour()
{
return View();
return View(new List<ReportPlaceTourViewModel>());
}
[HttpGet]
public IActionResult ReportTourPeriod()
{
return View();
return View(new List<ReportTourPeriodViewModel>());
}
}
}

View File

@ -1,4 +1,7 @@
@{
@using TravelAgencyContracts.ViewModels
@model List<TourViewModel>
@{
ViewData["Title"] = "Create excursion";
}
<div class="text-center">
@ -28,7 +31,7 @@
</tr>
</thead>
<tbody>
@foreach (var tour in ViewBag.Tours)
@foreach (var tour in Model)
{
<tr>
<td>@tour.TourName</td>

View File

@ -1,4 +1,7 @@
@{
@using TravelAgencyContracts.ViewModels
@model List<TourViewModel>
@{
ViewData["Title"] = "Create excursion group";
}
<div class="text-center">
@ -30,7 +33,7 @@
</tr>
</thead>
<tbody>
@foreach (var tour in ViewBag.Tours)
@foreach (var tour in Model)
{
<tr>
<td>@tour.TourName</td>

View File

@ -1,4 +1,7 @@
@{
@using TravelAgencyContracts.ViewModels
@model List<ReportPlaceTourViewModel>
@{
ViewData["Title"] = "Places per tour report";
}
<div class="text-center">

View File

@ -1,4 +1,7 @@
@{
@using TravelAgencyContracts.ViewModels
@model List<ReportTourPeriodViewModel>
@{
ViewData["Title"] = "Tours time period report";
}

View File

@ -1,4 +1,7 @@
@{
@using TravelAgencyContracts.ViewModels
@model List<TourViewModel>
@{
ViewData["Title"] = "Update excursion";
}
<div class="text-center">
@ -28,7 +31,7 @@
</tr>
</thead>
<tbody>
@foreach (var tour in ViewBag.Tours)
@foreach (var tour in Model)
{
<tr>
<td>@tour.TourName</td>

View File

@ -1,4 +1,7 @@
@{
@using TravelAgencyContracts.ViewModels
@model List<TourViewModel>
@{
ViewData["Title"] = "Update excursion group";
}
<div class="text-center">
@ -30,7 +33,7 @@
</tr>
</thead>
<tbody>
@foreach (var tour in ViewBag.Tours)
@foreach (var tour in Model)
{
<tr>
<td>@tour.TourName</td>