diff --git a/DXApp.TemplateKitProject/Pages/Invoices/Details.cshtml b/DXApp.TemplateKitProject/Pages/Invoices/Details.cshtml index 5fe836e..912064c 100644 --- a/DXApp.TemplateKitProject/Pages/Invoices/Details.cshtml +++ b/DXApp.TemplateKitProject/Pages/Invoices/Details.cshtml @@ -75,9 +75,9 @@ else _ => "📎" }; - + onclick="openAttachmentViewer('@attachment.OriginalFileName', '@Uri.EscapeDataString(attachment.SavedFilePath)', '@extension')">
@icon @attachment.OriginalFileName @@ -115,6 +115,20 @@ else return ''; }")) ) + +@(Html.DevExtreme().Popup() + .ID("attachment-viewer-popup") + .Title("Anhang") + .Width("90%") + .Height("90%") + .ShowCloseButton(true) + .OnHiding("onAttachmentPopupHiding") + .Shading(true) + .ShadingColor("rgba(0, 0, 0, 0.5)") + .ContentTemplate(new JS(@"function() { + return '
'; + }")) +) }