CourseWork_KPO/CandidateReviewClientApp/Views/Vacancy/VacancyDetails.cshtml

58 lines
2.3 KiB
Plaintext
Raw Permalink Normal View History

@using Microsoft.AspNetCore.Mvc.TagHelpers
@using CandidateReviewContracts.ViewModels
@model VacancyViewModel
@{
ViewData["Title"] = "Информация о вакансии";
var companyName = APIClient.Company?.Name ?? "Компания не определена";
}
<div class="container mt-5">
<div class="d-flex justify-content-between mb-3">
<div class="card-header">
<h2>@Model.JobTitle</h2>
<input type="hidden" name="id" value="@Model?.Id" />
</div>
<a asp-action="CompanyProfile" asp-controller="Company" class="btn btn-secondary">Назад</a>
</div>
<div class="card">
<div class="card-body">
<div class="row">
<div class="col-md-6">
<dl class="row">
<dt class="col-sm-4">Компания:</dt>
<dd class="col-sm-8">@companyName</dd>
<dt class="col-sm-4">Тип занятости:</dt>
<dd class="col-sm-8">@Model.JobType</dd>
<dt class="col-sm-4">Зарплата:</dt>
<dd class="col-sm-8">@Model.Salary</dd>
<dt class="col-sm-4">Дата публикации:</dt>
<dd class="col-sm-8">@Model.CreatedAt.ToShortDateString()</dd>
<dt class="col-sm-4">Статус:</dt>
<dd class="col-sm-8">@Model.Status</dd>
<dt class="col-sm-4">Теги:</dt>
<dd class="col-sm-8">@Model.Tags</dd>
</dl>
</div>
<div class="col-md-6">
<dl class="row">
<dt class="col-sm-4">Требования:</dt>
<dd class="col-sm-8">@Html.Raw(Model.Requirements)</dd>
<dt class="col-sm-4">Обязанности:</dt>
<dd class="col-sm-8">@Html.Raw(Model.Responsibilities)</dd>
<dt class="col-sm-4">Описание:</dt>
<dd class="col-sm-8">@Html.Raw(Model.Description)</dd>
</dl>
</div>
</div>
</div>
</div>
</div>