@@ -640,8 +651,8 @@
-
-
+
...
@@ -652,8 +663,8 @@
-
-
+
,
@@ -703,7 +714,7 @@
-
This is the organization-specific text shown for Signup Finalization. It is set in Admin / Org Settings. When the new person presses Finish, they will be entered into the organization, logged on, and sent to the Dashboard as a Beginner user.
+
diff --git a/Site/Pages/v5/Public/Signup.aspx.cs b/Site/Pages/v5/Public/Signup.aspx.cs
index a3171329..7c73b367 100644
--- a/Site/Pages/v5/Public/Signup.aspx.cs
+++ b/Site/Pages/v5/Public/Signup.aspx.cs
@@ -138,7 +138,6 @@ namespace Swarmops.Frontend.Pages.Public
this.LabelSidebarActionsHeader.Text = Resources.Global.Sidebar_Actions;
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.LabelYourLogon.Text = Resources.Pages.Public.Signup_YourLogon;
this.LabelYourLogonText.Text = Resources.Pages.Public.Signup_YourLogonText;
@@ -202,19 +201,58 @@ namespace Swarmops.Frontend.Pages.Public
}
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.Organization.Name);
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.";
+ this.LabelSidebarInfoContent.Text = CustomOrDefault(this.Organization.Parameters.SidebarOrgInfo,
+ Resources.Pages.Public.Signup_DefaultSidebarText);
+
+ this.LiteralFirstPageSignup.Text = CustomOrDefault(this.Organization.Parameters.SignupFirstPage,
+ Resources.Pages.Public.Signup_DefaultFirstPageText);
+ this.LiteralLastPageSignup.Text = CustomOrDefault(this.Organization.Parameters.SignupLastPage,
+ Resources.Pages.Public.Signup_DefaultLastPageText);
+
+ switch (this.Organization.Parameters.ParticipationEntry)
+ {
+ case "": // default
+ case "Application":
+
+ // 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.Organization.Name);
+ this.LabelHeader.Text = String.Format(Resources.Pages.Public.Signup_SigningUp, Organization.Name).ToUpperInvariant();
+ break;
+
+ case "ApplicationApproval":
+ // Each application must be approved
+ this.LabelSidebarActionsContent.Text = String.Format(Resources.Pages.Public.Signup_ApplicationApproval,
+ Participant.Localized(this.Organization.RegularLabel, TitleVariant.Ship), this.Organization.Name);
+ this.LabelHeader.Text = String.Format(Resources.Pages.Public.Signup_ApplyingFor, Participant.Localized(this.Organization.RegularLabel, TitleVariant.Ship), Organization.Name).ToUpperInvariant();
+
+ break;
+
+ default:
+ this.LabelSidebarActionsContent.Text = Resources.Pages.Public.Signup_Unsupported;
+ this.LabelHeader.Text = String.Format(Resources.Pages.Public.Signup_SigningUp, Organization.Name).ToUpperInvariant();
+ break;
+
+
+ }
}
+ private string CustomOrDefault(string customData, string defaultData)
+ {
+ if (!string.IsNullOrEmpty(customData))
+ {
+ return customData;
+ }
+
+ return defaultData;
+ }
+
protected Organization Organization;
[WebMethod]
@@ -241,6 +279,8 @@ namespace Swarmops.Frontend.Pages.Public
city, countryCode, parsedDateOfBirth, gender);
Participation participation = newPerson.AddParticipation (organization, DateTime.UtcNow.AddYears (1)); // TODO: set duration from organization settings of Participantship
+ // TODO: CREATE APPLICATION INSTEAD DEPENDING ON POLICY
+
// TODO: SEND NOTIFICATIONS
// Log the signup
@@ -316,8 +356,6 @@ namespace Swarmops.Frontend.Pages.Public
NGeoIP.RawData rawData = (NGeoIP.RawData) GuidCache.Get(ipAddress);
- Persistence.Key["DebugData"] = HttpContext.Current.Request.ToRaw();
-
if (rawData == null)
{
NGeoIP.Request request = new Request()
diff --git a/Site/Pages/v5/Public/Signup.aspx.designer.cs b/Site/Pages/v5/Public/Signup.aspx.designer.cs
index 2b883203..6fa6f51b 100644
--- a/Site/Pages/v5/Public/Signup.aspx.designer.cs
+++ b/Site/Pages/v5/Public/Signup.aspx.designer.cs
@@ -48,114 +48,6 @@ namespace Swarmops.Frontend.Pages.Public {
///
protected global::System.Web.UI.ScriptManager ScriptManagerBlahblah;
- ///
- /// LiteralErrorDate control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Literal LiteralErrorDate;
-
- ///
- /// LiteralErrorCity control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Literal LiteralErrorCity;
-
- ///
- /// LiteralErrorStreet control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Literal LiteralErrorStreet;
-
- ///
- /// LiteralErrorMail control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Literal LiteralErrorMail;
-
- ///
- /// LiteralErrorName control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Literal LiteralErrorName;
-
- ///
- /// LiteralErrorMailExists control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Literal LiteralErrorMailExists;
-
- ///
- /// LiteralWizardNextButton control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Literal LiteralWizardNextButton;
-
- ///
- /// LiteralWizardFinishButton control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Literal LiteralWizardFinishButton;
-
- ///
- /// LiteralErrorNeedPassword control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Literal LiteralErrorNeedPassword;
-
- ///
- /// LiteralErrorPasswordMismatch control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Literal LiteralErrorPasswordMismatch;
-
- ///
- /// LiteralErrorSelectActivationLevel control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Literal LiteralErrorSelectActivationLevel;
-
- ///
- /// LiteralErrorSelectVolunteerPosition control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Literal LiteralErrorSelectVolunteerPosition;
-
///
/// LabelHeader control.
///
@@ -272,7 +164,7 @@ namespace Swarmops.Frontend.Pages.Public {
/// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Label LabelStep5Text;
-
+
///
/// LabelStep6Header control.
///
@@ -281,7 +173,7 @@ namespace Swarmops.Frontend.Pages.Public {
/// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Label LabelStep6Header;
-
+
///
/// LabelStep6Text control.
///
@@ -290,25 +182,7 @@ namespace Swarmops.Frontend.Pages.Public {
/// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Label LabelStep6Text;
-
- ///
- /// LabelStep6Header control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Label LabelStep7Header;
-
- ///
- /// LabelStep6Text control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Label LabelStep7Text;
-
+
///
/// LabelWelcomeHeader control.
///
@@ -318,6 +192,105 @@ namespace Swarmops.Frontend.Pages.Public {
///
protected global::System.Web.UI.WebControls.Label LabelWelcomeHeader;
+ ///
+ /// LiteralFirstPageSignup control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Literal LiteralFirstPageSignup;
+
+ ///
+ /// TextName control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox TextName;
+
+ ///
+ /// DropCountries control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.DropDownList DropCountries;
+
+ ///
+ /// TextMail control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox TextMail;
+
+ ///
+ /// TextPhone control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox TextPhone;
+
+ ///
+ /// TextStreet1 control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox TextStreet1;
+
+ ///
+ /// TextStreet2 control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox TextStreet2;
+
+ ///
+ /// TextPostal control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox TextPostal;
+
+ ///
+ /// TextCity control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox TextCity;
+
+ ///
+ /// TextDateOfBirth control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox TextDateOfBirth;
+
+ ///
+ /// DropGenders control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.DropDownList DropGenders;
+
///
/// LabelName control.
///
@@ -426,96 +399,6 @@ namespace Swarmops.Frontend.Pages.Public {
///
protected global::System.Web.UI.WebControls.Label LabelLegalGender;
- ///
- /// TextName control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.TextBox TextName;
-
- ///
- /// DropCountries control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.DropDownList DropCountries;
-
- ///
- /// TextMail control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.TextBox TextMail;
-
- ///
- /// TextPhone control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.TextBox TextPhone;
-
- ///
- /// TextStreet1 control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.TextBox TextStreet1;
-
- ///
- /// TextStreet2 control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.TextBox TextStreet2;
-
- ///
- /// TextPostal control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.TextBox TextPostal;
-
- ///
- /// TextCity control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.TextBox TextCity;
-
- ///
- /// TextDateOfBirth control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.TextBox TextDateOfBirth;
-
- ///
- /// DropGenders control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.DropDownList DropGenders;
-
///
/// LabelYourLogon control.
///
@@ -534,6 +417,24 @@ namespace Swarmops.Frontend.Pages.Public {
///
protected global::System.Web.UI.WebControls.Label LabelYourLogonText;
+ ///
+ /// TextPassword1 control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox TextPassword1;
+
+ ///
+ /// TextPassword2 control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.TextBox TextPassword2;
+
///
/// LabelLoginKey control.
///
@@ -561,24 +462,6 @@ namespace Swarmops.Frontend.Pages.Public {
///
protected global::System.Web.UI.WebControls.Label LabelPassword2;
- ///
- /// TextPassword1 control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.TextBox TextPassword1;
-
- ///
- /// TextPassword2 control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.TextBox TextPassword2;
-
///
/// LabelActivationLevelHeader control.
///
@@ -705,6 +588,24 @@ namespace Swarmops.Frontend.Pages.Public {
///
protected global::System.Web.UI.WebControls.Label LabelFinalizeSignupHeader;
+ ///
+ /// LiteralLastPageSignup control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Literal LiteralLastPageSignup;
+
+ ///
+ /// ImageLogo control.
+ ///
+ ///
+ /// Auto-generated field.
+ /// To modify move field declaration from designer file to code-behind file.
+ ///
+ protected global::System.Web.UI.WebControls.Image ImageLogo;
+
///
/// LabelSidebarInfoHeader control.
///
@@ -758,15 +659,5 @@ namespace Swarmops.Frontend.Pages.Public {
/// To modify move field declaration from designer file to code-behind file.
///
protected global::System.Web.UI.WebControls.Label LabelSidebarTodo;
-
-
- ///
- /// Manually added control.
- ///
- ///
- /// Auto-generated field.
- /// To modify move field declaration from designer file to code-behind file.
- ///
- protected global::System.Web.UI.WebControls.Image ImageLogo;
}
}