Added the ability to specify the PlanName and PlanDescription of the Add-ons
in the account summary template: <table> <tbody> <ad:if test="#not(isnull(Plans[Space.PlanId]))#"> <ad:if test="#notequals(Addons.Count,0)#"> <tr> <td class="Label">Add-on</td> <td class="Label">Quantity</td> <td class="Label">Purchase Date</td> </tr> <ad:foreach collection="#Addons#" var="Addon" index="j"> <tr> <td>#Addons[j].PlanName#</td> <td>#Addons[j].Quantity#</td> <td>#Addons[j].PurchaseDate#</td> </tr> </ad:foreach> </ad:if> </ad:if> </tbody> </table>
This commit is contained in:
parent
3c3374d8ae
commit
0ba956b582
2 changed files with 30 additions and 0 deletions
|
@ -1952,6 +1952,21 @@ namespace WebsitePanel.EnterpriseServer
|
|||
}
|
||||
items["Plans"] = plans;
|
||||
|
||||
//Add ons
|
||||
Hashtable addOns = new Hashtable();
|
||||
int i = 0;
|
||||
foreach (PackageInfo package in packages)
|
||||
{
|
||||
List<PackageAddonInfo> lstAddOns = ObjectUtils.CreateListFromDataSet<PackageAddonInfo>(GetPackageAddons(package.PackageId));
|
||||
foreach (PackageAddonInfo addOn in lstAddOns)
|
||||
{
|
||||
addOns.Add(i, addOn);
|
||||
i++;
|
||||
}
|
||||
|
||||
}
|
||||
items["Addons"] = addOns;
|
||||
|
||||
// package contexts
|
||||
Hashtable cntxs = new Hashtable();
|
||||
foreach (PackageInfo package in packages)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue