From 94e8357b2aae365cfae571f46ed087323a5a87d7 Mon Sep 17 00:00:00 2001 From: Koen Reefman Date: Fri, 9 Feb 2018 16:41:45 +0000 Subject: [PATCH] FCLT#52167 Plaatje bij objectgegevens juist uitgelijnd svn path=/Website/trunk/; revision=36919 --- APPL/INS/ins_show_deel.asp | 27 ++++++++++++++++----------- APPL/Shared/default.csx | 16 ++++++++++++++++ 2 files changed, 32 insertions(+), 11 deletions(-) diff --git a/APPL/INS/ins_show_deel.asp b/APPL/INS/ins_show_deel.asp index 1f88fd02e7..cb232e1c5f 100644 --- a/APPL/INS/ins_show_deel.asp +++ b/APPL/INS/ins_show_deel.asp @@ -325,9 +325,17 @@ oRs.Close(); { %>
<%=L("lcl_record_is_deleted")%>
<% } + var hasImage = false; + if (srtdeel_image) + { + var imageFile = S("ins_image_path") + srtdeel_image; + var fso = new ActiveXObject("Scripting.FileSystemObject"); + if (fso.FileExists(Server.MapPath(imageFile))) + hasImage = true; + } %>
-<% BLOCK_START("insIns", L("lcl_general_properties")); %> +<% BLOCK_START((hasImage ? "insInsImg" : "insIns"), L("lcl_general_properties")); %> @@ -352,20 +360,17 @@ oRs.Close();
-
-<% if (srtdeel_image) - { - var imageFile = S("ins_image_path") + srtdeel_image; - var fso = new ActiveXObject("Scripting.FileSystemObject"); - if (fso.FileExists(Server.MapPath(imageFile))) - { %> - -<% } +
+<% + if (hasImage) + { %> + +<% } %>
<% BLOCK_END(); - BLOCK_START("insGeo", L("lcl_ins_meta_data")); + BLOCK_START((hasImage ? "insGeoImg" : "insGeo"), L("lcl_ins_meta_data")); ROFIELDTR("flddatetime", L("lcl_last_action"), toDateTimeString(aanmaak)); // Link naar de state_history diff --git a/APPL/Shared/default.csx b/APPL/Shared/default.csx index 6e141130ca..159dc00bfc 100644 --- a/APPL/Shared/default.csx +++ b/APPL/Shared/default.csx @@ -2339,6 +2339,7 @@ div#statusboxes { #finInvPartInfo, #insFlex, #insIns, + #insInsImg, #jobJob, #kpnMan, #menuStd, @@ -2374,6 +2375,7 @@ div#statusboxes { #finRefInfo, #finFlex, #insGeo, + #insGeoImg, #menuCust, #mldFlex, #mldInfo, @@ -2517,6 +2519,20 @@ div#statusboxes { } } +@media all and (min-width: 63em) { + #insInsImg + { + clear: left; + float: left; + width: 49%; + } + #insGeoImg + { + clear: right; + float: right; + width: 49%; + } +} #algFlex2, #besFlex2,