diff --git a/Site/Controls/v5/Financial/CurrencyTextBox.ascx b/Site/Controls/v5/Financial/CurrencyTextBox.ascx index 2fc622e8..5fdbdd1a 100644 --- a/Site/Controls/v5/Financial/CurrencyTextBox.ascx +++ b/Site/Controls/v5/Financial/CurrencyTextBox.ascx @@ -1,5 +1,8 @@ <%@ Control Language="C#" AutoEventWireup="true" Inherits="Swarmops.Frontend.Controls.Financial.CurrencyTextBox" Codebehind="CurrencyTextBox.ascx.cs" %> +<%@ Import Namespace="Swarmops.Common.Enums" %> -
\ No newline at end of file + <% if (this.Layout == LayoutDirection.Vertical) { %>
<% } %> + + <% if (this.Layout == LayoutDirection.Vertical) { %>
<% } %> \ No newline at end of file diff --git a/Site/Controls/v5/Financial/CurrencyTextBox.ascx.cs b/Site/Controls/v5/Financial/CurrencyTextBox.ascx.cs index 4c619fd6..39db0411 100644 --- a/Site/Controls/v5/Financial/CurrencyTextBox.ascx.cs +++ b/Site/Controls/v5/Financial/CurrencyTextBox.ascx.cs @@ -1,5 +1,6 @@ using System; using System.Globalization; +using Swarmops.Common.Enums; using System.Web.UI; namespace Swarmops.Frontend.Controls.Financial @@ -13,6 +14,11 @@ namespace Swarmops.Frontend.Controls.Financial protected void Page_Load (object sender, EventArgs e) { this.Input.Attributes["role"] = "note"; // disable Lastpass trying to autofill + + if (this.Layout == LayoutDirection.Unknown) + { + this.Layout = LayoutDirection.Vertical; + } } public Int64 Cents @@ -66,6 +72,8 @@ namespace Swarmops.Frontend.Controls.Financial // TODO: Add other-currency parsing + public LayoutDirection Layout { get; set; } + public new void Focus() { this.Input.Focus(); diff --git a/Site/Pages/v5/Ledgers/InspectLedgers.aspx b/Site/Pages/v5/Ledgers/InspectLedgers.aspx index 54f23697..3ea07781 100644 --- a/Site/Pages/v5/Ledgers/InspectLedgers.aspx +++ b/Site/Pages/v5/Ledgers/InspectLedgers.aspx @@ -344,7 +344,7 @@

-

,

+

,