diff --git a/apps/web/src/app/modules/loose-components.module.ts b/apps/web/src/app/modules/loose-components.module.ts index 37a87cee36..a84ac4fb9a 100644 --- a/apps/web/src/app/modules/loose-components.module.ts +++ b/apps/web/src/app/modules/loose-components.module.ts @@ -156,6 +156,7 @@ import { CollectionsComponent } from "../vault/collections.component"; import { FolderAddEditComponent } from "../vault/folder-add-edit.component"; import { ShareComponent } from "../vault/share.component"; +import { OrganizationCreateModule } from "./organizations/create/organization-create.module"; import { PipesModule } from "./pipes/pipes.module"; import { RegisterFormModule } from "./register-form/register-form.module"; import { SharedModule } from "./shared.module"; @@ -170,6 +171,7 @@ import { OrganizationBadgeModule } from "./vault/modules/organization-badge/orga VaultFilterModule, OrganizationBadgeModule, PipesModule, + OrganizationCreateModule, RegisterFormModule, ], declarations: [ diff --git a/apps/web/src/app/modules/organizations/create/organization-create.module.ts b/apps/web/src/app/modules/organizations/create/organization-create.module.ts new file mode 100644 index 0000000000..2ee84fdd68 --- /dev/null +++ b/apps/web/src/app/modules/organizations/create/organization-create.module.ts @@ -0,0 +1,12 @@ +import { NgModule } from "@angular/core"; + +import { SharedModule } from "../../shared.module"; + +import { OrganizationInformationComponent } from "./organization-information.component"; + +@NgModule({ + imports: [SharedModule], + declarations: [OrganizationInformationComponent], + exports: [OrganizationInformationComponent], +}) +export class OrganizationCreateModule {} diff --git a/apps/web/src/app/modules/organizations/create/organization-information.component.html b/apps/web/src/app/modules/organizations/create/organization-information.component.html new file mode 100644 index 0000000000..7550bfbf4c --- /dev/null +++ b/apps/web/src/app/modules/organizations/create/organization-information.component.html @@ -0,0 +1,32 @@ +
+ + {{ "organizationName" | i18n }} + + +
+
+

{{ "generalInformation" | i18n }}

+
+ + {{ "organizationName" | i18n }} + + + + {{ "billingEmail" | i18n }} + + +
+ + {{ "accountOwnedBusiness" | i18n }} +
+ + {{ "businessName" | i18n }} + + +
+
diff --git a/apps/web/src/app/modules/organizations/create/organization-information.component.ts b/apps/web/src/app/modules/organizations/create/organization-information.component.ts new file mode 100644 index 0000000000..5d35f6df8a --- /dev/null +++ b/apps/web/src/app/modules/organizations/create/organization-information.component.ts @@ -0,0 +1,12 @@ +import { Component, EventEmitter, Input, Output } from "@angular/core"; +import { FormGroup } from "@angular/forms"; + +@Component({ + selector: "app-org-info", + templateUrl: "organization-information.component.html", +}) +export class OrganizationInformationComponent { + @Input() nameOnly = false; + @Input() formGroup: FormGroup; + @Output() changedBusinessOwned = new EventEmitter(); +} diff --git a/apps/web/src/app/oss.module.ts b/apps/web/src/app/oss.module.ts index af19fa08d0..c43f8a4d5f 100644 --- a/apps/web/src/app/oss.module.ts +++ b/apps/web/src/app/oss.module.ts @@ -1,6 +1,7 @@ import { NgModule } from "@angular/core"; import { LooseComponentsModule } from "./modules/loose-components.module"; +import { OrganizationCreateModule } from "./modules/organizations/create/organization-create.module"; import { OrganizationManageModule } from "./modules/organizations/manage/organization-manage.module"; import { OrganizationUserModule } from "./modules/organizations/users/organization-user.module"; import { PipesModule } from "./modules/pipes/pipes.module"; @@ -19,6 +20,7 @@ import { OrganizationBadgeModule } from "./modules/vault/modules/organization-ba PipesModule, OrganizationManageModule, OrganizationUserModule, + OrganizationCreateModule, ], exports: [ SharedModule, diff --git a/apps/web/src/app/settings/organization-plans.component.html b/apps/web/src/app/settings/organization-plans.component.html index 7b827ce7c7..4fe4c3263e 100644 --- a/apps/web/src/app/settings/organization-plans.component.html +++ b/apps/web/src/app/settings/organization-plans.component.html @@ -24,68 +24,17 @@
-

{{ "generalInformation" | i18n }}

-
-
- - -
-
- - -
-
- - - {{ "clientOwnerDesc" | i18n: "20" }} -
-
-
-
- - -
-
-
- - -
-
-
+

{{ "chooseYourPlan" | i18n }}

-
+

{{ "users" | i18n }}

@@ -177,8 +126,8 @@ id="additionalSeats" class="form-control" type="number" - name="AdditionalSeats" - [(ngModel)]="additionalSeats" + name="additionalSeats" + formControlName="additionalSeats" min="1" max="100000" placeholder="{{ 'userSeatsDesc' | i18n }}" @@ -196,8 +145,8 @@ id="additionalSeats" class="form-control" type="number" - name="AdditionalSeats" - [(ngModel)]="additionalSeats" + name="additionalSeats" + formControlName="additionalSeats" min="0" max="100000" placeholder="{{ 'userSeatsDesc' | i18n }}" @@ -215,8 +164,8 @@ id="additionalStorage" class="form-control" type="number" - name="AdditionalStorageGb" - [(ngModel)]="additionalStorage" + name="additionalStorageGb" + formControlName="additionalStorage" min="0" max="99" step="1" @@ -238,8 +187,8 @@ id="premiumAccess" class="form-check-input" type="checkbox" - name="PremiumAccessAddon" - [(ngModel)]="premiumAccessAddon" + name="premiumAccessAddon" + formControlName="premiumAccessAddon" />