|
|
|
@ -1,89 +1,83 @@ |
|
|
|
<div id="identity-roles-wrapper" class="card"> |
|
|
|
<div class="card-header"> |
|
|
|
<div class="row"> |
|
|
|
<div class="col col-md-6"> |
|
|
|
<h5 class="card-title">{{ 'AbpIdentity::Users' | abpLocalization }}</h5> |
|
|
|
</div> |
|
|
|
<div class="text-end col col-md-6"> |
|
|
|
<abp-page-toolbar [record]="data.items"></abp-page-toolbar> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
<div class="card-body"> |
|
|
|
<div id="data-tables-table-filter" class="data-tables-filter"> |
|
|
|
<div class="input-group"> |
|
|
|
<input |
|
|
|
type="search" |
|
|
|
class="form-control" |
|
|
|
[placeholder]="'AbpUi::PagerSearch' | abpLocalization" |
|
|
|
[(ngModel)]="list.filter" |
|
|
|
/> |
|
|
|
<abp-page [title]="'AbpIdentity::Users' | abpLocalization" [toolbar]="data.items"> |
|
|
|
|
|
|
|
<div id="identity-roles-wrapper" class="card"> |
|
|
|
<div class="card-body"> |
|
|
|
<div id="data-tables-table-filter" class="data-tables-filter mb-3"> |
|
|
|
<div class="input-group"> |
|
|
|
<input |
|
|
|
type="search" |
|
|
|
class="form-control" |
|
|
|
[placeholder]="'AbpUi::PagerSearch' | abpLocalization" |
|
|
|
[(ngModel)]="list.filter" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<abp-extensible-table |
|
|
|
[data]="data.items" |
|
|
|
[recordsTotal]="data.totalCount" |
|
|
|
[list]="list" |
|
|
|
></abp-extensible-table> |
|
|
|
<abp-extensible-table |
|
|
|
[data]="data.items" |
|
|
|
[recordsTotal]="data.totalCount" |
|
|
|
[list]="list" |
|
|
|
></abp-extensible-table> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
|
|
|
|
<abp-modal [(visible)]="isModalVisible" [busy]="modalBusy"> |
|
|
|
<ng-template #abpHeader> |
|
|
|
<h3>{{ (selected?.id ? 'AbpIdentity::Edit' : 'AbpIdentity::NewUser') | abpLocalization }}</h3> |
|
|
|
</ng-template> |
|
|
|
<abp-modal [(visible)]="isModalVisible" [busy]="modalBusy"> |
|
|
|
<ng-template #abpHeader> |
|
|
|
<h3>{{ (selected?.id ? 'AbpIdentity::Edit' : 'AbpIdentity::NewUser') | abpLocalization }}</h3> |
|
|
|
</ng-template> |
|
|
|
|
|
|
|
<ng-template #abpBody> |
|
|
|
<ng-template #loaderRef |
|
|
|
><div class="text-center"><i class="fa fa-pulse fa-spinner"></i></div |
|
|
|
></ng-template> |
|
|
|
<ng-template #abpBody> |
|
|
|
<ng-template #loaderRef |
|
|
|
> |
|
|
|
<div class="text-center"><i class="fa fa-pulse fa-spinner"></i></div |
|
|
|
> |
|
|
|
</ng-template> |
|
|
|
|
|
|
|
<form *ngIf="form; else loaderRef" [formGroup]="form" (ngSubmit)="save()"> |
|
|
|
<ul ngbNav #nav="ngbNav" class="nav-tabs"> |
|
|
|
<li ngbNavItem> |
|
|
|
<a ngbNavLink>{{ 'AbpIdentity::UserInformations' | abpLocalization }}</a> |
|
|
|
<ng-template ngbNavContent> |
|
|
|
<abp-extensible-form [selectedRecord]="selected"></abp-extensible-form> |
|
|
|
</ng-template> |
|
|
|
</li> |
|
|
|
<form *ngIf="form; else loaderRef" [formGroup]="form" (ngSubmit)="save()"> |
|
|
|
<ul ngbNav #nav="ngbNav" class="nav-tabs"> |
|
|
|
<li ngbNavItem> |
|
|
|
<a ngbNavLink>{{ 'AbpIdentity::UserInformations' | abpLocalization }}</a> |
|
|
|
<ng-template ngbNavContent> |
|
|
|
<abp-extensible-form [selectedRecord]="selected"></abp-extensible-form> |
|
|
|
</ng-template> |
|
|
|
</li> |
|
|
|
|
|
|
|
<li ngbNavItem> |
|
|
|
<a ngbNavLink>{{ 'AbpIdentity::Roles' | abpLocalization }}</a> |
|
|
|
<ng-template ngbNavContent> |
|
|
|
<div |
|
|
|
*ngFor="let roleGroup of roleGroups; let i = index; trackBy: trackByFn" |
|
|
|
class="form-check mb-2" |
|
|
|
> |
|
|
|
<input |
|
|
|
type="checkbox" |
|
|
|
class="form-check-input" |
|
|
|
[attr.id]="'roles-' + i" |
|
|
|
[formControl]="roleGroup.controls[roles[i].name]" |
|
|
|
/> |
|
|
|
<label class="form-check-label" [attr.for]="'roles-' + i">{{ roles[i].name }}</label> |
|
|
|
</div> |
|
|
|
</ng-template> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
<li ngbNavItem> |
|
|
|
<a ngbNavLink>{{ 'AbpIdentity::Roles' | abpLocalization }}</a> |
|
|
|
<ng-template ngbNavContent> |
|
|
|
<div |
|
|
|
*ngFor="let roleGroup of roleGroups; let i = index; trackBy: trackByFn" |
|
|
|
class="form-check mb-2" |
|
|
|
> |
|
|
|
<input |
|
|
|
type="checkbox" |
|
|
|
class="form-check-input" |
|
|
|
[attr.id]="'roles-' + i" |
|
|
|
[formControl]="roleGroup.controls[roles[i].name]" |
|
|
|
/> |
|
|
|
<label class="form-check-label" [attr.for]="'roles-' + i">{{ roles[i].name }}</label> |
|
|
|
</div> |
|
|
|
</ng-template> |
|
|
|
</li> |
|
|
|
</ul> |
|
|
|
|
|
|
|
<div class="mt-2 fade-in-top" [ngbNavOutlet]="nav"></div> |
|
|
|
</form> |
|
|
|
</ng-template> |
|
|
|
<div class="mt-2 fade-in-top" [ngbNavOutlet]="nav"></div> |
|
|
|
</form> |
|
|
|
</ng-template> |
|
|
|
|
|
|
|
<ng-template #abpFooter> |
|
|
|
<button type="button" class="btn btn-secondary" abpClose> |
|
|
|
{{ 'AbpIdentity::Cancel' | abpLocalization }} |
|
|
|
</button> |
|
|
|
<abp-button iconClass="fa fa-check" [disabled]="form?.invalid" (click)="save()">{{ |
|
|
|
'AbpIdentity::Save' | abpLocalization |
|
|
|
}}</abp-button> |
|
|
|
</ng-template> |
|
|
|
</abp-modal> |
|
|
|
<ng-template #abpFooter> |
|
|
|
<button type="button" class="btn btn-secondary" abpClose> |
|
|
|
{{ 'AbpIdentity::Cancel' | abpLocalization }} |
|
|
|
</button> |
|
|
|
<abp-button iconClass="fa fa-check" [disabled]="form?.invalid" (click)="save()">{{ |
|
|
|
'AbpIdentity::Save' | abpLocalization |
|
|
|
}}</abp-button> |
|
|
|
</ng-template> |
|
|
|
</abp-modal> |
|
|
|
|
|
|
|
<abp-permission-management |
|
|
|
#abpPermissionManagement="abpPermissionManagement" |
|
|
|
*abpReplaceableTemplate=" |
|
|
|
<abp-permission-management |
|
|
|
#abpPermissionManagement="abpPermissionManagement" |
|
|
|
*abpReplaceableTemplate=" |
|
|
|
{ |
|
|
|
inputs: { |
|
|
|
providerName: { value: 'U' }, |
|
|
|
@ -95,7 +89,8 @@ |
|
|
|
}; |
|
|
|
let init = initTemplate |
|
|
|
" |
|
|
|
[entityDisplayName]="entityDisplayName" |
|
|
|
(abpInit)="init(abpPermissionManagement)" |
|
|
|
> |
|
|
|
</abp-permission-management> |
|
|
|
[entityDisplayName]="entityDisplayName" |
|
|
|
(abpInit)="init(abpPermissionManagement)" |
|
|
|
> |
|
|
|
</abp-permission-management> |
|
|
|
</abp-page> |
|
|
|
|