-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SHIBUI-799 Implemented UI for NameIDFOrmat Filter
- Loading branch information
Showing
9 changed files
with
92 additions
and
8 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
ui/src/app/schema-form/widget/array/inline-obj-list.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<div class="widget form-group"> | ||
<div class="d-flex justify-content-start"> | ||
<label [attr.for]="id" class="m-0 pt-1 control-label"> | ||
<translate-i18n [key]="schema.title">{{ schema.title }}</translate-i18n> | ||
</label> | ||
| ||
<button (click)="addItem()" class="btn btn-success btn-sm array-add-button"> | ||
<translate-i18n key="action.add">Add</translate-i18n> | ||
<i class="fa fa-plus" aria-hidden="true"></i> | ||
</button> | ||
| ||
<span class="text-right" *ngIf="schema.description"> | ||
<info-icon [description]="schema.description | translate"></info-icon> | ||
</span> | ||
<small class="form-text text-danger px-2" *ngIf="hasErrors"> | ||
<ng-container *ngFor="let error of errors$ | async; let first=first;"> | ||
<ng-container *ngIf="!first">, </ng-container> | ||
<translate-i18n [key]="messages[error.code]">{{ error.message }}</translate-i18n> | ||
</ng-container> | ||
</small> | ||
</div> | ||
<ul class="mt-2 no-style d-flex justify-content-between flex-wrap"> | ||
<li *ngFor="let itemProperty of formProperty.properties; let i=index; trackBy:trackByIndex" class="w-50"> | ||
<div class="d-flex flex-row justify-content-between m-3"> | ||
<div class="flex-grow-1 bg-light border rounded p-3"> | ||
<sf-form-element class="" [formProperty]="itemProperty"></sf-form-element> | ||
<div class="py-2 text-right"> | ||
<button class="btn btn-danger" (click)="removeItem(i)" role="button"> | ||
<i class="fa fa-fw fa-trash fa-lg"></i> | ||
<span translate="action.remove">Remove</span> | ||
</button> | ||
</div> | ||
</div> | ||
</div> | ||
</li> | ||
</ul> | ||
<span *ngIf="schema.description" class="sr-only"> | ||
<translate-i18n [key]="schema.description">{{ schema.description }}</translate-i18n> | ||
</span> | ||
</div> |
11 changes: 11 additions & 0 deletions
11
ui/src/app/schema-form/widget/array/inline-obj-list.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
import { ObjectWidget } from 'ngx-schema-form'; | ||
import { CustomArrayComponent } from './array.component'; | ||
|
||
/* tslint:disable */ | ||
@Component({ | ||
selector: 'inline-obj-list', | ||
templateUrl: `./inline-obj-list.component.html` | ||
}) | ||
export class InlineObjectListComponent extends CustomArrayComponent { } |
9 changes: 9 additions & 0 deletions
9
ui/src/app/schema-form/widget/object/inline-obj.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<div class="flex-column"> | ||
<ng-container *ngFor="let fieldset of formProperty.schema.fieldsets; let i = index;"> | ||
<fieldset class="d-flex flex-row justify-content-between"> | ||
<div *ngFor="let fieldId of fieldset.fields" class="flex-fill"> | ||
<sf-form-element [formProperty]="formProperty.getProperty(fieldId)"></sf-form-element> | ||
</div> | ||
</fieldset> | ||
</ng-container> | ||
</div> |
10 changes: 10 additions & 0 deletions
10
ui/src/app/schema-form/widget/object/inline-obj.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { Component } from '@angular/core'; | ||
|
||
import { CustomObjectWidget } from './object.component'; | ||
|
||
/* tslint:disable */ | ||
@Component({ | ||
selector: 'inline-obj', | ||
templateUrl: `./inline-obj.component.html` | ||
}) | ||
export class InlineObjectComponent extends CustomObjectWidget { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters