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

@L["Sound synthesizer details"]


@if(!_loaded) {

@L["Loading..."]

return; }
@if(_editing || _model.CompanyId != null) { @L["Company"] @if(_editing) { @L["Unknown (company)"] } @if(!_editing || !_unknownCompany) { } } @L["Name"] @L["Please enter a valid name."] @if(_editing || _model.ModelCode != null) { @L["Model code"] @if(_editing) { @L["Unknown (model code)"] } @if(!_editing || !_unknownModelCode) { @L["Please enter a valid model code."] } } @if(_editing || _model.Introduced.HasValue) { @L["Introduced"] @if(_editing) { @L["Unknown (introduction date)"] @L["Prototype"] } @if(!_editing || !_prototype && !_unknownIntroduced) { @L["Please enter an introduction date."] } } @if(_editing || _model.Voices.HasValue) { @L["Digitized voices"] @if(_editing) { @L["Unknown (voices)"] } @if(!_editing || !_unknownVoices) { @L["Please enter a valid number of voices."] } } @if(_editing || _model.Frequency.HasValue) { @L["Sample rate (Hz)"] @if(_editing) { @L["Unknown (sample rate)"] } @if(!_editing || !_unknownSampleRate) { @L["Please enter a valid sample rate."] } } @if(_editing || _model.Depth.HasValue) { @L["Sample resolution (bits)"] @if(_editing) { @L["Unknown (sample resolution)"] } @if(!_editing || !_unknownSampleResolution) { @L["Please enter a valid number of bits for sample resolution."] } } @if(_editing || _model.SquareWave.HasValue) { @L["Square wave channels"] @if(_editing) { @L["Unknown (square wave channels)"] } @if(!_editing || !_unknownSquareWaveChannels) { @L["Please enter a valid number of square wave channels."] } } @if(_editing || _model.WhiteNoise.HasValue) { @L["White noise channels"] @if(_editing) { @L["Unknown (white noise channels)"] } @if(!_editing || !_unknownWhiteNoiseChannels) { @L["Please enter a valid number of white noise channels."] } } @if(_editing || _model.Type.HasValue) { @L["Type"] @if(_editing) { @L["Unknown (type)"] } @if(!_editing || !_unknownType) { @L["Please enter a valid sound synthesizer type."] } }
@if(!_editing) { } else { } @L["Back to list"]