59 lines
2.4 KiB
Plaintext
59 lines
2.4 KiB
Plaintext
|
@using CandidateReviewContracts.ViewModels
|
|||
|
@model CompanyViewModel
|
|||
|
|
|||
|
@{
|
|||
|
ViewData["Title"] = "Профиль компании";
|
|||
|
}
|
|||
|
|
|||
|
<div class="container mt-5">
|
|||
|
<div class="row g-4">
|
|||
|
<div class="col-md-4">
|
|||
|
<div class="card">
|
|||
|
@if (!string.IsNullOrEmpty(Model.LogoFilePath))
|
|||
|
{
|
|||
|
<img src="@Model.LogoFilePath" class="card-img-top img-fluid" alt="Логотип компании">
|
|||
|
}
|
|||
|
<div class="card-body">
|
|||
|
<h5 class="card-title">@Model.Name</h5>
|
|||
|
<p class="card-text text-truncate" style="max-height: 100px; overflow: hidden;">@Model.Description</p>
|
|||
|
<a href="@Model.Website" target="_blank" class="btn btn-primary mt-2">@Model.Website</a>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="col-md-8">
|
|||
|
<div class="card">
|
|||
|
<div class="card-header">
|
|||
|
<h2>Информация о компании</h2>
|
|||
|
<a asp-action="EditCompanyProfile" asp-controller="Company" asp-route-id="@Model.Id" class="btn btn-primary float-end">Редактировать</a>
|
|||
|
</div>
|
|||
|
<div class="card-body">
|
|||
|
<table class="table table-borderless">
|
|||
|
<tbody>
|
|||
|
<tr>
|
|||
|
<th>Название</th>
|
|||
|
<td>@Model.Name</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<th>Описание</th>
|
|||
|
<td>@Model.Description</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<th>Официальный сайт</th>
|
|||
|
<td><a href="@Model.Website" target="_blank">@Model.Website</a></td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<th>Адрес</th>
|
|||
|
<td>@Model.Address</td>
|
|||
|
</tr>
|
|||
|
<tr>
|
|||
|
<th>Контакты</th>
|
|||
|
<td>@Model.Contacts</td>
|
|||
|
</tr>
|
|||
|
</tbody>
|
|||
|
</table>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|