-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PM-3538] Migrate AddOrganizationComponent Web (#6275)
Migrate add organization in provider portal to use component library.
- Loading branch information
Showing
6 changed files
with
84 additions
and
130 deletions.
There are no files selected for viewing
72 changes: 25 additions & 47 deletions
72
...n_license/bit-web/src/app/admin-console/providers/clients/add-organization.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,47 +1,25 @@ | ||
<div class="modal fade" role="dialog" aria-modal="true" aria-labelledby="addTitle"> | ||
<div class="modal-dialog modal-dialog-scrollable" role="document"> | ||
<div class="modal-content"> | ||
<div class="modal-header"> | ||
<h2 class="modal-title" id="addTitle"> | ||
{{ "addExistingOrganization" | i18n }} | ||
</h2> | ||
<button | ||
type="button" | ||
class="close" | ||
data-dismiss="modal" | ||
appA11yTitle="{{ 'close' | i18n }}" | ||
> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
</div> | ||
<div class="modal-body"> | ||
<div class="card-body text-center" *ngIf="loading"> | ||
<i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i> | ||
{{ "loading" | i18n }} | ||
</div> | ||
<ng-container *ngIf="!loading"> | ||
<table class="table table-hover table-list"> | ||
<tr *ngFor="let o of organizations"> | ||
<td width="30"> | ||
<bit-avatar [text]="o.name" [id]="o.id" size="small"></bit-avatar> | ||
</td> | ||
<td> | ||
{{ o.name }} | ||
</td> | ||
<td> | ||
<button | ||
type="button" | ||
class="btn btn-outline-secondary pull-right" | ||
(click)="add(o)" | ||
[disabled]="formPromise" | ||
> | ||
Add | ||
</button> | ||
</td> | ||
</tr> | ||
</table> | ||
</ng-container> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
<bit-dialog [loading]="loading"> | ||
<span bitDialogTitle>{{ "addExistingOrganization" | i18n }}</span> | ||
<ng-container bitDialogContent> | ||
<bit-table> | ||
<ng-template body> | ||
<tr bitRow *ngFor="let o of data.organizations"> | ||
<td bitCell width="30"> | ||
<bit-avatar [text]="o.name" [id]="o.id" size="small"></bit-avatar> | ||
</td> | ||
<td bitCell> | ||
{{ o.name }} | ||
</td> | ||
<td bitCell> | ||
<button type="button" bitButton [bitAction]="add(o)" class="tw-float-right">Add</button> | ||
</td> | ||
</tr> | ||
</ng-template> | ||
</bit-table> | ||
</ng-container> | ||
<ng-container bitDialogFooter> | ||
<button type="button" bitButton bitDialogClose> | ||
{{ "close" | i18n }} | ||
</button> | ||
</ng-container> | ||
</bit-dialog> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -97,5 +97,3 @@ <h1>{{ "clients" | i18n }}</h1> | |
</table> | ||
</ng-container> | ||
</ng-container> | ||
|
||
<ng-template #add></ng-template> |
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