@{ /****************************************************************************** // 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/software_variants/details/{Id:ulong}" @page "/admin/software_variants/edit/{Id:ulong}" @page "/admin/software_variants/create" @using Marechai.Database @using Marechai.Database.Models @inherits OwningComponentBase @inject IStringLocalizer L @inject SoftwareVersionsService SoftwareVersionsService @inject LicensesService LicensesService @inject NavigationManager NavigationManager @inject IWebHostEnvironment Host @inject IJSRuntime JSRuntime @inject Microsoft.AspNetCore.Identity.UserManager UserManager @inject AuthenticationStateProvider AuthenticationStateProvider @attribute [Authorize(Roles = "UberAdmin, Admin")]

@L["Software variant details"]


@if (!_loaded) {

@L["Loading..."]

return; }
@L["Software version"] @if (_editing || _model.Name != null) { @L["Name, if different from software version name"] @if (_editing) { @L["Unknown (name)"] } @if (!_editing || !_unknownName) { @L["Please enter a valid name."] } } @if (_editing || _model.Version != null) { @L["Version, if different from software version's"] @if (_editing) { @L["Unknown (version)"] } @if (!_editing || !_unknownVersion) { @L["Please enter a valid version."] } } @if (_editing || _model.Introduced != null) { @L["Introduced"] @if (_editing) { @L["Unknown (introduction date)"] } @if (!_editing || !_unknownIntroduced) { @L["Please enter a valid introduction date."] } } @if (_editing || _model.ParentId != null) { @L["Parent"] @if (_editing) { @L["Unknown or none (parent variant)"] } @if (!_editing || !_unknownParent) { } } @if (_editing || _model.MinimumMemory.HasValue) { @L["Minimum memory (bytes)"] @if (_editing) { @L["Unknown (minimum memory)"] } @if (!_editing || !_unknownMinimumMemory) { @L["Please enter the minimum memory size in bytes."] } } @if (_editing || _model.RecommendedMemory.HasValue) { @L["Recommended memory (bytes)"] @if (_editing) { @L["Unknown (recommended memory)"] } @if (!_editing || !_unknownRecommendedMemory) { @L["Please enter the recommended memory size in bytes."] } } @if (_editing || _model.RequiredStorage.HasValue) { @L["Required storage (bytes)"] @if (_editing) { @L["Unknown (required storage)"] } @if (!_editing || !_unknownRequiredStorage) { @L["Please enter the required storage size in bytes."] } } @if (_editing || _model.PartNumber != null) { @L["Part number"] @if (_editing) { @L["Unknown (part number)"] } @if (!_editing || !_unknownPartNumber) { @L["Please enter a valid part number."] } } @if (_editing || _model.SerialNumber != null) { @L["Serial number"] @if (_editing) { @L["Unknown (serial number)"] } @if(_editing) { @L["Serial number is NOT the serial number used to install the software, but a serial number some software manufacturers use as SKU."] } @if (!_editing || !_unknownSerialNumber) { @L["Please enter a valid serial number."] } } @if (_editing || _model.ProductCode != null) { @L["Product code"] @if (_editing) { @L["Unknown (product code)"] } @if (!_editing || !_unknownProductCode) { @L["Please enter a valid product code."] } } @if (_editing || _model.CatalogueNumber != null) { @L["Catalogue number"] @if (_editing) { @L["Unknown (catalogue number)"] } @if (!_editing || !_unknownCatalogueNumber) { @L["Please enter a valid catalogue number."] } } @L["Distribution mode"]
@if (!_editing) { } else { } @L["Back to list"]