6 changed files with 84 additions and 130 deletions
@ -1,47 +1,25 @@
@@ -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> |
||||
|
||||
Loading…
Reference in new issue