|
|
|
@ -1,6 +1,12 @@
|
|
|
|
|
<div class="dataset-wizard">
|
|
|
|
|
<h3 *ngIf="isNew">New Dataset</h3>
|
|
|
|
|
<h3 *ngIf="!isNew">{{datasetWizardModel?.label}} Dataset</h3>
|
|
|
|
|
<div class="flex-container">
|
|
|
|
|
<div fxLayout="row">
|
|
|
|
|
<h3 *ngIf="!isNew">{{datasetWizardModel?.label}} {{ 'GENERAL.NAMES.DATASET' | translate }}</h3>
|
|
|
|
|
<h3 *ngIf="this.formGroup && this.formGroup.dirty"> - {{ 'GENERAL.STATUSES.EDIT' | translate }}</h3>
|
|
|
|
|
<h3 *ngIf="this.formGroup && viewOnly"> - {{ 'GENERAL.STATUSES.FINALISED' | translate }}</h3>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="flex-container">
|
|
|
|
|
|
|
|
|
|
<button mat-raised-button color="primary" *ngIf="datasetWizardModel&&datasetWizardModel?.status != 1" style="margin-top: 15px;margin-bottom: 15px;margin-right: 15px;"
|
|
|
|
@ -39,7 +45,6 @@
|
|
|
|
|
<button matStepperNext mat-raised-button style="float:right;" color="primary">{{'DATASET-WIZARD.ACTIONS.NEXT' |
|
|
|
|
|
translate}}
|
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
</mat-step>
|
|
|
|
@ -49,7 +54,7 @@
|
|
|
|
|
|
|
|
|
|
<mat-card>
|
|
|
|
|
<mat-card-header>
|
|
|
|
|
<mat-card-title class="thick">
|
|
|
|
|
<mat-card-title class="thick" *ngIf='!viewOnly'>
|
|
|
|
|
{{'DATASET-EDITOR.FIELDS.DATAREPOSITORIES' | translate}}
|
|
|
|
|
<button mat-raised-button color="primary" (click)="addDataRepository()">
|
|
|
|
|
{{'DATASET-EDITOR.FIELDS.CREATE'|translate}}
|
|
|
|
@ -64,17 +69,17 @@
|
|
|
|
|
</app-external-item-listing>
|
|
|
|
|
|
|
|
|
|
<ng-template #dataRepositoriesTemplate let-suggestion let-i="index" let-callback="function">
|
|
|
|
|
<div>
|
|
|
|
|
<div class="col-md-2">
|
|
|
|
|
<p>
|
|
|
|
|
{{i+1}}) {{suggestion.get('label').value}}
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="col-md-8">
|
|
|
|
|
<mat-form-field>
|
|
|
|
|
<input matInput placeholder="{{'DATASET-EDITOR.FIELDS.DATAREPOSITORIES-INFO' | translate}}" type="text" name="info" [formControl]="suggestion.get('info')">
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="col-md-2">
|
|
|
|
|
<button mat-button (click)="callback(i)">
|
|
|
|
|
<mat-icon>close</mat-icon>
|
|
|
|
|
</button>
|
|
|
|
@ -83,7 +88,7 @@
|
|
|
|
|
</mat-card>
|
|
|
|
|
<mat-card>
|
|
|
|
|
<mat-card-header>
|
|
|
|
|
<mat-card-title class="thick">
|
|
|
|
|
<mat-card-title class="thick" *ngIf='!viewOnly'>
|
|
|
|
|
{{'DATASET-EDITOR.FIELDS.EXTERNAL-DATASETS' | translate}}
|
|
|
|
|
<button mat-raised-button color="primary" (click)="addExternalDataset()">
|
|
|
|
|
{{'DATASET-EDITOR.FIELDS.CREATE'|translate}}
|
|
|
|
@ -98,18 +103,18 @@
|
|
|
|
|
</app-external-item-listing>
|
|
|
|
|
|
|
|
|
|
<ng-template #externalDatasetsTemplate let-suggestion let-i="index" let-callback="function">
|
|
|
|
|
<div>
|
|
|
|
|
<div class="col-md-2">
|
|
|
|
|
<p>
|
|
|
|
|
{{i+1}}) {{suggestion.get('label').value}}
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="col-md-4">
|
|
|
|
|
<mat-form-field>
|
|
|
|
|
<input matInput placeholder="{{'DATASET-EDITOR.FIELDS.EXTERNAL-DATASET-INFO' | translate}}" type="text" name="info" [formControl]="suggestion.get('info')">
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
<div class="col-md-4">
|
|
|
|
|
<mat-form-field>
|
|
|
|
|
<mat-select placeholder="{{'DATASET-WIZARD.EDITOR.FIELDS.EXTERNAL-DATASET-TYPE' | translate}}" [formControl]="suggestion.get('type')">
|
|
|
|
|
<mat-option [value]="0">{{'TYPES.EXTERNAL-DATASET-TYPE.SOURCE' | translate}}</mat-option>
|
|
|
|
@ -117,7 +122,7 @@
|
|
|
|
|
</mat-select>
|
|
|
|
|
</mat-form-field>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="col-md-2">
|
|
|
|
|
<button mat-button (click)="callback(i)">
|
|
|
|
|
<mat-icon>close</mat-icon>
|
|
|
|
|
</button>
|
|
|
|
@ -127,7 +132,7 @@
|
|
|
|
|
|
|
|
|
|
<mat-card>
|
|
|
|
|
<mat-card-header>
|
|
|
|
|
<mat-card-title class="thick">
|
|
|
|
|
<mat-card-title class="thick" *ngIf='!viewOnly'>
|
|
|
|
|
{{'DATASET-EDITOR.FIELDS.REGISTRIES' | translate}}
|
|
|
|
|
<button mat-raised-button color="primary" (click)="addRegistry()">
|
|
|
|
|
{{'DATASET-EDITOR.FIELDS.CREATE'|translate}}
|
|
|
|
@ -138,16 +143,15 @@
|
|
|
|
|
placeholder="{{'DATASET-EDITOR.FIELDS.REGISTRIES' | translate}}" [parentTemplate]='registriesTemplate' [displayFunction]='registriesDisplayFunc'
|
|
|
|
|
[formGroup]="formGroup.get('registries')" [viewOnly]='viewOnly' [subtitleFunction]='dataRepositoryDisplaySubtitleFunc'
|
|
|
|
|
[autoCompleteConfiguration]="registriesAutoCompleteConfiguration" (onItemChange)="registriesOnItemChange($event)">
|
|
|
|
|
|
|
|
|
|
</app-external-item-listing>
|
|
|
|
|
|
|
|
|
|
<ng-template #registriesTemplate let-suggestion let-i="index" let-callback="function">
|
|
|
|
|
<div>
|
|
|
|
|
<div class="col-md-2">
|
|
|
|
|
<p>
|
|
|
|
|
{{i+1}}) {{suggestion.get('label').value}}
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="col-md-10">
|
|
|
|
|
<button mat-button (click)="callback(i)">
|
|
|
|
|
<mat-icon>close</mat-icon>
|
|
|
|
|
</button>
|
|
|
|
@ -157,7 +161,7 @@
|
|
|
|
|
|
|
|
|
|
<mat-card>
|
|
|
|
|
<mat-card-header>
|
|
|
|
|
<mat-card-title class="thick">
|
|
|
|
|
<mat-card-title class="thick" *ngIf='!viewOnly'>
|
|
|
|
|
{{'DATASET-EDITOR.FIELDS.SERVICES' | translate}}
|
|
|
|
|
<button mat-raised-button color="primary" (click)="addService()">
|
|
|
|
|
{{'DATASET-EDITOR.FIELDS.CREATE'|translate}}
|
|
|
|
@ -172,12 +176,12 @@
|
|
|
|
|
</app-external-item-listing>
|
|
|
|
|
|
|
|
|
|
<ng-template #servicesTemplate let-suggestion let-i="index" let-callback="function">
|
|
|
|
|
<div>
|
|
|
|
|
<div class="col-md-2">
|
|
|
|
|
<p>
|
|
|
|
|
{{i+1}}) {{suggestion.get('label').value}}
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="col-md-10">
|
|
|
|
|
<button mat-button (click)="callback(i)">
|
|
|
|
|
<mat-icon>close</mat-icon>
|
|
|
|
|
</button>
|
|
|
|
@ -199,12 +203,12 @@
|
|
|
|
|
</app-external-item-listing>
|
|
|
|
|
|
|
|
|
|
<ng-template #tagsTemplate let-suggestion let-i="index" let-callback="function">
|
|
|
|
|
<div>
|
|
|
|
|
<div class="col-md-2">
|
|
|
|
|
<p>
|
|
|
|
|
{{i+1}}) {{suggestion.get('name').value}}
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<div>
|
|
|
|
|
<div class="col-md-10">
|
|
|
|
|
<button mat-button (click)="callback(i)">
|
|
|
|
|
<mat-icon>close</mat-icon>
|
|
|
|
|
</button>
|
|
|
|
|