From 7337cc6b141933f7b85f6e4928c6a88b73c3cbba Mon Sep 17 00:00:00 2001 From: BonfaceKilz Date: Mon, 25 Oct 2021 12:12:11 +0300 Subject: change_resource_owner.html: Replace "the_html" with searchResultHtml --- .../templates/admin/change_resource_owner.html | 36 +++++++++++----------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/wqflask/wqflask/templates/admin/change_resource_owner.html b/wqflask/wqflask/templates/admin/change_resource_owner.html index 951df207..74ee1e45 100644 --- a/wqflask/wqflask/templates/admin/change_resource_owner.html +++ b/wqflask/wqflask/templates/admin/change_resource_owner.html @@ -68,40 +68,40 @@ populate_users = function(json_user_list){ let user_list = JSON.parse(json_user_list) - let the_html = "" + let searchResultsHtml = "" if (user_list.length > 0){ - the_html += "
Index | Name | E-mail Address | Organization |
---|
Index | Name | E-mail Address | Organization | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
"; - the_html += " | " + (_i + 1).toString() + " | " + searchResultsHtml += "||||||||||||
"; + searchResultsHtml += " | " + (_i + 1).toString() + " | " if ("full_name" in this_user) { - the_html += "" + this_user.full_name + " | "; + searchResultsHtml += "" + this_user.full_name + " | "; } else { - the_html += "N/A | " + searchResultsHtml += "N/A | " } if ("email_address" in this_user) { - the_html += "" + this_user.email_address + " | "; + searchResultsHtml += "" + this_user.email_address + " | "; } else { - the_html += "N/A | " + searchResultsHtml += "N/A | " } if ("organization" in this_user) { - the_html += "" + this_user.organization + " | "; + searchResultsHtml += "" + this_user.organization + " | "; } else { - the_html += "N/A | " + searchResultsHtml += "N/A | " } - the_html += "