From ab4172b5b1bf68b787f9bc6db6b066ca630b2500 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Wed, 12 Nov 2014 00:47:53 +0100 Subject: [PATCH 1/8] Minor changes to loc --- Site5/App_GlobalResources/GeographyNames.resx | 4 ++-- Site5/App_GlobalResources/Menu5.resx | 5 ++++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Site5/App_GlobalResources/GeographyNames.resx b/Site5/App_GlobalResources/GeographyNames.resx index 790aba2e..8363089c 100644 --- a/Site5/App_GlobalResources/GeographyNames.resx +++ b/Site5/App_GlobalResources/GeographyNames.resx @@ -119,7 +119,7 @@ Eastern Europe - (East of former Iron Curtain) + (East of southern tip of Sweden, roughly) Europe @@ -134,7 +134,7 @@ Western Europe - (West of former Iron Curtain) + (West of southern tip of Sweden, roughly) World diff --git a/Site5/App_GlobalResources/Menu5.resx b/Site5/App_GlobalResources/Menu5.resx index b0d087bd..33e9f738 100644 --- a/Site5/App_GlobalResources/Menu5.resx +++ b/Site5/App_GlobalResources/Menu5.resx @@ -124,7 +124,10 @@ Access Control Lists - Create Organization + Create New Organization + + + Edit Organization Geography Tree From d1dedc219cfdb447d927331ef8de643eb0c2023b Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Wed, 12 Nov 2014 14:59:11 +0100 Subject: [PATCH 2/8] Moved a style inclusion to Master --- Site5/Master-v5.master | 1 + Site5/Pages/v5/Admin/CreateOrganization.aspx | 2 -- Site5/Pages/v5/Admin/Hacks/PopulateData.aspx | 1 - Site5/Pages/v5/Comms/SendMassMessage.aspx | 1 - Site5/Pages/v5/Financial/CreateInboundInvoice.aspx | 1 - Site5/Pages/v5/Financial/FileExpenseClaim.aspx | 1 - Site5/Pages/v5/Financial/RequestCashAdvance.aspx | 1 - Site5/Pages/v5/Ledgers/AccountPlan.aspx | 1 - Site5/Pages/v5/Ledgers/InspectLedgers.aspx | 1 - Site5/Pages/v5/Ledgers/ResyncExternalAccount.aspx | 1 - Site5/Pages/v5/Ledgers/UploadBankFiles.aspx | 1 - Site5/Pages/v5/Security/ChangeOrganizationsAdvanced.aspx | 2 -- Site5/Pages/v5/Swarm/ListFindPeople.aspx | 3 +-- Site5/Style/v5-easyui-elements.css | 9 +++++++++ 14 files changed, 11 insertions(+), 15 deletions(-) diff --git a/Site5/Master-v5.master b/Site5/Master-v5.master index 1af19fd6..3e4d5698 100644 --- a/Site5/Master-v5.master +++ b/Site5/Master-v5.master @@ -36,6 +36,7 @@ + diff --git a/Site5/Pages/v5/Admin/CreateOrganization.aspx b/Site5/Pages/v5/Admin/CreateOrganization.aspx index 545c6ac8..8441df21 100644 --- a/Site5/Pages/v5/Admin/CreateOrganization.aspx +++ b/Site5/Pages/v5/Admin/CreateOrganization.aspx @@ -2,8 +2,6 @@ <%@ Register TagPrefix="Swarmops5" TagName="ExternalScripts" Src="~/Controls/v5/UI/ExternalScripts.ascx" %> - - - - - - - - +
-

Testing inline header: switches

- Work in progress +

Accounting Features

+
+

+

+ ​
+

+

+
+
-

Testing inline header: members policy

+

Members policy

work in progress
@@ -23,8 +58,21 @@ work in progress
-

Transmitting mail

- Work in progress +

Mail transmission settings

