';
+
+ if(termin.EmployeeList.length > 0) {
+ html += '
M: ';
+
+ $.each(termin.EmployeeList, function(index, employee) {
+ html += employee.Employee.LastName + ", " + employee.Employee.FirstName;
+
+ if(index !== termin.EmployeeList.length - 1) {
+ html += "; ";
+ }
+ });
+
+ html += "
";
+ }
+
+ if(termin.CustomerList.length > 0) {
+ html += '
K: ';
+
+ $.each(termin.CustomerList, function(index, customer) {
+ html += customer.LastName + ", " + customer.FirstName;
+
+ if(index !== termin.CustomerList.length - 1) {
+ html += "; ";
+ }
+ });
+
+ html += "
";
+ }
+
+ if(termin.ResourceList.length > 0) {
+ html += '
R: ';
+
+ $.each(termin.ResourceList, function(index, resource) {
+ html += resource.Name;
+
+ if(index !== termin.ResourceList.length - 1) {
+ html += ", ";
+ }
+ });
+
+ html += "
";
+ }
+
+ if(termin.EmployeeList.length > 0 || termin.CustomerList.length > 0 || termin.ResourceList.length > 0) {
+ html += '
';
+ }
+
+ html += description + '