Checkpoint commit for Signup

This commit is contained in:
Rick Falkvinge
2015-05-10 15:31:35 +02:00
parent 9d34f9773c
commit fe63877596
4 changed files with 60 additions and 10 deletions
+9
View File
@@ -708,4 +708,13 @@
<value>Until termination</value>
<comment>Implicitly, until _manual_ (not automatic) termination</comment>
</data>
<data name="Global_WizardFinish" xml:space="preserve">
<value>Finish</value>
</data>
<data name="Global_WizardNext" xml:space="preserve">
<value>Next</value>
</data>
<data name="Global_WizardPrevious" xml:space="preserve">
<value>Previous</value>
</data>
</root>
+19 -1
View File
@@ -143,9 +143,24 @@
<data name="Signup_Error_PasswordMismatch" xml:space="preserve">
<value>The two password copies do not match.</value>
</data>
<data name="Signup_FeeHeader" xml:space="preserve">
<value>Fees and Costs</value>
</data>
<data name="Signup_FeeRenewalText" xml:space="preserve">
<value>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.</value>
<comment>{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).</comment>
</data>
<data name="Signup_FeeText" xml:space="preserve">
<value>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.) </value>
<comment>{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).</comment>
</data>
<data name="Signup_MailLoginKey" xml:space="preserve">
<value>Your logon (your mail)</value>
</data>
<data name="Signup_NoFeeText" xml:space="preserve">
<value>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.</value>
<comment>{0} is the Participantship title. {1} is the expiry date.</comment>
</data>
<data name="Signup_Password1" xml:space="preserve">
<value>Choose a password</value>
</data>
@@ -153,7 +168,7 @@
<value>Repeat that password</value>
</data>
<data name="Signup_SigningUp" xml:space="preserve">
<value>Signing up for {0}</value>
<value>Signing up for &lt;bdo&gt;{0}&lt;/bdo&gt;</value>
<comment>The {0} is the organization name</comment>
</data>
<data name="Signup_Step1Header" xml:space="preserve">
@@ -192,6 +207,9 @@
<data name="Signup_Step6Text" xml:space="preserve">
<value>All done. Let's login!</value>
</data>
<data name="Signup_Todo_Complete" xml:space="preserve">
<value>Complete signup.</value>
</data>
<data name="Signup_Welcome" xml:space="preserve">
<value>Welcome to {0}</value>
<comment>The {0} is the organization name</comment>
+16 -9
View File
@@ -282,6 +282,8 @@
$('#wizard').smartWizard({
transitionEffect: 'fade',
labelNext: "<asp:Literal ID='LiteralWizardNextButton' runat='server' />",
labelFinish: "<asp:Literal ID='LiteralWizardFinishButton' runat='server' />",
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 @@
</div>
</div>
<h2 class="orange"><asp:Label ID="LabelSidebarTodoHeader" runat="server" /><span class="arrow"></span></h2>
<div id="divTodoDerpage" style="display:none">
<h2 class="orange"><asp:Label ID="LabelSidebarTodoHeader" runat="server" /><span class="arrow"></span></h2>
<div class="box">
<div class="content">
<div class="link-row-encaps" onclick="return false;" >
<div class="link-row-icon" style="background-image:url('/Images/Icons/iconshock-databaseconnect-16px.png')"></div>
<asp:Label ID="LabelSidebarTodoConnectDatabase" runat="server" />
<div class="box">
<div class="content">
<div class="link-row-encaps" onclick="return false;" >
<div class="link-row-icon" style="background-image:url('/Images/Icons/iconshock-databaseconnect-16px.png')"></div>
<asp:Label ID="LabelSidebarTodo" runat="server" />
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
+16
View File
@@ -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.";
}