Name
@@ -159,9 +186,9 @@
Mail
Phone
ADDRESS
- Street 1
- Street 2
-
Postal Code, City
+ Street 1 or P.O.
+ Street 2 (optional)
+
Postal Code, City
Geography detectedSelect Geograhpy
STATISTICAL DATA
Date of Birth
diff --git a/Site5/Pages/v5/Swarm/AddPerson.aspx.cs b/Site5/Pages/v5/Swarm/AddPerson.aspx.cs
index c0285777..9df6023c 100644
--- a/Site5/Pages/v5/Swarm/AddPerson.aspx.cs
+++ b/Site5/Pages/v5/Swarm/AddPerson.aspx.cs
@@ -1,13 +1,13 @@
using System;
-using System.Collections.Generic;
-using System.Globalization;
-using System.Linq;
-using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
+using Resources;
+using Resources.Pages;
using Swarmops.Logic.Structure;
+
// ReSharper disable once CheckNamespace
+
namespace Swarmops.Frontend.Pages.v5.Swarm
{
public partial class AddPerson : PageV5Base
@@ -37,7 +37,7 @@ namespace Swarmops.Frontend.Pages.v5.Swarm
foreach (Country country in allCountries)
{
- string countryLocalName = Resources.GeographyNames.ResourceManager.GetString("Country_" + country.Code);
+ string countryLocalName = GeographyNames.ResourceManager.GetString("Country_" + country.Code);
if (string.IsNullOrEmpty(countryLocalName))
{
countryLocalName = country.Name + "*"; // In English. Asterisk indicates resource missing.
@@ -52,23 +52,34 @@ namespace Swarmops.Frontend.Pages.v5.Swarm
}
this.DropGenders.Items.Clear();
- this.DropGenders.Items.Add(new ListItem(Resources.Global.Global_UnknownUndisclosed, "Unknown"));
- this.DropGenders.Items.Add(new ListItem(Resources.Global.Global_Female, "Female"));
- this.DropGenders.Items.Add(new ListItem(Resources.Global.Global_Male, "Male"));
+ this.DropGenders.Items.Add(new ListItem(Global.Global_UnknownUndisclosed, "Unknown"));
+ this.DropGenders.Items.Add(new ListItem(Global.Global_Female, "Female"));
+ this.DropGenders.Items.Add(new ListItem(Global.Global_Male, "Male"));
+
+ this.LabelExpiry.Text = DateTime.Today.AddYears(1).ToString(Global.Global_LongDateFormatSansWeekday);
}
private void Localize()
{
// TODO
- this.InfoBoxLiteral = "
Work in progress";
+ this.InfoBoxLiteral = People.AddPerson_Info;
- this.TextDateOfBirth.Attributes["placeholder"] = Resources.Global.Global_DateFormatShort;
+ this.TextDateOfBirth.Attributes["placeholder"] = Global.Global_DateFormatShort;
this.TextName.Attributes["placeholder"] = "Joe Smith";
this.TextMail.Attributes["placeholder"] = "joe@example.com";
this.TextPhone.Attributes["placeholder"] = "+1 263 151 1341";
this.TextStreet1.Attributes["placeholder"] = "78 West Avenue";
- this.TextPostal.Attributes["placeholder"] = "123456";
+ this.TextPostal.Attributes["placeholder"] = "12345";
+ }
+
+ protected void ButtonSubmit_Click(object sender, EventArgs e)
+ {
+ // Register user
+
+ // Send notify
+
+ // Send password in mail
}
}
}
\ No newline at end of file
diff --git a/Site5/Security/Login.aspx.cs b/Site5/Security/Login.aspx.cs
index e0e32a0a..e115c82c 100644
--- a/Site5/Security/Login.aspx.cs
+++ b/Site5/Security/Login.aspx.cs
@@ -83,7 +83,7 @@ namespace Swarmops.Pages.Security
{
Response.AppendCookie(new HttpCookie("DashboardMessage",
HttpUtility.UrlEncode(
- "
You have been logged on as Sandbox Administrator to the Swarmops Development Sandbox.
This machine runs the latest development build, so you may run into diagnostic code and half-finished features. All data here is bogus test data and is reset every night.
In other words, welcome, and play away!
")));
+ "
You have been logged on as Sandbox Administrator to the Swarmops Development Sandbox.
This machine runs the latest development build, so you may run into diagnostic code and half-finished features. All data here is bogus test data and is reset every night.
In other words, welcome, and play away!
")));
FormsAuthentication.RedirectFromLoginPage("1,1", true);
}