From e441fe3b59c40052654cca1272c4eeed8f438f23 Mon Sep 17 00:00:00 2001 From: Rick Falkvinge Date: Sun, 16 Nov 2014 01:23:37 +0100 Subject: [PATCH] Edit Organization design complete --- Site5/App_GlobalResources/Pages.Admin.resx | 34 +++++++++ Site5/Controls/v5/Base/DropDown.ascx.cs | 1 + Site5/Pages/v5/Admin/EditOrganization.aspx | 20 +++--- Site5/Pages/v5/Admin/EditOrganization.aspx.cs | 69 ++++++++++++++++++- 4 files changed, 113 insertions(+), 11 deletions(-) diff --git a/Site5/App_GlobalResources/Pages.Admin.resx b/Site5/App_GlobalResources/Pages.Admin.resx index 846d2b8b..15f588da 100644 --- a/Site5/App_GlobalResources/Pages.Admin.resx +++ b/Site5/App_GlobalResources/Pages.Admin.resx @@ -156,4 +156,38 @@ Edit Organization + + People become {0} of + The {0} is member, ambassador, etc. in the gender neutral plural. + + + People become {0} when + The {0} is member, ambassador, etc. in the gender neutral plural. + + + {0} ends when + The {0} is membership, ambassadorship, etc. + + + Initial {0} cost (in {1}) + The {0} is membership, etc. The {1} is the operating currency. + + + One {0} lasts + The {0} is membership, ambassadorship, etc. + + + Renewed period counts from + + + Remind to renew + + + Renewals affect + (options: all organizations, one org at a time) + + + Renewal cost (in {0}) + The {0} is the operating currency (USD etc). + \ No newline at end of file diff --git a/Site5/Controls/v5/Base/DropDown.ascx.cs b/Site5/Controls/v5/Base/DropDown.ascx.cs index a884f329..72d33d86 100644 --- a/Site5/Controls/v5/Base/DropDown.ascx.cs +++ b/Site5/Controls/v5/Base/DropDown.ascx.cs @@ -22,6 +22,7 @@ namespace Swarmops.Frontend.Controls.v5.Base public string SelectedValue { get { return this.DropControl.SelectedValue; } + set { this.DropControl.SelectedValue = value; } } } } \ No newline at end of file diff --git a/Site5/Pages/v5/Admin/EditOrganization.aspx b/Site5/Pages/v5/Admin/EditOrganization.aspx index a32d6032..28df0ae8 100644 --- a/Site5/Pages/v5/Admin/EditOrganization.aspx +++ b/Site5/Pages/v5/Admin/EditOrganization.aspx @@ -58,22 +58,24 @@
​
​
- ​
​
+ ​
​
​
+ ​
​
​
- People become members when... [applied, applied+approved, applied+paid, applied+paid+approved, invited+paid, manual only]
- People become members in... [root org only, most local org only, root + local, all on line root-local]
- People churn from membership when... [expiry date hits, not paid final reminder, manual churn only]
- Membership lasts... [1 month, 1 year, 2 years, 5 years, forever]
- Membership costs... [in operating currency]
- Renewals cost... [in operating currency]
- Renewals renew... [all active memberships, one org at a time]
- Remind renewal... [30, 14, 7, 1 day in advance]
+
+
+
+
+
+
+
+
+
diff --git a/Site5/Pages/v5/Admin/EditOrganization.aspx.cs b/Site5/Pages/v5/Admin/EditOrganization.aspx.cs index 143d379e..e6f0907e 100644 --- a/Site5/Pages/v5/Admin/EditOrganization.aspx.cs +++ b/Site5/Pages/v5/Admin/EditOrganization.aspx.cs @@ -21,15 +21,80 @@ namespace Swarmops.Frontend.Pages.v5.Admin if (!Page.IsPostBack) { - this.DropMembersChurn.Items.Add(new ListItem(Resources.Global.Global_SelectOne, "0")); + Localize(); } - // Localize(); this.EasyUIControlsUsed = EasyUIControl.Tabs; this.IncludedControlsUsed = IncludedControl.FileUpload | IncludedControl.SwitchButton; } + private void Localize() + { + string participants = + Resources.Global.ResourceManager.GetString("Title_" + CurrentOrganization.RegularLabel + "_Plural"); + string participantship = + Resources.Global.ResourceManager.GetString("Title_" + CurrentOrganization.RegularLabel + "_Ship"); + + this.LabelParticipationEntry.Text = + String.Format(Resources.Pages.Admin.EditOrganization_ParticipationBeginsWhen, participants); + this.LabelParticipationOrg.Text = + String.Format(Resources.Pages.Admin.EditOrganization_ParticipationBeginsOrg, participants); + this.LabelParticipationDuration.Text = + String.Format(Resources.Pages.Admin.EditOrganization_ParticipationDuration, participantship); + this.LabelParticipationChurn.Text = + String.Format(Resources.Pages.Admin.EditOrganization_ParticipationChurn, participantship); + this.LabelRenewalCost.Text = + String.Format(Resources.Pages.Admin.EditOrganization_RenewalsCost, + CurrentOrganization.Currency.DisplayCode); + this.LabelParticipationCost.Text = + String.Format(Resources.Pages.Admin.EditOrganization_ParticipationCost, + participantship, CurrentOrganization.Currency.DisplayCode); + this.LabelRenewalsAffect.Text = Resources.Pages.Admin.EditOrganization_RenewalsAffect; + this.LabelRenewalDateEffect.Text = Resources.Pages.Admin.EditOrganization_RenewalDateEffect; + this.LabelRenewalReminder.Text = Resources.Pages.Admin.EditOrganization_RenewalReminders; + + this.DropMembersWhen.Items.Clear(); + this.DropMembersWhen.Items.Add(new ListItem("On application", "Application")); + this.DropMembersWhen.Items.Add(new ListItem("On application + approval", "ApplicationApproval")); + this.DropMembersWhen.Items.Add(new ListItem("On application + payment", "ApplicationPayment")); + this.DropMembersWhen.Items.Add(new ListItem("Application, payment, approval", "ApplicationPaymentApproval")); + this.DropMembersWhen.Items.Add(new ListItem("Invitation + acceptance", "InvitationAcceptance")); + this.DropMembersWhen.Items.Add(new ListItem("Invitation + payment", "InvitationPayment")); + this.DropMembersWhen.Items.Add(new ListItem("Manual add only", "Manual")); + + this.DropMembersWhere.Items.Clear(); + this.DropMembersWhere.Items.Add(new ListItem("Root organization only", "Root")); + this.DropMembersWhere.Items.Add(new ListItem("Most local org only", "Local")); + this.DropMembersWhere.Items.Add(new ListItem("Root and most local org", "RootLocal")); + this.DropMembersWhere.Items.Add(new ListItem("All applicable organizations", "All")); + + this.DropMembershipDuration.Items.Clear(); + this.DropMembershipDuration.Items.Add(new ListItem("One month", "Month")); + this.DropMembershipDuration.Items.Add(new ListItem("One year", "Year")); + this.DropMembershipDuration.Items.Add(new ListItem("Two years", "TwoYears")); + this.DropMembershipDuration.Items.Add(new ListItem("Five years", "FiveYears")); + this.DropMembershipDuration.Items.Add(new ListItem("Forever", "Forever")); + this.DropMembershipDuration.SelectedValue = "Year"; + + this.DropMembersChurn.Items.Clear(); + this.DropMembersChurn.Items.Add(new ListItem("Expiry date reached", "Expiry")); + this.DropMembersChurn.Items.Add(new ListItem("Not paid final reminder", "NotPaid")); + this.DropMembersChurn.Items.Add(new ListItem("Never", "Never")); + + this.DropRenewalDateEffect.Items.Clear(); + this.DropRenewalDateEffect.Items.Add(new ListItem("Date of renewal", "RenewalDate")); + this.DropRenewalDateEffect.Items.Add(new ListItem("Previous expiry", "FromExpiry")); + + this.DropRenewalsAffect.Items.Clear(); + this.DropRenewalsAffect.Items.Add(new ListItem("All related organizations", "All")); + this.DropRenewalsAffect.Items.Add(new ListItem("One organization at a time", "One")); + + this.DropRenewalReminder.Items.Clear(); + this.DropRenewalReminder.Items.Add(new ListItem("30, 14, 7, 1 days before", "Standard")); + this.DropRenewalReminder.Items.Add(new ListItem("Never", "Never")); + } + [WebMethod] public static CallResult FlickSwitch(string switchName, bool switchOn) {