-
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.
- Loading branch information
Showing
5 changed files
with
60 additions
and
57 deletions.
There are no files selected for viewing
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
41 changes: 39 additions & 2 deletions
41
ui/src/app/metadata/provider/container/new-provider.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 |
---|---|---|
@@ -1,3 +1,40 @@ | ||
<div class="container-fluid p-3" role="main"> | ||
Hi. I'm a new provider component page. | ||
</div> | ||
<section class="section" aria-label="Add a new metadata source - how are you adding the metadata information?" tabindex="0"> | ||
<div class="section-header bg-info p-2 text-white"> | ||
<div class="row justify-content-between"> | ||
<div class="col-md-12"> | ||
<span class="display-6" i18n="@@label--add-a-new-metadata-resolver">Add a new metadata provider</span> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="section-body p-4 border border-top-0 border-info"> | ||
<div class="row"> | ||
<div class="col col-xl-6 col-lg-9 col-xs-12"> | ||
<form [formGroup]="form" role="form"> | ||
<ul class="nav nav-wizard m-3"> | ||
<li class="nav-item"> | ||
<h3 class="tag tag-primary"> | ||
<span class="index">1</span> | ||
<ng-container i18n="@@label--name-and-entityid">1. Name and EntityId</ng-container> | ||
</h3> | ||
</li> | ||
<li class="nav-item"> | ||
<button class="nav-link next btn clearfix" (click)="next()" [disabled]="form.invalid" aria-label="Next: Step 2, Common Attributes" | ||
role="button"> | ||
<span class="label pull-left"> | ||
2. | ||
<ng-container i18n="@@label--common-attributes">Common Attributes</ng-container> | ||
</span> | ||
<span class="direction pull-right"> | ||
<i class="fa fa-fw fa-arrow-circle-right d-block fa-2x"></i> | ||
<ng-container i18n="@@action--next">Next</ng-container> | ||
</span> | ||
</button> | ||
</li> | ||
</ul> | ||
</form> | ||
</div> | ||
</div> | ||
</div> | ||
</section> | ||
</div> |
15 changes: 12 additions & 3 deletions
15
ui/src/app/metadata/provider/container/new-provider.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 |
---|---|---|
@@ -1,11 +1,20 @@ | ||
import { Component } from '@angular/core'; | ||
import { ActivatedRoute } from '@angular/router'; | ||
import { FormGroup, Validators, FormBuilder } from '@angular/forms'; | ||
|
||
@Component({ | ||
selector: 'new-provider-page', | ||
templateUrl: './new-provider.component.html', | ||
styleUrls: ['./new-provider.component.scss'] | ||
}) | ||
export class NewProviderComponent { | ||
constructor() {} | ||
} /* istanbul ignore next */ | ||
form: FormGroup = this.fb.group({ | ||
name: ['', [Validators.required]], | ||
'@type': ['', [Validators.required]] | ||
}); | ||
|
||
constructor( | ||
private fb: FormBuilder | ||
) {} | ||
|
||
next(): void {} | ||
} |
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