+
+ ​
+ ​
+ ​
+ ​
+ ​
+
+
From d11939051ba73e0dfdb3a73108f2b8853af5232f Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Thu, 13 Nov 2014 03:43:40 +0100 Subject: [PATCH 7/8] Forced staging scripts to be used in debugging --- Site5/Controls/v5/UI/ExternalScripts.ascx.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Site5/Controls/v5/UI/ExternalScripts.ascx.cs b/Site5/Controls/v5/UI/ExternalScripts.ascx.cs index ddbc6574..a662b02f 100644 --- a/Site5/Controls/v5/UI/ExternalScripts.ascx.cs +++ b/Site5/Controls/v5/UI/ExternalScripts.ascx.cs @@ -17,9 +17,9 @@ namespace Swarmops.Frontend.Controls.v5.UI { externalScriptUrl = "/Scripts/ExternalScripts"; } - else if (PilotInstallationIds.IsPilot(PilotInstallationIds.DevelopmentSandbox)) + else if (System.Diagnostics.Debugger.IsAttached || PilotInstallationIds.IsPilot(PilotInstallationIds.DevelopmentSandbox)) { - externalScriptUrl += "/staging"; // use staging area for new script versions on Sandbox + externalScriptUrl += "/staging"; // use staging area for new script versions on Sandbox and for all debugging } if (Package == "easyui") From 88e20c5b7331d2c406f917dd40cc19be86967f92 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Thu, 13 Nov 2014 04:46:59 +0100 Subject: [PATCH 8/8] Added redirect to Edit Org after Create Org --- Site5/App_GlobalResources/Pages_Admin.resx | 2 +- Site5/Controls/v5/UI/ExternalScripts.ascx.cs | 2 +- .../Pages/v5/Admin/CreateOrganization.aspx.cs | 7 +++---- .../v5/Security/SetCurrentOrganization.aspx.cs | 18 ++++++++++++++---- Site5/Style/style-v5.css | 8 ++++++++ 5 files changed, 27 insertions(+), 10 deletions(-) diff --git a/Site5/App_GlobalResources/Pages_Admin.resx b/Site5/App_GlobalResources/Pages_Admin.resx index d35a7fce..35a66938 100644 --- a/Site5/App_GlobalResources/Pages_Admin.resx +++ b/Site5/App_GlobalResources/Pages_Admin.resx @@ -147,7 +147,7 @@ This can be "members", etc.
- The new organization has been created. You have been given an initial two-year {0} in the organization, so you can work with it and set it up properly. To switch to working with your new organization, use the control panel top right. + The new organization has been created. You have been given an initial two-year {0} in the organization, so you can work with it and set it up properly. You have also been <strong>logged in</strong> to your new organization instead of the one you were logged in to before.<br/><br/>This is the Edit Organization panel, where you can set more parameters for your new organization. The {0} is membership, employment, citizenship, residence, etc. diff --git a/Site5/Controls/v5/UI/ExternalScripts.ascx.cs b/Site5/Controls/v5/UI/ExternalScripts.ascx.cs index a662b02f..30fb554a 100644 --- a/Site5/Controls/v5/UI/ExternalScripts.ascx.cs +++ b/Site5/Controls/v5/UI/ExternalScripts.ascx.cs @@ -42,6 +42,6 @@ namespace Swarmops.Frontend.Controls.v5.UI } public string Package { get; set; } - public string Controls { get; set; } + public new string Controls { get; set; } } } \ No newline at end of file diff --git a/Site5/Pages/v5/Admin/CreateOrganization.aspx.cs b/Site5/Pages/v5/Admin/CreateOrganization.aspx.cs index 641168c4..35e42bf5 100644 --- a/Site5/Pages/v5/Admin/CreateOrganization.aspx.cs +++ b/Site5/Pages/v5/Admin/CreateOrganization.aspx.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Globalization; using System.Web; using System.Web.UI.WebControls; using Swarmops.Logic.Financial; @@ -130,13 +131,11 @@ namespace Swarmops.Frontend.Pages.v5.Admin string successMessage = String.Format(Resources.Pages_Admin.CreateOrganization_Success, Resources.Global.ResourceManager.GetString("Title_" + peopleLabel + "_Ship")); - // Create org here - Response.AppendCookie(new HttpCookie("DashboardMessage", HttpUtility.UrlEncode(successMessage))); - // Redirect to dashboard + // Log in to new organization, then redirect to Edit - Response.Redirect("/", true); + Response.Redirect("/Pages/v5/Security/SetCurrentOrganization.aspx?OrganizationId=" + newOrganization.Identity.ToString(CultureInfo.InvariantCulture) + "&ReturnUrl=/Pages/v5/Admin/EditOrganization.aspx", true); } } diff --git a/Site5/Pages/v5/Security/SetCurrentOrganization.aspx.cs b/Site5/Pages/v5/Security/SetCurrentOrganization.aspx.cs index 43847774..60887bf5 100644 --- a/Site5/Pages/v5/Security/SetCurrentOrganization.aspx.cs +++ b/Site5/Pages/v5/Security/SetCurrentOrganization.aspx.cs @@ -19,6 +19,7 @@ namespace Swarmops.Frontend.Pages.v5.Security throw new UnauthorizedAccessException("No"); // may cause problems on login screen? } + string returnUrlString = Request.QueryString["ReturnUrl"]; string organizationIdString = Request.QueryString["OrganizationId"]; int organizationId = Int32.Parse(organizationIdString); Organization suggestedOrganization = null; @@ -47,10 +48,19 @@ namespace Swarmops.Frontend.Pages.v5.Security logonFlags = currentIdentityParts[3]; } - FormsAuthentication.RedirectFromLoginPage( - CurrentUser.Identity.ToString(CultureInfo.InvariantCulture) + "," + - suggestedOrganization.Identity.ToString(CultureInfo.InvariantCulture) + ",," + - logonFlags, true); + string userIdentityString = CurrentUser.Identity.ToString(CultureInfo.InvariantCulture) + "," + + suggestedOrganization.Identity.ToString(CultureInfo.InvariantCulture) + ",," + + logonFlags; + + if (!string.IsNullOrEmpty(returnUrlString)) + { + FormsAuthentication.SetAuthCookie(userIdentityString, true); + Response.Redirect(returnUrlString); + } + else + { + FormsAuthentication.RedirectFromLoginPage(userIdentityString, true); + } } } diff --git a/Site5/Style/style-v5.css b/Site5/Style/style-v5.css index 2337531b..1d73ad7c 100644 --- a/Site5/Style/style-v5.css +++ b/Site5/Style/style-v5.css @@ -1031,6 +1031,14 @@ input.ButtonSwarmopsUpload:active { } +/* JQUERY PLUGIN OVERRIDES */ + + +nav.alertify-buttons { + margin-top: 20px; +} + + /* COLOR SCHEME #A2BEFF #476EC7 #1C397E #C8D9FF #E4ECFF -- blue (hue 222)