This commit is contained in:
@@ -108,18 +108,23 @@ app.customers = (function() {
|
|||||||
var cardDisplay = '<ul class="list-unstyled">';
|
var cardDisplay = '<ul class="list-unstyled">';
|
||||||
|
|
||||||
//Iterate the sites
|
//Iterate the sites
|
||||||
for (var y = 0; y < sites.length; y++) {
|
for (var SitesIndex = 0; SitesIndex < sites.length; SitesIndex++) {
|
||||||
//append the site name
|
//append the site name
|
||||||
cardDisplay +=
|
cardDisplay +=
|
||||||
'<li class="font-weight-bold">' + sites[y].name + "</li>";
|
'<li class="font-weight-bold">' + sites[SitesIndex].name + "</li>";
|
||||||
|
|
||||||
//append the active subs
|
//append the active subs
|
||||||
//purchase link for future
|
//purchase link for future
|
||||||
//https://rockfish.ayanova.com/default.htm#!/purchaseEdit/<PURCHASEID>/<SITEID>
|
//https://rockfish.ayanova.com/default.htm#!/purchaseEdit/<PURCHASEID>/<SITEID>
|
||||||
if (sites[y].children.length > 0) {
|
if (sites[SitesIndex].children.length > 0) {
|
||||||
cardDisplay += '<ul class="mb-2">';
|
cardDisplay += '<ul class="mb-2">';
|
||||||
for (var x = 0; x < sites[y].children.length; x++) {
|
for (var SitePurchasesIndex = 0; SitePurchasesIndex < sites[SitesIndex].children.length; SitePurchasesIndex++) {
|
||||||
cardDisplay += "<li>" + sites[y].children[x].name + "</li>";
|
//<a class="" href="#!/customerEdit/86">Adtech Systems Inc.</a>
|
||||||
|
//cardDisplay += "<li>" + sites[SitesIndex].children[SitePurchasesIndex].name + "</li>";
|
||||||
|
var PurchaseId=sites[SitesIndex].children[SitePurchasesIndex].id;
|
||||||
|
var SiteId=sites[SitesIndex].id;
|
||||||
|
var PurchaseUrl='<a href="#!/purchaseEdit/'+PurchaseId+'/'+SiteId+'">' + sites[SitesIndex].children[SitePurchasesIndex].name + '</a>';
|
||||||
|
cardDisplay += '<li>'+ PurchaseUrl + '</li>';
|
||||||
}
|
}
|
||||||
cardDisplay += "</ul>";
|
cardDisplay += "</ul>";
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user