-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
created unlimited-input comp / refactored quota forms
Signed-off-by: Vítor Avelino <[email protected]>
- Loading branch information
Vítor Avelino
committed
Jul 24, 2019
1 parent
f6d1149
commit 23589fd
Showing
35 changed files
with
554 additions
and
479 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 1 addition & 29 deletions
30
...e/src/features/cloud-foundry/add-quota/create-quota-step/create-quota-step.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,4 @@ | ||
<div class="add-quota"> | ||
<div>Specify the parameters of the new quota</div> | ||
<form [formGroup]="quotaForm" class="stepper-form"> | ||
<mat-form-field> | ||
<input matInput formControlName="name" placeholder="Quota Name" required [appFocus]="true"> | ||
<mat-error *ngIf="quotaForm.controls.name?.hasError('nameTaken')"> | ||
A quota with this name already exists. Please enter a different one. | ||
</mat-error> | ||
</mat-form-field> | ||
<mat-form-field> | ||
<input type="number" matInput formControlName="appInstanceLimit" placeholder="Total number of application instances"> | ||
</mat-form-field> | ||
<mat-form-field> | ||
<input type="number" matInput formControlName="instanceMemoryLimit" placeholder="Max amount of memory an app instance can have" required> | ||
<span matSuffix>MB</span> | ||
</mat-form-field> | ||
<mat-form-field> | ||
<input type="number" matInput formControlName="totalServices" placeholder="Total number of service instances" required> | ||
</mat-form-field> | ||
<mat-form-field> | ||
<input type="number" matInput formControlName="memoryLimit" placeholder="Total amount of memory an organization can have" required> | ||
<span matSuffix>MB</span> | ||
</mat-form-field> | ||
<mat-form-field> | ||
<input type="number" matInput formControlName="totalRoutes" placeholder="Total number of routes" required> | ||
</mat-form-field> | ||
<mat-form-field> | ||
<input type="number" matInput formControlName="totalReservedRoutePorts" placeholder="Max number of routes with reserved ports"> | ||
</mat-form-field> | ||
<mat-checkbox matInput formControlName="nonBasicServicesAllowed">Can provision instances of paid service plans</mat-checkbox> | ||
</form> | ||
<app-quota-definition-form #form></app-quota-definition-form> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 1 addition & 29 deletions
30
...ud-foundry/add-space-quota/create-space-quota-step/create-space-quota-step.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,4 @@ | ||
<div class="add-space-quota"> | ||
<div>Specify the parameters of the new quota</div> | ||
<form [formGroup]="quotaForm" class="stepper-form"> | ||
<mat-form-field> | ||
<input matInput formControlName="name" placeholder="Space Quota Name" required [appFocus]="true"> | ||
<mat-error *ngIf="quotaForm.controls.name?.hasError('nameTaken')"> | ||
A space quota with this name already exists. Please enter a different one. | ||
</mat-error> | ||
</mat-form-field> | ||
<mat-form-field> | ||
<input type="number" matInput formControlName="appInstanceLimit" placeholder="Total number of application instances"> | ||
</mat-form-field> | ||
<mat-form-field> | ||
<input type="number" matInput formControlName="instanceMemoryLimit" placeholder="Max amount of memory an app instance can have"> | ||
<span matSuffix>MB</span> | ||
</mat-form-field> | ||
<mat-form-field> | ||
<input type="number" matInput formControlName="totalServices" placeholder="Total number of service instances" required> | ||
</mat-form-field> | ||
<mat-form-field> | ||
<input type="number" matInput formControlName="memoryLimit" placeholder="Total amount of memory a space can have" required> | ||
<span matSuffix>MB</span> | ||
</mat-form-field> | ||
<mat-form-field> | ||
<input type="number" matInput formControlName="totalRoutes" placeholder="Total number of routes" required> | ||
</mat-form-field> | ||
<mat-form-field> | ||
<input type="number" matInput formControlName="totalReservedRoutePorts" placeholder="Max number of routes with reserved ports"> | ||
</mat-form-field> | ||
<mat-checkbox matInput formControlName="nonBasicServicesAllowed">Can provision instances of paid service plans</mat-checkbox> | ||
</form> | ||
<app-space-quota-definition-form #form></app-space-quota-definition-form> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.