2024-11-18 23:37:50 +04:00
|
|
|
@using CandidateReviewContracts.ViewModels
|
|
|
|
@model UserViewModel
|
|
|
|
|
|
|
|
@{
|
|
|
|
ViewData["Title"] = "Профиль пользователя";
|
|
|
|
}
|
|
|
|
|
|
|
|
<div class="container mt-5">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-4 mb-4">
|
|
|
|
<div class="card">
|
2024-11-23 21:39:18 +04:00
|
|
|
<img src="@(Model.AvatarFilePath ?? "https://cdn-icons-png.flaticon.com/512/18/18601.png")" style="max-width: 150px; max-height: 150px;" class="card-img-top img-fluid rounded-circle mx-auto d-block" alt="Аватар пользователя">
|
2024-11-18 23:37:50 +04:00
|
|
|
<div class="card-body text-center">
|
|
|
|
<h5 class="card-title mb-0">
|
2024-11-19 16:45:59 +04:00
|
|
|
@Model?.Name @(string.IsNullOrEmpty(@Model?.Surname) ? "" : @Model?.Surname) @(string.IsNullOrEmpty(@Model?.LastName) ? "" : @Model?.LastName)
|
2024-11-18 23:37:50 +04:00
|
|
|
</h5>
|
2024-11-19 16:45:59 +04:00
|
|
|
<dl class="row mt-3">
|
|
|
|
<dt class="col-sm-4">Email:</dt>
|
|
|
|
<dd class="col-sm-8">@Model?.Email</dd>
|
|
|
|
@if (!string.IsNullOrEmpty(@Model?.PhoneNumber))
|
|
|
|
{
|
|
|
|
<dt class="col-sm-4">Телефон:</dt>
|
|
|
|
<dd class="col-sm-8">@Model?.PhoneNumber</dd>
|
|
|
|
}
|
|
|
|
<dt class="col-sm-4">Роль:</dt>
|
|
|
|
<dd class="col-sm-8">@Model?.Role</dd>
|
|
|
|
</dl>
|
|
|
|
<div class="btn-group mt-3" role="group" aria-label="Действия">
|
|
|
|
<a asp-action="UserProfileEdit" asp-controller="User" asp-route-id="@Model?.Id" class="btn btn-primary">Редактировать профиль</a>
|
|
|
|
<form asp-action="Delete" asp-controller="User" method="post" onsubmit="return confirm('Вы уверены, что хотите удалить профиль?');">
|
|
|
|
<input type="hidden" name="id" value="@Model?.Id" />
|
|
|
|
<button type="submit" class="btn btn-danger">Удалить профиль</button>
|
|
|
|
</form>
|
|
|
|
<a asp-action="Logout" asp-controller="User" class="btn btn-secondary">Выйти</a>
|
|
|
|
</div>
|
2024-11-18 23:37:50 +04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-11-19 16:45:59 +04:00
|
|
|
|
2024-11-18 23:37:50 +04:00
|
|
|
<div class="col-md-8">
|
|
|
|
<div class="card">
|
|
|
|
<div class="card-header">
|
2024-11-19 16:45:59 +04:00
|
|
|
<h2>Мои резюме</h2>
|
2024-11-18 23:37:50 +04:00
|
|
|
</div>
|
|
|
|
<div class="card-body">
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|