@{ /****************************************************************************** // MARECHAI: Master repository of computing history artifacts information // ---------------------------------------------------------------------------- // // Author(s) : Natalia Portillo // // --[ License ] -------------------------------------------------------------- // // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as // published by the Free Software Foundation, either version 3 of the // License, or (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the // GNU General Public License for more details. // // You should have received a copy of the GNU General Public License // along with this program. If not, see . // // ---------------------------------------------------------------------------- // Copyright © 2003-2020 Natalia Portillo *******************************************************************************/ } @page "/admin/people/details/{Id:int}" @page "/admin/people/edit/{Id:int}" @page "/admin/people/create" @using Marechai.Database.Models @inherits OwningComponentBase @inject IStringLocalizer L @inject Iso31661NumericService CountriesService @inject NavigationManager NavigationManager @inject UserManager UserManager @inject AuthenticationStateProvider AuthenticationStateProvider @attribute [Authorize(Roles = "UberAdmin, Admin")]

@L["Person details"]


@if(!_loaded) {

@L["Loading..."]

return; }
@if(_editing || _model.Name != null) { @L["Name"] @if(_editing) { @L["Unknown (name)"] } @if(!_editing || !_unknownName) { @L["Please enter a valid name."] } } @if(_editing || _model.Surname != null) { @L["Surname"] @if(_editing) { @L["Unknown (surname)"] } @if(!_editing || !_unknownSurname) { @L["Please enter a valid surname."] } } @if(_editing || _model.Alias != null) { @L["Alias"] @if(_editing) { @L["Unknown (alias)"] } @if(!_editing || !_unknownAlias) { @L["Please enter a valid alias."] } } @if(_editing || _model.DisplayName != null) { @L["Display name"] @if(_editing) { @L["Unknown (display name)"] } @if(!_editing || !_unknownDisplayName) { @L["Please enter a valid display name."] } } @if(_editing || _model.CountryOfBirthId != null) { @L["Country of birth"] @if(_editing) { @L["Unknown (country of birth)"] } @if(!_editing || !_unknownCountry) { } } @L["Birth date"] @L["Please enter a valid birth date."] @if(_editing || _model.DeathDate != null) { @L["Date of death"] @if(_editing) { @L["Unknown (death date)"] } @if(!_editing || !_unknownDeathDate) { @L["Please enter a valid death date."] } } @if(_editing || _model.Webpage != null) { @L["Webpage"] @if(_editing) { @L["Unknown (webpage)"] } @if(!_editing || !_unknownWebpage) { @L["Please enter a valid webpage."] } } @if(_editing || _model.Twitter != null) { @L["Twitter"] @if(_editing) { @L["Unknown (twitter)"] } @if(!_editing || !_unknownTwitter) { @L["Please enter a valid Twitter handle."] } } @if(_editing || _model.Facebook != null) { @L["Facebook"] @if(_editing) { @L["Unknown (facebook)"] } @if(!_editing || !_unknownFacebook) { @L["Please enter a valid Facebook user name."] } }
@if(!_editing) { } else { } @L["Back to list"]