More work on self-signup; added new resource
This commit is contained in:
+53
-15
@@ -112,27 +112,65 @@
|
||||
<value>2.0</value>
|
||||
</resheader>
|
||||
<resheader name="reader">
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<data name="Init_SidebarActions_None" xml:space="preserve">
|
||||
<value>No other actions are available until setup is completed.</value>
|
||||
<data name="Signup_MailLoginKey" xml:space="preserve">
|
||||
<value>Your login (your mail)</value>
|
||||
</data>
|
||||
<data name="Init_SidebarInfo_Welcome" xml:space="preserve">
|
||||
<value>Welcome to Swarmops! This is what the interface looks like, but it's not active yet - first, we'll go through some steps to set up your installation. You'll be up and running shortly.</value>
|
||||
<comment>Info box on database setup screen</comment>
|
||||
<data name="Signup_Password1" xml:space="preserve">
|
||||
<value>Choose a password</value>
|
||||
</data>
|
||||
<data name="Init_SidebarTodo_CompleteSetup" xml:space="preserve">
|
||||
<value>Complete setup.</value>
|
||||
<data name="Signup_Password2" xml:space="preserve">
|
||||
<value>Repeat that password</value>
|
||||
</data>
|
||||
<data name="Init_UserInfo_InstallingAdmin" xml:space="preserve">
|
||||
<value>Systems Administrator</value>
|
||||
<comment>Displayed in lieu of logged-in-username</comment>
|
||||
<data name="Signup_SigningUp" xml:space="preserve">
|
||||
<value>Signing up for {0}</value>
|
||||
<comment>The {0} is the organization name</comment>
|
||||
</data>
|
||||
<data name="Init_UserInfo_NoOrgsYet" xml:space="preserve">
|
||||
<value>No organizations yet</value>
|
||||
<comment>Displayed in lieu of organization name</comment>
|
||||
<data name="Signup_Step1Header" xml:space="preserve">
|
||||
<value>Welcome!</value>
|
||||
</data>
|
||||
<data name="Signup_Step1Text" xml:space="preserve">
|
||||
<value>A short introduction</value>
|
||||
</data>
|
||||
<data name="Signup_Step2Header" xml:space="preserve">
|
||||
<value>About you</value>
|
||||
</data>
|
||||
<data name="Signup_Step2Text" xml:space="preserve">
|
||||
<value>Tell us a little about yourself?</value>
|
||||
</data>
|
||||
<data name="Signup_Step3Header" xml:space="preserve">
|
||||
<value>Create logon</value>
|
||||
</data>
|
||||
<data name="Signup_Step3Text" xml:space="preserve">
|
||||
<value>Pick a password</value>
|
||||
</data>
|
||||
<data name="Signup_Step4Header" xml:space="preserve">
|
||||
<value>Activity 1</value>
|
||||
</data>
|
||||
<data name="Signup_Step4Text" xml:space="preserve">
|
||||
<value>How much to you wish to engage?</value>
|
||||
</data>
|
||||
<data name="Signup_Step5Header" xml:space="preserve">
|
||||
<value>Activity 2</value>
|
||||
</data>
|
||||
<data name="Signup_Step5Text" xml:space="preserve">
|
||||
<value>What would you like to engage in?</value>
|
||||
</data>
|
||||
<data name="Signup_Step6Header" xml:space="preserve">
|
||||
<value>Complete</value>
|
||||
</data>
|
||||
<data name="Signup_Step6Text" xml:space="preserve">
|
||||
<value>All done. Let's login!</value>
|
||||
</data>
|
||||
<data name="Signup_Welcome" xml:space="preserve">
|
||||
<value>Welcome to {0}</value>
|
||||
<comment>The {0} is the organization name</comment>
|
||||
</data>
|
||||
<data name="Signup_YourName" xml:space="preserve">
|
||||
<value>Your name</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -63,13 +63,20 @@
|
||||
overflow: initial !important;
|
||||
}
|
||||
|
||||
input {
|
||||
input, select {
|
||||
width: 200px;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
|
||||
.entryFieldsAdmin, .entryLabelsAdmin {
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
|
||||
.entryLabelsAdmin {
|
||||
width: 236px;
|
||||
font-weight: 300;
|
||||
}
|
||||
|
||||
</style>
|
||||
@@ -130,8 +137,8 @@
|
||||
|
||||
function AnimatePostalCodeLength() {
|
||||
if (postalCodeLength > 0) {
|
||||
var postalTargetLength = postalCodeLength * 8 - 5;
|
||||
var cityTargetLength = 175 - 8 * postalCodeLength;
|
||||
var postalTargetLength = postalCodeLength * 10 - 2;
|
||||
var cityTargetLength = 160 - 10 * postalCodeLength;
|
||||
|
||||
$('#<%= TextPostal.ClientID %>').animate({ width: postalTargetLength + "px" });
|
||||
$('#<%= TextCity.ClientID %>').animate({ width: cityTargetLength + "px" });
|
||||
@@ -300,10 +307,14 @@
|
||||
isValid = true;
|
||||
// Blah
|
||||
|
||||
$('#<%= TextName.ClientID %>').focus();
|
||||
setTimeout(function() { $('#<%= TextName.ClientID %>').focus(); }, 250); // after 250ms, set focus to name field
|
||||
|
||||
} else if (stepNumber == 2) {
|
||||
isValid = ValidatePersonFields();
|
||||
if (isValid) {
|
||||
$('#spanMailLoginKey').text($('#<%=this.TextMail.ClientID%>').val());
|
||||
setTimeout(function() { $('#<%= TextPassword1.ClientID %>').focus(); }, 250); // after 250ms, set focus to pwd1 field
|
||||
}
|
||||
|
||||
} else if (stepNumber == 3) {
|
||||
isValid = true;
|
||||
@@ -352,7 +363,7 @@
|
||||
|
||||
<div class="center980px">
|
||||
<div class="topmenu" style="margin-top: -4px; padding-left: 30px; padding-top: 12px; color: white; font-family: Ubuntu; font-weight: 300; font-size: 24px; letter-spacing: 1px">
|
||||
SIGNING UP FOR <%= Organization.Name.ToUpperInvariant() %>
|
||||
<asp:Label ID="LabelHeader" runat="server" />
|
||||
</div>
|
||||
|
||||
<div class="mainbar">
|
||||
@@ -366,48 +377,48 @@
|
||||
<li><a href="#step-1">
|
||||
<label class="stepNumber">1</label>
|
||||
<span class="stepDesc">
|
||||
Welcome!<br />
|
||||
<small>A short introduction</small>
|
||||
<asp:Label runat="server" ID="LabelStep1Header" /><br />
|
||||
<small><asp:Label runat="server" ID="LabelStep1Text" /></small>
|
||||
</span>
|
||||
</a></li>
|
||||
<li><a href="#step-2">
|
||||
<label class="stepNumber">2</label>
|
||||
<span class="stepDesc">
|
||||
About you<br />
|
||||
<small>Tell us a little about yourself</small>
|
||||
<asp:Label runat="server" ID="LabelStep2Header" /><br />
|
||||
<small><asp:Label runat="server" ID="LabelStep2Text" /></small>
|
||||
</span>
|
||||
</a></li>
|
||||
<li><a href="#step-3">
|
||||
<label class="stepNumber">3</label>
|
||||
<span class="stepDesc">
|
||||
Create logon<br />
|
||||
<small>Pick a password</small>
|
||||
<asp:Label runat="server" ID="LabelStep3Header" /><br />
|
||||
<small><asp:Label runat="server" ID="LabelStep3Text" /></small>
|
||||
</span>
|
||||
</a></li>
|
||||
<li><a href="#step-4">
|
||||
<label class="stepNumber">4</label>
|
||||
<span class="stepDesc">
|
||||
Activity 1<br />
|
||||
<small>How much do you wish to engage?</small>
|
||||
<asp:Label runat="server" ID="LabelStep4Header" /><br />
|
||||
<small><asp:Label runat="server" ID="LabelStep4Text" /></small>
|
||||
</span>
|
||||
</a></li>
|
||||
<li><a href="#step-5">
|
||||
<label class="stepNumber">5</label>
|
||||
<span class="stepDesc">
|
||||
Activity 2<br />
|
||||
<small>What would you like to engage in?</small>
|
||||
<asp:Label runat="server" ID="LabelStep5Header" /><br />
|
||||
<small><asp:Label runat="server" ID="LabelStep5Text" /></small>
|
||||
</span>
|
||||
</a></li>
|
||||
<li><a href="#step-6">
|
||||
<label class="stepNumber">6</label>
|
||||
<span class="stepDesc">
|
||||
Complete<br />
|
||||
<small>All done. Let's login!</small>
|
||||
<asp:Label runat="server" ID="LabelStep6Header" /><br />
|
||||
<small><asp:Label runat="server" ID="LabelStep6Text" /></small>
|
||||
</span>
|
||||
</a></li>
|
||||
</ul>
|
||||
<div id="step-1">
|
||||
<h2>Welcome to <%= Organization.Name %></h2>
|
||||
<h2><asp:Label ID="LabelWelcomeHeader" runat="server" /></h2>
|
||||
<p>This is the organization's custom welcome text. It has not yet been written; it is set in Admin / Org Settings.</p>
|
||||
</div>
|
||||
<div id="step-2">
|
||||
@@ -430,15 +441,25 @@
|
||||
<asp:TextBox runat="server" ID="TextPhone" />​<br/>
|
||||
<asp:TextBox runat="server" ID="TextStreet1" />​<br/>
|
||||
<asp:TextBox runat="server" ID="TextStreet2" />​<br/>
|
||||
<div style="float: right; margin-right: -1px"><asp:TextBox runat="server" ID="TextPostal" /> <asp:TextBox runat="server" ID="TextCity" /></div><div style="width: 22px; overflow: hidden"><span id="spanCountryPrefix">XX</span>–</div>
|
||||
<div style="float: right; margin-right: -1px"><asp:TextBox runat="server" ID="TextPostal" /> <asp:TextBox runat="server" ID="TextCity" /></div><div style="width: 35px; overflow: hidden"><span id="spanCountryPrefix">XX</span>–</div>
|
||||
<span id="spanDetectedGeo">...</span> <br/>
|
||||
<asp:TextBox runat="server" ID="TextDateOfBirth" />​<br/>
|
||||
<asp:DropDownList runat="server" ID="DropGenders" />​<br/>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<div id="step-3">
|
||||
<h2>Your Logon</h2>
|
||||
<h2>Your logon</h2>
|
||||
<p>Please select a password to log on to Swarmops (this system). You will be able to replace this with a Twitter, Facebook, or BitID login for convenience later.</p>
|
||||
<div class="entryLabelsAdmin">
|
||||
<asp:Label ID="LabelLoginKey" runat="server" /><br />
|
||||
<asp:Label ID="LabelPassword1" runat="server" /><br />
|
||||
<asp:Label ID="LabelPassword2" runat="server" /><br />
|
||||
</div>
|
||||
<div class="entryFieldsAdmin">
|
||||
<span id="spanMailLoginKey">...</span>​<br/>
|
||||
<asp:TextBox runat="server" ID="TextPassword1" TextMode="Password" />​<br/>
|
||||
<asp:TextBox runat="server" ID="TextPassword2" TextMode="Password" />​<br/>
|
||||
</div>
|
||||
</div>
|
||||
<div id="step-4">
|
||||
<h2>Creating the first user</h2>
|
||||
|
||||
@@ -82,6 +82,22 @@ namespace Swarmops.Frontend.Pages.Public
|
||||
this.LiteralErrorStreet.Text = Resources.Pages.Swarm.AddPerson_ErrorStreet;
|
||||
this.LiteralErrorDate.Text = Resources.Pages.Swarm.AddPerson_ErrorDate;
|
||||
|
||||
this.LabelWelcomeHeader.Text = String.Format (Resources.Pages.Public.Signup_Welcome, Organization.Name);
|
||||
this.LabelHeader.Text = String.Format(Resources.Pages.Public.Signup_SigningUp, Organization.Name).ToUpperInvariant();
|
||||
|
||||
this.LabelStep1Header.Text = Resources.Pages.Public.Signup_Step1Header;
|
||||
this.LabelStep1Text.Text = Resources.Pages.Public.Signup_Step1Text;
|
||||
this.LabelStep2Header.Text = Resources.Pages.Public.Signup_Step2Header;
|
||||
this.LabelStep2Text.Text = Resources.Pages.Public.Signup_Step2Text;
|
||||
this.LabelStep3Header.Text = Resources.Pages.Public.Signup_Step3Header;
|
||||
this.LabelStep3Text.Text = Resources.Pages.Public.Signup_Step3Text;
|
||||
this.LabelStep4Header.Text = Resources.Pages.Public.Signup_Step4Header;
|
||||
this.LabelStep4Text.Text = Resources.Pages.Public.Signup_Step4Text;
|
||||
this.LabelStep5Header.Text = Resources.Pages.Public.Signup_Step5Header;
|
||||
this.LabelStep5Text.Text = Resources.Pages.Public.Signup_Step5Text;
|
||||
this.LabelStep6Header.Text = Resources.Pages.Public.Signup_Step6Header;
|
||||
this.LabelStep6Text.Text = Resources.Pages.Public.Signup_Step6Text;
|
||||
|
||||
this.LabelName.Text = Resources.Global.Global_Name;
|
||||
this.LabelCountry.Text = Resources.Global.Global_Country;
|
||||
this.LabelMail.Text = Resources.Global.Global_Mail;
|
||||
@@ -94,6 +110,12 @@ namespace Swarmops.Frontend.Pages.Public
|
||||
this.LabelDateOfBirth.Text = Resources.Global.Global_DateOfBirth;
|
||||
this.LabelLegalGender.Text = Resources.Pages.Swarm.AddPerson_LegalGender;
|
||||
|
||||
|
||||
|
||||
this.LabelLoginKey.Text = Resources.Pages.Public.Signup_MailLoginKey;
|
||||
this.LabelPassword1.Text = Resources.Pages.Public.Signup_Password1;
|
||||
this.LabelPassword2.Text = Resources.Pages.Public.Signup_Password2;
|
||||
|
||||
this.TextDateOfBirth.Attributes["placeholder"] = Global.Global_DateFormatShortReadable;
|
||||
this.TextName.Attributes["placeholder"] = "Joe Smith";
|
||||
this.TextMail.Attributes["placeholder"] = "joe@example.com";
|
||||
|
||||
Reference in New Issue
Block a user