From 9fe74c9617a25f6b1fd2fd54a7444bfdc5a72ca8 Mon Sep 17 00:00:00 2001 From: Matthieu Leproux Date: Tue, 4 Oct 2022 11:36:56 +0200 Subject: [PATCH] fixed #1742 added default case for history lines and contact form case --- admin/themes/clear/theme.css | 5 +++++ admin/themes/default/js/history.js | 12 ++++++++++-- admin/themes/default/template/history.tpl | 1 + admin/themes/roma/theme.css | 5 +++++ 4 files changed, 21 insertions(+), 2 deletions(-) diff --git a/admin/themes/clear/theme.css b/admin/themes/clear/theme.css index 1c383ec26..b304f699b 100644 --- a/admin/themes/clear/theme.css +++ b/admin/themes/clear/theme.css @@ -777,6 +777,11 @@ li.plupload_delete a:hover {background: url("images/cancelhover.svg")!important; color: #6ece5e; } +.icon-grey { + color: #444; + background-color: #ddd; +} + .applicationCard { box-shadow: 0px 0px 4px 4px #DBDBDB; } diff --git a/admin/themes/default/js/history.js b/admin/themes/default/js/history.js index c7a0d3b08..f15fa4c18 100644 --- a/admin/themes/default/js/history.js +++ b/admin/themes/default/js/history.js @@ -370,8 +370,16 @@ function lineConstructor(line, id, imageDisplay) { newLine.find(".type-name").html(str_memories); newLine.find(".type-id").remove(); break; + case "contact": + newLine.find(".type-icon i").addClass("line-icon icon-puzzle icon-yellow"); + newLine.find(".type-name").html(str_contact_form); + newLine.find(".type-id").remove(); + break; default: - break; + newLine.find(".type-icon i").addClass("line-icon icon-help-circled icon-grey"); + newLine.find(".type-name").html(line.SECTION); + newLine.find(".type-id").remove(); + break; } if (line.IMAGE != "") { @@ -386,7 +394,7 @@ function lineConstructor(line, id, imageDisplay) { var lineIconClass = icons[sections.indexOf(line.SECTION)]; newLine.find(".type-icon i").addClass(lineIconClass) } else { - console.log("ERROR ON THIS : " + line.SECTION); + console.log("Unhandled section : " + line.SECTION); } } diff --git a/admin/themes/default/template/history.tpl b/admin/themes/default/template/history.tpl index de6752429..9de626455 100644 --- a/admin/themes/default/template/history.tpl +++ b/admin/themes/default/template/history.tpl @@ -44,6 +44,7 @@ const str_memories = "{'Memories'|translate}"; const str_no_longer_exist_photo = "{'This photo no longer exists'|@translate}"; const unit_MB = "{"%s MB"|@translate}"; const str_guest = '{'guest'|@translate}'; +const str_contact_form = '{'Contact Form'|@translate}'; const guest_id = {$guest_id}; {/footer_script} diff --git a/admin/themes/roma/theme.css b/admin/themes/roma/theme.css index 8f9eb4f43..063e7dbee 100644 --- a/admin/themes/roma/theme.css +++ b/admin/themes/roma/theme.css @@ -1248,6 +1248,11 @@ li.plupload_delete a:hover {background: url("images/cancelhover.svg")!important; color: #4ac641; } +.icon-grey { + color: #ccc; + border: 2px solid #ccc; +} + .themeBox{ box-shadow: 0 0 5px #333;