84 lines
3.3 KiB
Plaintext

@*
For more information on enabling MVC for empty projects, visit http://go.microsoft.com/fwlink/?LinkID=397860
*@
@using Microsoft.AspNetCore.Mvc.Localization
@using gehGassi.Web.Models
@using Microsoft.Extensions.Localization
@using gehGassi.Web.Helper
@using gehGassi.Core.Services
@model gehGassi.Web.Models.AppUserVm
@inject IViewLocalizer Localizer
@inject ICountryService CountryService
@{
IStringLocalizer annotationsLocalizer = ViewBag.AnnotationsLocalizer;
DogWalkerProfileVm profile = null;
if (ViewBag.Profile != null)
{
profile = ViewBag.Profile as DogWalkerProfileVm;
}
}
<section id="appUserReportShowAppUserContainer">
<div class="form">
<div id="pageTitleAdd" style="display: none;">@ViewData["Title"]</div>
<div class="row mb-2">
<div class="col-sm-2">
<div>
@if (!string.IsNullOrWhiteSpace(Model.Photo))
{
<img src="/file/documents/@Model.Photo" class="img-user-verybig" alt="" />
}
else
{
<img src="/images/icon_user.png" class="img-user-verybig" alt="" />
}
</div>
</div>
<div class="col-sm-10">
<h3>@Model.FirstName @Model.LastName</h3>
<div>@annotationsLocalizer["AppUser_Type"]: <strong>@Model.Type.GetDisplayName(annotationsLocalizer)</strong></div>
<div>@Model.Address.AddressLine1</div>
<div>@Model.Address.AddressLine2</div>
<div>@Model.Address.Zip, @Model.Address.City</div>
<div>@CountryService.GetState(Model.Address.CountryCode, Model.Address.State).Name, @CountryService.GetCountry(Model.Address.CountryCode).Name</div>
</div>
</div>
@if (profile != null)
{
<div class="mb-2 fw-bold">@annotationsLocalizer["DogWalkerProfile_About"]</div>
<div class="row mb-2">
<div class="col-sm-12">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-comment"></i></span>
<textarea class="form-control" rows="5" readonly="readonly">@profile.About</textarea>
</div>
</div>
</div>
<div class="mb-2 fw-bold">@annotationsLocalizer["DogWalkerProfile_NotAvailableInfo"]</div>
<div class="row mb-2">
<div class="col-sm-12">
<div class="input-group">
<span class="input-group-text"><i class="fa fa-fw fa-comment"></i></span>
<textarea class="form-control" rows="5" readonly="readonly">@profile.NotAvailableInfo</textarea>
</div>
</div>
</div>
}
<div class="row button-row">
<div class="col-12">
<div class="">
<button type="button" id="btnClose" class="btn btn-primary">@Localizer["Button_Close"]</button>
</div>
</div>
</div>
</div>
<system-js url="~/scripts/Views/AppUserReport/showAppUser.js" fresh-import="true"></system-js>
</section>