mirror of https://github.com/abpframework/abp.git
2 changed files with 98 additions and 103 deletions
@ -1,51 +1,63 @@ |
|||||
<div class="card shadow-sm rounded mb-3"> |
<ng-container *ngIf="(currentTenant$ | async) || {} as currentTenant"> |
||||
<div class="card-body px-5"> |
<div class="card shadow-sm rounded mb-3"> |
||||
<div class="row"> |
<div class="card-body px-5"> |
||||
<div class="col"> |
<div class="row"> |
||||
<span style="font-size: 0.8em;" class="text-uppercase text-muted">{{ |
<div class="col"> |
||||
'AbpUiMultiTenancy::Tenant' | abpLocalization |
<span style="font-size: 0.8em;" class="text-uppercase text-muted">{{ |
||||
}}</span |
'AbpUiMultiTenancy::Tenant' | abpLocalization |
||||
><br /> |
}}</span |
||||
<h6 class="m-0 d-inline-block"> |
><br /> |
||||
<span> |
<h6 class="m-0 d-inline-block"> |
||||
{{ tenantName || ('AbpUiMultiTenancy::NotSelected' | abpLocalization) }} |
<i>{{ currentTenant.name || ('AbpUiMultiTenancy::NotSelected' | abpLocalization) }}</i> |
||||
</span> |
</h6> |
||||
</h6> |
</div> |
||||
</div> |
<div class="col-auto"> |
||||
<div class="col-auto"> |
<a |
||||
<a |
id="AbpTenantSwitchLink" |
||||
id="AbpTenantSwitchLink" |
href="javascript:void(0);" |
||||
href="javascript:void(0);" |
class="btn btn-sm mt-3 btn-outline-primary" |
||||
class="btn btn-sm mt-3 btn-outline-primary" |
(click)="onSwitch()" |
||||
(click)="onSwitch()" |
>{{ 'AbpUiMultiTenancy::Switch' | abpLocalization }}</a |
||||
>{{ 'AbpUiMultiTenancy::Switch' | abpLocalization }}</a |
> |
||||
> |
</div> |
||||
</div> |
</div> |
||||
</div> |
</div> |
||||
</div> |
</div> |
||||
</div> |
|
||||
|
|
||||
<abp-modal size="md" [(visible)]="isModalVisible" [busy]="inProgress"> |
<abp-modal size="md" [(visible)]="isModalVisible" [busy]="modalBusy"> |
||||
<ng-template #abpHeader> |
<ng-template #abpHeader> |
||||
<h5>Switch Tenant</h5> |
<h5>Switch Tenant</h5> |
||||
</ng-template> |
</ng-template> |
||||
<ng-template #abpBody> |
<ng-template #abpBody> |
||||
<form (ngSubmit)="save()"> |
<form (ngSubmit)="save()"> |
||||
<div class="mt-2"> |
<div class="mt-2"> |
||||
<div class="form-group"> |
<div class="form-group"> |
||||
<label for="name">{{ 'AbpUiMultiTenancy::Name' | abpLocalization }}</label> |
<label for="name">{{ 'AbpUiMultiTenancy::Name' | abpLocalization }}</label> |
||||
<input [(ngModel)]="tenant.name" type="text" id="name" name="tenant" class="form-control" autofocus /> |
<input |
||||
|
[(ngModel)]="name" |
||||
|
type="text" |
||||
|
id="name" |
||||
|
name="tenant" |
||||
|
class="form-control" |
||||
|
autofocus |
||||
|
/> |
||||
|
</div> |
||||
|
<p>{{ 'AbpUiMultiTenancy::SwitchTenantHint' | abpLocalization }}</p> |
||||
</div> |
</div> |
||||
<p>{{ 'AbpUiMultiTenancy::SwitchTenantHint' | abpLocalization }}</p> |
</form> |
||||
</div> |
</ng-template> |
||||
</form> |
<ng-template #abpFooter> |
||||
</ng-template> |
<button #abpClose type="button" class="btn btn-secondary"> |
||||
<ng-template #abpFooter> |
{{ 'AbpTenantManagement::Cancel' | abpLocalization }} |
||||
<button #abpClose type="button" class="btn btn-secondary"> |
</button> |
||||
{{ 'AbpTenantManagement::Cancel' | abpLocalization }} |
<abp-button |
||||
</button> |
type="abp-button" |
||||
<abp-button buttonType="button" buttonClass="btn btn-primary" (click)="save()"> |
iconClass="fa fa-check" |
||||
<i class="fa fa-check mr-1"></i> <span>{{ 'AbpTenantManagement::Save' | abpLocalization }}</span> |
(click)="save()" |
||||
</abp-button> |
[disabled]="currentTenant?.name === name" |
||||
</ng-template> |
> |
||||
</abp-modal> |
<span>{{ 'AbpTenantManagement::Save' | abpLocalization }}</span> |
||||
|
</abp-button> |
||||
|
</ng-template> |
||||
|
</abp-modal> |
||||
|
</ng-container> |
||||
|
|||||
Loading…
Reference in new issue