fixed #1742 added default case for history lines and contact form case

This commit is contained in:
Matthieu Leproux
2022-10-04 11:36:56 +02:00
parent 38105aff23
commit 9fe74c9617
4 changed files with 21 additions and 2 deletions
+5
View File
@@ -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;
}
+10 -2
View File
@@ -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);
}
}
@@ -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}
+5
View File
@@ -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;