6 changed files with 84 additions and 130 deletions
@ -1,47 +1,25 @@ |
|||||||
<div class="modal fade" role="dialog" aria-modal="true" aria-labelledby="addTitle"> |
<bit-dialog [loading]="loading"> |
||||||
<div class="modal-dialog modal-dialog-scrollable" role="document"> |
<span bitDialogTitle>{{ "addExistingOrganization" | i18n }}</span> |
||||||
<div class="modal-content"> |
<ng-container bitDialogContent> |
||||||
<div class="modal-header"> |
<bit-table> |
||||||
<h2 class="modal-title" id="addTitle"> |
<ng-template body> |
||||||
{{ "addExistingOrganization" | i18n }} |
<tr bitRow *ngFor="let o of data.organizations"> |
||||||
</h2> |
<td bitCell width="30"> |
||||||
<button |
<bit-avatar [text]="o.name" [id]="o.id" size="small"></bit-avatar> |
||||||
type="button" |
</td> |
||||||
class="close" |
<td bitCell> |
||||||
data-dismiss="modal" |
{{ o.name }} |
||||||
appA11yTitle="{{ 'close' | i18n }}" |
</td> |
||||||
> |
<td bitCell> |
||||||
<span aria-hidden="true">×</span> |
<button type="button" bitButton [bitAction]="add(o)" class="tw-float-right">Add</button> |
||||||
</button> |
</td> |
||||||
</div> |
</tr> |
||||||
<div class="modal-body"> |
</ng-template> |
||||||
<div class="card-body text-center" *ngIf="loading"> |
</bit-table> |
||||||
<i class="bwi bwi-spinner bwi-spin" title="{{ 'loading' | i18n }}" aria-hidden="true"></i> |
</ng-container> |
||||||
{{ "loading" | i18n }} |
<ng-container bitDialogFooter> |
||||||
</div> |
<button type="button" bitButton bitDialogClose> |
||||||
<ng-container *ngIf="!loading"> |
{{ "close" | i18n }} |
||||||
<table class="table table-hover table-list"> |
</button> |
||||||
<tr *ngFor="let o of organizations"> |
</ng-container> |
||||||
<td width="30"> |
</bit-dialog> |
||||||
<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> |
|
||||||
|
|||||||
Loading…
Reference in new issue