|
@@ -40,21 +40,20 @@
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div *ngFor="let container of meta.meta; let i = index" class="dyna-rc-container" [ngClass]="{ 'dyna-rc-display-all': meta.display === 'ALL' }">
|
|
<div *ngFor="let container of meta.meta; let i = index" class="dyna-rc-container" [ngClass]="{ 'dyna-rc-display-all': meta.display === 'ALL' }">
|
|
- <div *ngIf="meta.showDeleteControl" class="text-right">
|
|
|
|
- <a [ngClass]="{ 'btn-disabled': !deleteRCMemberAllowed(meta.name) }"
|
|
|
|
- (click)="deleteRCMember(meta.name, i)">
|
|
|
|
- <i class="fa fa-trash"></i>
|
|
|
|
- </a>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <button *ngIf="meta.showDeleteControl" class="btn btn-sm btn-icon btn-outline-danger dyna-rc-btn-delete"
|
|
|
|
+ [disabled]="!deleteRCMemberAllowed(meta.name)"
|
|
|
|
+ (click)="deleteRCMember(meta.name, i)">
|
|
|
|
+ <clr-icon shape="trash"></clr-icon>
|
|
|
|
+ </button>
|
|
<ng-container *ngTemplateOutlet="dynaform; context: getRCTemplateContext(meta.name, i)"></ng-container>
|
|
<ng-container *ngTemplateOutlet="dynaform; context: getRCTemplateContext(meta.name, i)"></ng-container>
|
|
</div>
|
|
</div>
|
|
<div *ngIf="meta.showAddControl && meta.display === 'ALL'" class="clr-row">
|
|
<div *ngIf="meta.showAddControl && meta.display === 'ALL'" class="clr-row">
|
|
<div class="clr-col-sm-12">
|
|
<div class="clr-col-sm-12">
|
|
- <a class="btn btn-sm btn-success"
|
|
|
|
|
|
+ <button class="btn btn-sm btn-success dyna-rc-btn-add"
|
|
[ngClass]="{ 'btn-disabled': !addRCMemberAllowed(meta.name) }"
|
|
[ngClass]="{ 'btn-disabled': !addRCMemberAllowed(meta.name) }"
|
|
(click)="addRCMember(meta.name)">
|
|
(click)="addRCMember(meta.name)">
|
|
- + Add New
|
|
|
|
- </a>
|
|
|
|
|
|
+ <clr-icon shape="plus"></clr-icon> Add New
|
|
|
|
+ </button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</ng-container>
|
|
</ng-container>
|