diff --git a/Site/Pages/v5/Ledgers/EndOfMonth.aspx b/Site/Pages/v5/Ledgers/EndOfMonth.aspx index a4ecd638..6c88694b 100644 --- a/Site/Pages/v5/Ledgers/EndOfMonth.aspx +++ b/Site/Pages/v5/Ledgers/EndOfMonth.aspx @@ -15,6 +15,7 @@ // set action icons to their respective initial icons $('img.eomitem-document').attr('src', '/Images/Icons/iconshock-balloon-invoice-128x96px.png'); + $('img.eomitem-upload').attr('src', '/Images/Icons/iconshock-upload-128x96px.png'); // pointer cursor over action icons @@ -164,6 +165,7 @@ $('span.action-list-item[data-item="' + itemId + '"]').addClass('action-list-item-completed'); $('span.action-list-item[data-item="' + dependentItemId + '"]').removeClass('action-list-item-disabled'); + $('img.action-icon[data-item="' + dependentItemId + '"]').removeClass('action-icon-disabled'); }); }); @@ -236,6 +238,10 @@ color: #aaa; } + .action-icon-disabled { + display: none !important; + } + .datagrid-row-selected, .datagrid-row-over, .datagrid-row-checked { background:transparent !important; } diff --git a/Site/Pages/v5/Ledgers/EndOfMonth.aspx.cs b/Site/Pages/v5/Ledgers/EndOfMonth.aspx.cs index 00452ab4..fc7358e7 100644 --- a/Site/Pages/v5/Ledgers/EndOfMonth.aspx.cs +++ b/Site/Pages/v5/Ledgers/EndOfMonth.aspx.cs @@ -83,6 +83,7 @@ namespace Swarmops.Frontend.Pages.Ledgers bankStatement.Name = string.Format(Resources.Pages.Ledgers.EndOfMonth_UploadBankStatementFor, assetAccount.Name, "PDF", new DateTime(monthIterator / 100, monthIterator % 100, 15).ToString("MMMM yyyy")); bankStatement.Completed = false; // TODO + bankStatement.Icon = "upload"; bankStatement.Skippable = skippable; group1.Items.Add(bankStatement); @@ -178,10 +179,13 @@ namespace Swarmops.Frontend.Pages.Ledgers { string itemName = Server.HtmlEncode(item.Name); string itemDisabledClass = string.Empty; + string iconDisabledClass = string.Empty; + if (item.DependsOn.Length > 0) { // add as disabled itemDisabledClass = " action-list-item-disabled"; + iconDisabledClass = " action-icon-disabled"; } if (item.Skippable) @@ -193,7 +197,7 @@ namespace Swarmops.Frontend.Pages.Ledgers builder.Append(@" $('#TableEomItems').datagrid('appendRow', { itemName: """ + itemName + @""", - action: """" + action: """" }); "); }