40 lines
1.3 KiB
Plaintext
40 lines
1.3 KiB
Plaintext
|
@* @using CandidateReviewContracts.ViewModels
|
||
|
@model VacancyViewModel
|
||
|
|
||
|
@{
|
||
|
ViewData["Title"] = "Поиск вакансий";
|
||
|
}
|
||
|
|
||
|
<div class="container mt-5">
|
||
|
<div class="row justify-content-center">
|
||
|
<div class="col-md-6">
|
||
|
<h1>Поиск вакансий</h1>
|
||
|
<form asp-action="Search" asp-controller="Vacancy" method="get">
|
||
|
<div class="input-group mb-3">
|
||
|
<input type="text" class="form-control" name="searchTerm" placeholder="Введите поисковый запрос" value="@Model?.SearchTerm">
|
||
|
<button class="btn btn-primary" type="submit">Поиск</button>
|
||
|
</div>
|
||
|
</form>
|
||
|
|
||
|
@if (@Model != null && @Model.Vacancies != null)
|
||
|
{
|
||
|
<h2>Результаты поиска:</h2>
|
||
|
@if (Model.Vacancies.Count > 0)
|
||
|
{
|
||
|
<ul>
|
||
|
@foreach (var vacancy in Model.Vacancies)
|
||
|
{
|
||
|
<li>@vacancy.JobTitle</li>
|
||
|
}
|
||
|
</ul>
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
<p>Вакансий не найдено.</p>
|
||
|
}
|
||
|
}
|
||
|
</div>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
*@
|