@{ /****************************************************************************** // 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_versions/details/{Id:long}" @page "/admin/software_versions/edit/{Id:long}" @page "/admin/software_versions/create" @using Marechai.Database.Models @inherits OwningComponentBase @inject IStringLocalizer L @inject SoftwareFamiliesService SoftwareFamiliesService @inject LicensesService LicensesService @inject CompaniesService CompaniesService @inject DocumentRolesService DocumentRolesService @inject CompaniesBySoftwareVersionService CompaniesBySoftwareVersionService @inject NavigationManager NavigationManager @inject IWebHostEnvironment Host @inject IJSRuntime JSRuntime @inject UserManager UserManager @inject AuthenticationStateProvider AuthenticationStateProvider @attribute [Authorize(Roles = "UberAdmin, Admin")]

@L["Software version details"]


@if(!_loaded) {

@L["Loading..."]

return; }
@L["Software family"] @L["Version"] @L["Please enter a valid version."] @if(_editing || _model.Name != null) { @L["Name, if different from family name"] @if(_editing) { @L["Unknown (name)"] } @if(!_editing || !_unknownName) { @L["Please enter a valid name."] } } @if(_editing || _model.Codename != null) { @L["Codename"] @if(_editing) { @L["Unknown (codename)"] } @if(!_editing || !_unknownCodename) { @L["Please enter a valid codename."] } } @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.LicenseId != null) { @L["License"] @if(_editing) { @L["Unknown (license)"] } @if(!_editing || !_unknownLicense) { } } @if(_editing || _model.PreviousId != null) { @L["Previous"] @if(_editing) { @L["Unknown or none (previous version)"] } @if(!_editing || !_unknownPrevious) { } }
@if(!_editing) { } else { } @L["Back to list"]
@if(!_editing) {

@L["Companies involved in this software version"]

@if(_addingCompany) {
@L["Company"] @L["Role"]
} @if(_softwareVersionCompanies?.Count > 0) {
@foreach(var item in _softwareVersionCompanies) { }
@L["Company"] @L["Role"]
@item.Company @item.Role
} @_deleteTitle @_deleteText }