фикс макетов страниц
This commit is contained in:
parent
4a5e3ddd9f
commit
8389625a49
@ -0,0 +1,8 @@
|
||||
namespace TravelAgencyContracts.ViewModels
|
||||
{
|
||||
public class ReportPlaceTourViewModel
|
||||
{
|
||||
public string TourName { get; set; } = string.Empty;
|
||||
public List<string> Places { get; set; } = new();
|
||||
}
|
||||
}
|
@ -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();
|
||||
}
|
||||
}
|
@ -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>());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -1,4 +1,7 @@
|
||||
@{
|
||||
@using TravelAgencyContracts.ViewModels
|
||||
|
||||
@model List<ReportPlaceTourViewModel>
|
||||
@{
|
||||
ViewData["Title"] = "Places per tour report";
|
||||
}
|
||||
<div class="text-center">
|
||||
|
@ -1,4 +1,7 @@
|
||||
@{
|
||||
@using TravelAgencyContracts.ViewModels
|
||||
|
||||
@model List<ReportTourPeriodViewModel>
|
||||
@{
|
||||
ViewData["Title"] = "Tours time period report";
|
||||
}
|
||||
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user