diff --git a/src/Admin/Controllers/OrganizationsController.cs b/src/Admin/Controllers/OrganizationsController.cs index 01e55f86a9..9a367d7997 100644 --- a/src/Admin/Controllers/OrganizationsController.cs +++ b/src/Admin/Controllers/OrganizationsController.cs @@ -287,6 +287,12 @@ public class OrganizationsController : Controller organization.UseTotp = model.UseTotp; organization.UsersGetPremium = model.UsersGetPremium; organization.UseSecretsManager = model.UseSecretsManager; + + //secrets + organization.SmSeats = model.SmSeats; + organization.MaxAutoscaleSmSeats = model.MaxAutoscaleSmSeats; + organization.SmServiceAccounts = model.SmServiceAccounts; + organization.MaxAutoscaleSmServiceAccounts = model.MaxAutoscaleSmServiceAccounts; } if (_accessControlService.UserHasPermission(Permission.Org_Licensing_Edit)) diff --git a/src/Admin/Models/OrganizationEditModel.cs b/src/Admin/Models/OrganizationEditModel.cs index f67ad18abc..19a82bb31c 100644 --- a/src/Admin/Models/OrganizationEditModel.cs +++ b/src/Admin/Models/OrganizationEditModel.cs @@ -63,6 +63,10 @@ public class OrganizationEditModel : OrganizationViewModel Enabled = org.Enabled; LicenseKey = org.LicenseKey; ExpirationDate = org.ExpirationDate; + SmSeats = org.SmSeats; + MaxAutoscaleSmSeats = org.MaxAutoscaleSmSeats; + SmServiceAccounts = org.SmServiceAccounts; + MaxAutoscaleSmServiceAccounts = org.MaxAutoscaleSmServiceAccounts; } public BillingInfo BillingInfo { get; set; } @@ -134,6 +138,14 @@ public class OrganizationEditModel : OrganizationViewModel [Display(Name = "Expiration Date")] public DateTime? ExpirationDate { get; set; } public bool SalesAssistedTrialStarted { get; set; } + [Display(Name = "Seats")] + public int? SmSeats { get; set; } + [Display(Name = "Max Autoscale Seats")] + public int? MaxAutoscaleSmSeats { get; set; } + [Display(Name = "Max Service Accounts")] + public int? SmServiceAccounts { get; set; } + [Display(Name = "Max Autoscale Service Accounts")] + public int? MaxAutoscaleSmServiceAccounts { get; set; } public Organization CreateOrganization(Provider provider) { @@ -174,6 +186,10 @@ public class OrganizationEditModel : OrganizationViewModel existingOrganization.LicenseKey = LicenseKey; existingOrganization.ExpirationDate = ExpirationDate; existingOrganization.MaxAutoscaleSeats = MaxAutoscaleSeats; + existingOrganization.SmSeats = SmSeats; + existingOrganization.MaxAutoscaleSmSeats = MaxAutoscaleSmSeats; + existingOrganization.SmServiceAccounts = SmServiceAccounts; + existingOrganization.MaxAutoscaleSmServiceAccounts = MaxAutoscaleSmServiceAccounts; return existingOrganization; } } diff --git a/src/Admin/Views/Shared/_OrganizationForm.cshtml b/src/Admin/Views/Shared/_OrganizationForm.cshtml index f20b80f280..ae5970603c 100644 --- a/src/Admin/Views/Shared/_OrganizationForm.cshtml +++ b/src/Admin/Views/Shared/_OrganizationForm.cshtml @@ -99,34 +99,6 @@ -