Logic fix for header suppression
This commit is contained in:
@@ -42,6 +42,8 @@ namespace Swarmops.Frontend.Controls.Base
|
||||
}
|
||||
}
|
||||
|
||||
public string AjaxCallbackUrl { get; set; }
|
||||
public string Cookie { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
@@ -232,12 +232,12 @@
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<% if (!((this.Page as PageV5Base).IsDashboard || (this.Page as PageV5Base).SuppressStatisticHeaders))
|
||||
<% if (!((this.Page as PageV5Base).IsDashboard || (!(this.Page as PageV5Base).SuppressStatisticHeaders)))
|
||||
{ %>
|
||||
<div class="box">
|
||||
<div class="content"> <% } %>
|
||||
<asp:ContentPlaceHolder ID="PlaceHolderMain" runat="server" />
|
||||
<% if (!((this.Page as PageV5Base).IsDashboard || (this.Page as PageV5Base).SuppressStatisticHeaders))
|
||||
<% if (!((this.Page as PageV5Base).IsDashboard || (!(this.Page as PageV5Base).SuppressStatisticHeaders)))
|
||||
{ %>
|
||||
</div>
|
||||
</div> <% } %>
|
||||
|
||||
@@ -51,6 +51,7 @@
|
||||
|
||||
if (orgSettings.AccountsVat) {
|
||||
$('.enableVatField').show();
|
||||
<%=this.DropVatReportFrequency.ClientID%>_val(orgSettings.VatReportFrequency);
|
||||
}
|
||||
|
||||
$('#<%=this.TextGovtRegistrationId.ClientID%>_TextInput').val(orgSettings.GovernmentRegistrationId);
|
||||
@@ -155,7 +156,7 @@
|
||||
<div class="paypalAccountField"><Swarmops5:AjaxTextBox ID="TextPaypalAccountAddress" runat="server" Placeholder="paypal@example.org" AjaxCallbackUrl="/Pages/v5/Admin/OrgSettings.aspx/StoreCallback" Cookie="PaypalAccountAddress" /></div>
|
||||
<Swarmops5:AjaxToggleSlider ID="ToggleForex" runat="server" Cookie="Forex" Label="Forex Profit/Loss" AjaxCallbackUrl="/Pages/v5/Admin/OrgSettings.aspx/SwitchToggled"/>
|
||||
<Swarmops5:AjaxToggleSlider ID="ToggleVat" Cookie="Vat" runat="server" OnChange="onChangeVatEnable" Label="VAT Reports" AjaxCallbackUrl="/Pages/v5/Admin/OrgSettings.aspx/SwitchToggled"/>
|
||||
<div class="enableVatField"><Swarmops5:DropDown ID="DropVatReportingPeriod" runat="server" ReadOnly="true" AjaxCallbackUrl="/Pages/v5/Admin/OrgSettings.aspx/StoreCallback" Cookie="VatReportFrequency" /></div>
|
||||
<div class="enableVatField"><Swarmops5:DropDown ID="DropVatReportFrequency" runat="server" ReadOnly="true" AjaxCallbackUrl="/Pages/v5/Admin/OrgSettings.aspx/StoreCallback" Cookie="VatReportFrequency" /></div>
|
||||
<Swarmops5:AjaxToggleSlider ID="ToggleOpenFinancials" Cookie="ParticipantFinancials" runat="server" Label="Participant Financials" AjaxCallbackUrl="/Pages/v5/Admin/OrgSettings.aspx/SwitchToggled"/>
|
||||
</div>
|
||||
<div class="entryLabels">
|
||||
|
||||
@@ -503,6 +503,7 @@ namespace Swarmops.Frontend.Pages.Admin
|
||||
public bool AccountPaypal;
|
||||
public bool AccountsForex;
|
||||
public bool AccountsVat;
|
||||
public int VatReportingPeriod;
|
||||
public bool ParticipantFinancials;
|
||||
public string PaypalAccountAddress;
|
||||
|
||||
|
||||
+2
-2
@@ -76,13 +76,13 @@ namespace Swarmops.Frontend.Pages.Admin {
|
||||
protected global::Swarmops.Frontend.Controls.Base.AjaxToggleSlider ToggleVat;
|
||||
|
||||
/// <summary>
|
||||
/// DropVatReportingPeriod control.
|
||||
/// DropVatReportFrequency control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Swarmops.Frontend.Controls.Base.DropDown DropVatReportingPeriod;
|
||||
protected global::Swarmops.Frontend.Controls.Base.DropDown DropVatReportFrequency;
|
||||
|
||||
/// <summary>
|
||||
/// ToggleOpenFinancials control.
|
||||
|
||||
Reference in New Issue
Block a user