From fe63877596298e0774e5e06bb3baea727d5f070a Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sun, 10 May 2015 15:31:35 +0200 Subject: [PATCH] Checkpoint commit for Signup --- Site5/App_GlobalResources/Global.resx | 9 ++++++++ Site5/App_GlobalResources/Pages.Public.resx | 20 ++++++++++++++++- Site5/Pages/v5/Public/Signup.aspx | 25 +++++++++++++-------- Site5/Pages/v5/Public/Signup.aspx.cs | 16 +++++++++++++ 4 files changed, 60 insertions(+), 10 deletions(-) diff --git a/Site5/App_GlobalResources/Global.resx b/Site5/App_GlobalResources/Global.resx index 732efca3..5d7dc7e5 100644 --- a/Site5/App_GlobalResources/Global.resx +++ b/Site5/App_GlobalResources/Global.resx @@ -708,4 +708,13 @@ Until termination Implicitly, until _manual_ (not automatic) termination + + Finish + + + Next + + + Previous + \ No newline at end of file diff --git a/Site5/App_GlobalResources/Pages.Public.resx b/Site5/App_GlobalResources/Pages.Public.resx index 8ebad648..152c8964 100644 --- a/Site5/App_GlobalResources/Pages.Public.resx +++ b/Site5/App_GlobalResources/Pages.Public.resx @@ -143,9 +143,24 @@ The two password copies do not match. + + Fees and Costs + + + There is no cost whatsoever to sign up for a {0} {1}. However, there will be a fee to renew your {1} when it expires on {2}. That fee is currently {3} {4:N2}, and you're under no obligation to renew. + {0} {1} is duration and Participantship, like "one-year Membership". {2} is the projected expiration date. {3} {4} is the renewal fee as it's currently set (NB: it may be different when the date is reached). + + + The {0} fee is {1} {2:N2} for {3}. You will get an invoice at the end of this process. (You can terminate your {0} at any time.) + {0} is the Participantship title. {1} and {2} are the currency and amount. {3} is the duration, like "one year" or "two years" (set in Organization Settings). + Your logon (your mail) + + There is no cost whatsoever in signing up for a {0}, nor any cost to renew when it expires on {1}. In addition, you may terminate your {0} at any time. + {0} is the Participantship title. {1} is the expiry date. + Choose a password @@ -153,7 +168,7 @@ Repeat that password - Signing up for {0} + Signing up for <bdo>{0}</bdo> The {0} is the organization name @@ -192,6 +207,9 @@ All done. Let's login! + + Complete signup. + Welcome to {0} The {0} is the organization name diff --git a/Site5/Pages/v5/Public/Signup.aspx b/Site5/Pages/v5/Public/Signup.aspx index 52f37983..c0763e75 100644 --- a/Site5/Pages/v5/Public/Signup.aspx +++ b/Site5/Pages/v5/Public/Signup.aspx @@ -282,6 +282,8 @@ $('#wizard').smartWizard({ transitionEffect: 'fade', + labelNext: "", + labelFinish: "", keyNavigation: false, onLeaveStep: leaveAStepCallback, onFinish: onFinishCallback @@ -307,8 +309,9 @@ isValid = true; // Blah - $('div#divLanguageSelector').slideUp().fadeOut(); - setTimeout(function() { $('#<%= TextName.ClientID %>').focus(); }, 250); // after 250ms, set focus to name field + $('div#divLanguageSelector').slideUp().fadeOut(); + $('div#divTodoDerpage').slideDown().fadeIn(); + setTimeout(function() { $('#<%= TextName.ClientID %>').focus(); }, 250); // after 250ms, set focus to name field } else if (stepNumber == 2) { isValid = ValidatePersonFields(); @@ -531,18 +534,22 @@ -

+ diff --git a/Site5/Pages/v5/Public/Signup.aspx.cs b/Site5/Pages/v5/Public/Signup.aspx.cs index 97ce5200..2565f7e4 100644 --- a/Site5/Pages/v5/Public/Signup.aspx.cs +++ b/Site5/Pages/v5/Public/Signup.aspx.cs @@ -94,6 +94,8 @@ namespace Swarmops.Frontend.Pages.Public private void Localize() { + this.LabelSidebarActionsHeader.Text = + this.LiteralErrorCity.Text = Resources.Pages.Swarm.AddPerson_ErrorCity; this.LiteralErrorMail.Text = Resources.Pages.Swarm.AddPerson_ErrorMail; this.LiteralErrorName.Text = Resources.Pages.Swarm.AddPerson_ErrorName; @@ -151,6 +153,20 @@ namespace Swarmops.Frontend.Pages.Public this.LiteralBodyAttributes.Text = @"dir='rtl' class='rtl'"; } + this.LiteralWizardNextButton.Text = Resources.Global.Global_WizardNext; + this.LiteralWizardFinishButton.Text = Resources.Global.Global_WizardFinish; + + this.LabelSidebarActionsHeader.Text = Resources.Pages.Public.Signup_FeeHeader; + // if (this.Organization.MembershipFee == 0 && this.Organization.MembershipRenewalFee == 0) + this.LabelSidebarActionsContent.Text = String.Format (Resources.Pages.Public.Signup_NoFeeText, + Participant.Localized (this.Organization.RegularLabel, TitleVariant.Ship), DateTime.Today.AddYears (1).ToShortDateString()); + + this.LabelSidebarInfoHeader.Text = Resources.Global.Sidebar_Information; + this.LabelSidebarTodoHeader.Text = Resources.Global.Sidebar_Todo; + + this.LabelSidebarTodo.Text = Resources.Pages.Public.Signup_Todo_Complete; + this.LabelSidebarInfoContent.Text = + @"This is the organization's Short About text. It is set in Admin / Org Settings."; }