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

@L["Machine photo details"]


@if(!_loaded) {

@L["Loading..."]

return; }
@L["Machine"] @L["Uploaded by"] ")" /> @L["Uploaded date"] @L["License"] @if(_editing || _model.Author != null) { @L["Author"] @if(_editing) { @L["Unknown (author)"] } @if(!_editing || !_unknownSource) { @L["Please enter a valid author."] } } @if(_editing || _model.Source != null) { @L["Source URL"] @if(_editing) { @L["Unknown (source url)"] } @if(!_editing || !_unknownSource) { @L["Please enter a valid source URL."] } } @if(_editing || _model.Aperture != null) { @L["Aperture"] @if(_editing) { @L["Unknown (aperture)"] } @if(!_editing || !_unknownAperture) { @L["Please enter a valid aperture."] } } @if(_editing || _model.CameraManufacturer != null) { @L["Camera manufacturer"] @if(_editing) { @L["Unknown (camera manufacturer)"] } @if(!_editing || !_unknownCameraManufacturer) { @L["Please enter a valid camera manufacturer."] } } @if(_editing || _model.CameraModel != null) { @L["Camera model"] @if(_editing) { @L["Unknown (camera model)"] } @if(!_editing || !_unknownCameraModel) { @L["Please enter a valid camera model."] } } @if(_editing || _model.ColorSpace != null) { @L["Color space"] @if(_editing) { @L["Unknown (color space)"] } @if(!_editing || !_unknownColorSpace) { } } @if(_editing || _model.Contrast != null) { @L["Contrast"] @if(_editing) { @L["Unknown (contrast)"] } @if(!_editing || !_unknownContrast) { } } @if(_editing || _model.CreationDate != null) { @L["Creation date"] @if(_editing) { @L["Unknown (creation date)"] } @if(!_editing || !_unknownCreationDate) { @L["Please enter a correct creation date."] } } @if(_editing || _model.DigitalZoomRatio != null) { @L["Digital zoom ratio"] @if(_editing) { @L["Unknown (digital zoom ratio)"] } @if(!_editing || !_unknownDigitalZoomRatio) { @L["Please enter a valid digital zoom ratio."] } } @if(_editing || _model.ExifVersion != null) { @L["Exif version"] @if(_editing) { @L["Unknown (exif version)"] } @if(!_editing || !_unknownExifVersion) { @L["Please enter a valid Exif version."] } } @if(_editing || _model.ExposureTime != null) { @L["Exposure time"] @if(_editing) { @L["Unknown (exposure time)"] } @if(!_editing || !_unknownExposure) { @L["Please enter a valid exposure time."] } } @if(_editing || _model.ExposureMethod != null) { @L["Exposure mode"] @if(_editing) { @L["Unknown (exposure mode)"] } @if(!_editing || !_unknownExposureMethod) { } } @if(_editing || _model.ExposureProgram != null) { @L["Exposure program"] @if(_editing) { @L["Unknown (exposure program)"] } @if(!_editing || !_unknownExposureProgram) { } } @if(_editing || _model.Flash != null) { @L["Flash"] @if(_editing) { @L["Unknown (flash)"] } @if(!_editing || !_unknownFlash) { } } @if(_editing || _model.Focal != null) { @L["F-number"] @if(_editing) { @L["Unknown (f-number)"] } @if(!_editing || !_unknownFocal) { @L["Please enter a valid focal number."] } } @if(_editing || _model.FocalLength != null) { @L["Focal length"] @if(_editing) { @L["Unknown (focal length)"] } @if(!_editing || !_unknownFocalLength) { @L["Please enter a valid focal length."] } } @if(_editing || _model.FocalLengthEquivalent != null) { @L["Focal length in 35mm film"] @if(_editing) { @L["Unknown (focal length in 35mm film)"] } @if(!_editing || !_unknownFocalLengthEquivalent) { @L["Please enter a valid focal length in 35mm film."] } } @if(_editing || _model.HorizontalResolution != null) { @L["Horizontal resolution"] @if(_editing) { @L["Unknown (horizontal resolution)"] } @if(!_editing || !_unknownHorizontalResolution) { @L["Please enter a valid horizontal resolution."] } } @if(_editing || _model.IsoRating != null) { @L["ISO rating"] @if(_editing) { @L["Unknown (ISO rating)"] } @if(!_editing || !_unknownIsoRating) { @L["Please enter a valid ISO rating."] } } @if(_editing || _model.Lens != null) { @L["Lens"] @if(_editing) { @L["Unknown (lens)"] } @if(!_editing || !_unknownLens) { @L["Please enter a valid lens."] } } @if(_editing || _model.LightSource != null) { @L["Light source"] @if(_editing) { @L["Unknown (light source)"] } @if(!_editing || !_unknownLightSource) { } } @if(_editing || _model.MeteringMode != null) { @L["Metering mode"] @if(_editing) { @L["Unknown (metering mode)"] } @if(!_editing || !_unknownMeteringMode) { } } @if(_editing || _model.ResolutionUnit != null) { @L["Resolution unit"] @if(_editing) { @L["Unknown (resolution unit)"] } @if(!_editing || !_unknownResolutionUnit) { } } @if(_editing || _model.Orientation != null) { @L["Orientation"] @if(_editing) { @L["Unknown (orientation)"] } @if(!_editing || !_unknownOrientation) { } } @if(_editing || _model.Saturation != null) { @L["Saturation"] @if(_editing) { @L["Unknown (saturation)"] } @if(!_editing || !_unknownSaturation) { } } @if(_editing || _model.SceneCaptureType != null) { @L["Scene capture type"] @if(_editing) { @L["Unknown (scene capture type)"] } @if(!_editing || !_unknownSceneCaptureType) { } } @if(_editing || _model.SensingMethod != null) { @L["Sensing method"] @if(_editing) { @L["Unknown (sensing method)"] } @if(!_editing || !_unknownSensingMethod) { } } @if(_editing || _model.Sharpness != null) { @L["Sharpness"] @if(_editing) { @L["Unknown (sharpness)"] } @if(!_editing || !_unknownSharpness) { } } @if(_editing || _model.SoftwareUsed != null) { @L["Software used"] @if(_editing) { @L["Unknown (software used)"] } @if(!_editing || !_unknownSoftwareUsed) { @L["Please enter a valid software used."] } } @if(_editing || _model.SubjectDistanceRange != null) { @L["Subject distance range"] @if(_editing) { @L["Unknown (subject distance range)"] } @if(!_editing || !_unknownSubjectDistanceRange) { } } @if(_editing || _model.VerticalResolution != null) { @L["Vertical resolution"] @if(_editing) { @L["Unknown (vertical resolution)"] } @if(!_editing || !_unknownVerticalResolution) { @L["Please enter a valid vertical resolution."] } } @if(_editing || _model.WhiteBalance != null) { @L["White balance"] @if(_editing) { @L["Unknown (white balance)"] } @if(!_editing || !_unknownWhiteBalance) { } } @if(_editing || _model.Comments != null) { @L["User comments"] @if(_editing) { @L["Unknown or empty (user comments)"] } @if(!_editing || !_unknownComments) { @L["Please enter valid comments."] } }
@if(!_editing) { } else { } @L["Back to machine"]