@{ /****************************************************************************** // 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/screens/details/{Id:int}" @page "/admin/screens/edit/{Id:int}" @page "/admin/screens/create" @using Marechai.Database.Models @inherits OwningComponentBase @inject IStringLocalizer L @inject ResolutionsService ResolutionsService @inject NavigationManager NavigationManager @inject ResolutionsByScreenService ResolutionsByScreenService @inject UserManager UserManager @inject AuthenticationStateProvider AuthenticationStateProvider @attribute [Authorize(Roles = "UberAdmin, Admin")]

@L["Screen details"]


@if(!_loaded) {

@L["Loading..."]

return; }
@if(_editing || _model.Width.HasValue) { @L["Width (mm)"] @if(_editing) { @L["Unknown (width)"] } @if(!_editing || !_unknownWidth) { @L["Please enter a valid width in millimeters."] } } @if(_editing || _model.Height.HasValue) { @L["Height (mm)"] @if(_editing) { @L["Unknown (height)"] } @if(!_editing || !_unknownHeight) { @L["Please enter a valid height in millimeters."] } } @L["Diagonal (inches)"] @L["Please enter a correct diagonal size in inches."] @if(_editing || _model.EffectiveColors.HasValue) { @L["Effective colors"] @if(_editing) { @L["Unknown (effective colors)"] } @if(!_editing || !_unknownColors) { @L["Please enter a number of effective colors."] } } @if(_editing || _model.Type != null) { @L["Type"] @if(_editing) { @L["Unknown (type)"] } @if(!_editing || !_unknownType) { @L["Please enter a valid screen type."] } } @L["Native resolution"]
@if(!_editing) { } else { } @L["Back to list"]
@if(!_editing) {

@L["Resolutions supported by this screen"]

@if(_addingResolution) {
@L["Resolutions"]
} @if(_screenResolutions?.Count > 0) {
@foreach(var item in _screenResolutions) { }
@L["Width"] @L["Height"] @L["Colors"] @L["Palette"] @L["Chars"] @L["Grayscale"]
@item.Resolution.Width @item.Resolution.Height @item.Resolution.Colors @item.Resolution.Palette @item.Resolution.Chars @item.Resolution.Grayscale
} @_deleteTitle @_deleteText }