Added some labels
This commit is contained in:
@@ -288,6 +288,11 @@ namespace Swarmops.Common.Enums
|
||||
/// </summary>
|
||||
OrgRegularLabel,
|
||||
|
||||
/// <summary>
|
||||
/// What are applying members called in this org?
|
||||
/// </summary>
|
||||
OrgApplicantLabel,
|
||||
|
||||
/// <summary>
|
||||
/// What are activists called in this org?
|
||||
/// </summary>
|
||||
|
||||
@@ -25,6 +25,11 @@ namespace Swarmops.Common.Enums
|
||||
/// </summary>
|
||||
Nonprofit,
|
||||
|
||||
/// <summary>
|
||||
/// For organization that run a government-like structure (President, ministers, etc).
|
||||
/// </summary>
|
||||
Government,
|
||||
|
||||
/// <summary>
|
||||
/// Use medieval titles (kind of humorous, not to be taken too seriously).
|
||||
/// </summary>
|
||||
|
||||
+27
@@ -141,6 +141,15 @@ namespace Swarmops.Logic.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to President.
|
||||
/// </summary>
|
||||
internal static string Position_Executive_ChiefExecutiveOfficer_Government {
|
||||
get {
|
||||
return ResourceManager.GetString("Position_Executive_ChiefExecutiveOfficer_Government", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Secretary General.
|
||||
/// </summary>
|
||||
@@ -159,6 +168,15 @@ namespace Swarmops.Logic.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Minister of Finance.
|
||||
/// </summary>
|
||||
internal static string Position_Executive_ChiefFinancialOfficer_Government {
|
||||
get {
|
||||
return ResourceManager.GetString("Position_Executive_ChiefFinancialOfficer_Government", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Treasurer.
|
||||
/// </summary>
|
||||
@@ -222,6 +240,15 @@ namespace Swarmops.Logic.Resources {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Minister of the Interior.
|
||||
/// </summary>
|
||||
internal static string Position_Executive_ChiefOperationsOfficer_Government {
|
||||
get {
|
||||
return ResourceManager.GetString("Position_Executive_ChiefOperationsOfficer_Government", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Chief Activism Officer.
|
||||
/// </summary>
|
||||
|
||||
@@ -144,12 +144,18 @@
|
||||
<data name="Position_Executive_ChiefExecutiveOfficer" xml:space="preserve">
|
||||
<value>Chief Executive Officer</value>
|
||||
</data>
|
||||
<data name="Position_Executive_ChiefExecutiveOfficer_Government" xml:space="preserve">
|
||||
<value>President</value>
|
||||
</data>
|
||||
<data name="Position_Executive_ChiefExecutiveOfficer_Nonprofit" xml:space="preserve">
|
||||
<value>Secretary General</value>
|
||||
</data>
|
||||
<data name="Position_Executive_ChiefFinancialOfficer" xml:space="preserve">
|
||||
<value>Chief Financial Officer</value>
|
||||
</data>
|
||||
<data name="Position_Executive_ChiefFinancialOfficer_Government" xml:space="preserve">
|
||||
<value>Minister of Finance</value>
|
||||
</data>
|
||||
<data name="Position_Executive_ChiefFinancialOfficer_Nonprofit" xml:space="preserve">
|
||||
<value>Treasurer</value>
|
||||
</data>
|
||||
@@ -171,6 +177,9 @@
|
||||
<data name="Position_Executive_ChiefOperationsOfficer" xml:space="preserve">
|
||||
<value>Chief Operations Officer</value>
|
||||
</data>
|
||||
<data name="Position_Executive_ChiefOperationsOfficer_Government" xml:space="preserve">
|
||||
<value>Minister of the Interior</value>
|
||||
</data>
|
||||
<data name="Position_Executive_ChiefOperationsOfficer_Nonprofit" xml:space="preserve">
|
||||
<value>Chief Activism Officer</value>
|
||||
</data>
|
||||
|
||||
@@ -274,18 +274,34 @@ namespace Swarmops.Logic.Structure
|
||||
}
|
||||
}
|
||||
|
||||
public ParticipantTitle ApplicantLabel
|
||||
{
|
||||
get
|
||||
{
|
||||
string optionalData = OptionalData[ObjectOptionalDataType.OrgApplicantLabel];
|
||||
if (string.IsNullOrEmpty(optionalData))
|
||||
{
|
||||
ApplicantLabel = ParticipantTitle.Applicant;
|
||||
return ParticipantTitle.Applicant; // Legacy
|
||||
}
|
||||
|
||||
return (ParticipantTitle)(Enum.Parse(typeof(ParticipantTitle), optionalData));
|
||||
}
|
||||
set { OptionalData[ObjectOptionalDataType.OrgApplicantLabel] = value.ToString(); }
|
||||
}
|
||||
|
||||
public ParticipantTitle RegularLabel
|
||||
{
|
||||
get
|
||||
{
|
||||
string optionalData = OptionalData[ObjectOptionalDataType.OrgRegularLabel];
|
||||
if (string.IsNullOrEmpty (optionalData))
|
||||
if (string.IsNullOrEmpty(optionalData))
|
||||
{
|
||||
RegularLabel = ParticipantTitle.Member;
|
||||
return ParticipantTitle.Member; // Legacy
|
||||
}
|
||||
|
||||
return (ParticipantTitle) (Enum.Parse (typeof (ParticipantTitle), optionalData));
|
||||
return (ParticipantTitle)(Enum.Parse(typeof(ParticipantTitle), optionalData));
|
||||
}
|
||||
set { OptionalData[ObjectOptionalDataType.OrgRegularLabel] = value.ToString(); }
|
||||
}
|
||||
|
||||
@@ -44,6 +44,8 @@ namespace Swarmops.Logic.Swarm
|
||||
Activist,
|
||||
Agent,
|
||||
Ambassador,
|
||||
Applicant,
|
||||
Aspirant,
|
||||
Citizen,
|
||||
Conscript,
|
||||
Contributor,
|
||||
|
||||
@@ -197,8 +197,9 @@ namespace Swarmops.Logic.Swarm
|
||||
|
||||
/* EXECUTIVE POSITIONS (positions at the "Global" geographic level) */
|
||||
|
||||
Position ceo = Position.Create (organization, PositionLevel.OrganizationExecutive, null, null,
|
||||
PositionType.Executive_ChiefExecutiveOfficer, titleType, false, false, null, null, 1, 1);
|
||||
Position ceo = Position.Create(organization, PositionLevel.OrganizationExecutive, null, null,
|
||||
PositionType.Executive_ChiefExecutiveOfficer, titleType, false, false, null, null, 1, 1);
|
||||
|
||||
|
||||
/*Position vp =*/ Position.Create(organization, PositionLevel.OrganizationExecutive, null, null,
|
||||
PositionType.Executive_CeoAssistant, titleType, false, false, ceo, null, 0, 0);
|
||||
|
||||
+27
@@ -269,6 +269,24 @@ namespace Resources.Pages {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Not-yet-members are called.
|
||||
/// </summary>
|
||||
internal static string CreateOrganization_Applicants {
|
||||
get {
|
||||
return ResourceManager.GetString("CreateOrganization_Applicants", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to (not applicable).
|
||||
/// </summary>
|
||||
internal static string CreateOrganization_Applicants_None {
|
||||
get {
|
||||
return ResourceManager.GetString("CreateOrganization_Applicants_None", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Root-level organization.
|
||||
/// </summary>
|
||||
@@ -386,6 +404,15 @@ namespace Resources.Pages {
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Government.
|
||||
/// </summary>
|
||||
internal static string CreateOrganization_Titles_Government {
|
||||
get {
|
||||
return ResourceManager.GetString("CreateOrganization_Titles_Government", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Nonprofit.
|
||||
/// </summary>
|
||||
|
||||
@@ -362,4 +362,13 @@
|
||||
<p><strong>WARNING:</strong> This is a highly intrusive tool that should only be used for technical development and for requested support. Using this should not be taken lightly.</p>
|
||||
<p>All impersonations are permanently logged, all and any actions taken while impersonated are traceable as such, and the impersonated user will be informed of the intrusion.</p></value>
|
||||
</data>
|
||||
<data name="CreateOrganization_Applicants" xml:space="preserve">
|
||||
<value>Not-yet-members are called</value>
|
||||
</data>
|
||||
<data name="CreateOrganization_Applicants_None" xml:space="preserve">
|
||||
<value>(not applicable)</value>
|
||||
</data>
|
||||
<data name="CreateOrganization_Titles_Government" xml:space="preserve">
|
||||
<value>Government</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -1,4 +1,4 @@
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Master-v5.master" AutoEventWireup="true" Inherits="Swarmops.Frontend.Pages.v5.Admin.CreateOrganization" CodeFile="CreateOrganization.aspx.cs" %>
|
||||
<%@ Page Title="" Language="C#" MasterPageFile="~/Master-v5.master" AutoEventWireup="true" Inherits="Swarmops.Frontend.Pages.v5.Admin.CreateOrganization" CodeBehind="CreateOrganization.aspx.cs" CodeFile="CreateOrganization.aspx.cs" %>
|
||||
|
||||
<asp:Content ID="Content4" ContentPlaceHolderID="PlaceHolderHead" Runat="Server">
|
||||
<script type="text/javascript">
|
||||
@@ -27,6 +27,7 @@
|
||||
<div class="stacked-input-control"><asp:TextBox runat="server" ID="TextOrganizationName" /></div>
|
||||
<Swarmops5:DropDown runat="server" ID="DropCreateChild" />
|
||||
<Swarmops5:DropDown runat="server" ID="DropCurrencies"/>
|
||||
<Swarmops5:DropDown runat="server" ID="DropApplicantLabel" />
|
||||
<Swarmops5:DropDown runat="server" ID="DropPersonLabel" />
|
||||
<Swarmops5:DropDown runat="server" ID="DropActivistLabel" />
|
||||
<Swarmops5:DropDown runat="server" ID="DropPositionLabel" />
|
||||
@@ -36,6 +37,7 @@
|
||||
<asp:Label runat="server" ID="LabelOrganizationName" /><br/>
|
||||
<asp:Label runat="server" ID="LabelCreateAs" /><br/>
|
||||
<asp:Label runat="server" ID="LabelNativeCurrency" /><br/>
|
||||
<asp:Label runat="server" ID="LabelApplicantLabel" /><br/>
|
||||
<asp:Label runat="server" ID="LabelPersonLabel" /><br/>
|
||||
<asp:Label runat="server" ID="LabelActivistLabel" /><br/>
|
||||
<asp:Label runat="server" ID="LabelPositionLabel" />
|
||||
|
||||
@@ -53,7 +53,8 @@ namespace Swarmops.Frontend.Pages.v5.Admin
|
||||
//this.DropCreateChild.Items.Add (new ListItem (Global.Global_SelectOne, "0"));
|
||||
|
||||
this.DropPositionLabel.Items.Add (new ListItem(Resources.Pages.Admin.CreateOrganization_Titles_Nonprofit, "Nonprofit"));
|
||||
this.DropPositionLabel.Items.Add (new ListItem(Resources.Pages.Admin.CreateOrganization_Titles_Commercial, "Commercial"));
|
||||
this.DropPositionLabel.Items.Add(new ListItem(Resources.Pages.Admin.CreateOrganization_Titles_Commercial, "Commercial"));
|
||||
this.DropPositionLabel.Items.Add(new ListItem(Resources.Pages.Admin.CreateOrganization_Titles_Government, "Government"));
|
||||
|
||||
this.DropCreateChild.Items.Add (new ListItem (Resources.Pages.Admin.CreateOrganization_AsRoot, "Root"));
|
||||
this.DropCreateChild.Items.Add (
|
||||
@@ -75,10 +76,12 @@ namespace Swarmops.Frontend.Pages.v5.Admin
|
||||
foreach (string localizedPersonLabel in localizedPersonLabels)
|
||||
{
|
||||
string[] parts = localizedPersonLabel.Split ('|');
|
||||
this.DropPersonLabel.Items.Add (new ListItem (parts[0], parts[1]));
|
||||
this.DropApplicantLabel.Items.Add(new ListItem(parts[0], parts[1]));
|
||||
this.DropPersonLabel.Items.Add(new ListItem(parts[0], parts[1]));
|
||||
this.DropActivistLabel.Items.Add (new ListItem (parts[0], parts[1]));
|
||||
}
|
||||
|
||||
this.DropActivistLabel.SelectedValue = "Applicant";
|
||||
this.DropPersonLabel.SelectedValue = "Member";
|
||||
this.DropActivistLabel.SelectedValue = "Activist";
|
||||
|
||||
@@ -108,7 +111,8 @@ namespace Swarmops.Frontend.Pages.v5.Admin
|
||||
|
||||
protected void ButtonCreate_Click (object sender, EventArgs e)
|
||||
{
|
||||
ParticipantTitle activistLabel = (ParticipantTitle) (Enum.Parse(typeof(ParticipantTitle), this.DropActivistLabel.SelectedValue));
|
||||
ParticipantTitle applicantLabel = (ParticipantTitle)(Enum.Parse(typeof(ParticipantTitle), this.DropApplicantLabel.SelectedValue));
|
||||
ParticipantTitle activistLabel = (ParticipantTitle)(Enum.Parse(typeof(ParticipantTitle), this.DropActivistLabel.SelectedValue));
|
||||
ParticipantTitle peopleLabel =
|
||||
(ParticipantTitle) (Enum.Parse (typeof (ParticipantTitle), this.DropPersonLabel.SelectedValue));
|
||||
string asRoot = this.DropCreateChild.SelectedValue;
|
||||
@@ -137,6 +141,7 @@ namespace Swarmops.Frontend.Pages.v5.Admin
|
||||
newOrgName, newOrgName, string.Empty, newOrgName, Geography.RootIdentity, true, true, 0);
|
||||
newOrganization.EnableEconomy (newOrgCurrency);
|
||||
|
||||
newOrganization.ApplicantLabel = applicantLabel;
|
||||
newOrganization.RegularLabel = peopleLabel;
|
||||
newOrganization.ActivistLabel = activistLabel;
|
||||
|
||||
|
||||
@@ -48,6 +48,15 @@ namespace Swarmops.Frontend.Pages.v5.Admin {
|
||||
/// </remarks>
|
||||
protected global::Swarmops.Frontend.Controls.Base.DropDown DropCurrencies;
|
||||
|
||||
/// <summary>
|
||||
/// DropApplicantLabel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::Swarmops.Frontend.Controls.Base.DropDown DropApplicantLabel;
|
||||
|
||||
/// <summary>
|
||||
/// DropPersonLabel control.
|
||||
/// </summary>
|
||||
@@ -111,6 +120,15 @@ namespace Swarmops.Frontend.Pages.v5.Admin {
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label LabelNativeCurrency;
|
||||
|
||||
/// <summary>
|
||||
/// LabelApplicantLabel control.
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Auto-generated field.
|
||||
/// To modify move field declaration from designer file to code-behind file.
|
||||
/// </remarks>
|
||||
protected global::System.Web.UI.WebControls.Label LabelApplicantLabel;
|
||||
|
||||
/// <summary>
|
||||
/// LabelPersonLabel control.
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user