52 lines
2.5 KiB
Plaintext
52 lines
2.5 KiB
Plaintext
@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">
|
|
<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="Аватар пользователя">
|
|
<div class="card-body text-center">
|
|
<h5 class="card-title mb-0">
|
|
@Model?.Name @(string.IsNullOrEmpty(@Model?.Surname) ? "" : @Model?.Surname) @(string.IsNullOrEmpty(@Model?.LastName) ? "" : @Model?.LastName)
|
|
</h5>
|
|
<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>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="col-md-8">
|
|
<div class="card">
|
|
<div class="card-header">
|
|
<h2>Мои резюме</h2>
|
|
</div>
|
|
<div class="card-body">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|