added descriptin breadcrumbs
This commit is contained in:
parent
331e843cc1
commit
fc6e12fb70
|
@ -86,10 +86,13 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="col-auto dmp-label ml-1">{{'DESCRIPTION-EDITOR.DMP' | translate}}</div>
|
<div class="col-auto dmp-label ml-1">{{'DESCRIPTION-EDITOR.DMP' | translate}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="row stepper-title"> <div class="col-auto"><span>{{'DESCRIPTION-EDITOR.TOC.TITLE' | translate}}</span></div></div>
|
<div class="row stepper-title">
|
||||||
|
<div class="col-12 pl-0 mb-1"><span>{{'DESCRIPTION-EDITOR.TOC.TITLE' | translate}}</span></div>
|
||||||
|
<div class="col-12 pl-0"><app-navigation-breadcrumb /></div>
|
||||||
|
</div>
|
||||||
<div class="row stepper-options" id="stepper-options">
|
<div class="row stepper-options" id="stepper-options">
|
||||||
<div class="col-12">
|
<div class="col-12">
|
||||||
<div class="container stepper-list">
|
<div class="container stepper-list ml-1">
|
||||||
<div class="row" *ngIf="!descriptionInfoValid()">
|
<div class="row" *ngIf="!descriptionInfoValid()">
|
||||||
<div (click)="table0fContents.onToCentrySelected()" class="col-12 main-info" [ngClass]="{'active': this.step === 0, 'text-danger': countErrorsOfBaseInfoPage > 0}">{{'DESCRIPTION-EDITOR.TOC.MAIN-INFO' | translate}} <span *ngIf="countErrorsOfBaseInfoPage > 0">({{ countErrorsOfBaseInfoPage }})</span></div>
|
<div (click)="table0fContents.onToCentrySelected()" class="col-12 main-info" [ngClass]="{'active': this.step === 0, 'text-danger': countErrorsOfBaseInfoPage > 0}">{{'DESCRIPTION-EDITOR.TOC.MAIN-INFO' | translate}} <span *ngIf="countErrorsOfBaseInfoPage > 0">({{ countErrorsOfBaseInfoPage }})</span></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -19,8 +19,9 @@ const routes: Routes = [
|
||||||
'entity': DescriptionEditorResolver
|
'entity': DescriptionEditorResolver
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
|
breadcrumbs: true,
|
||||||
...BreadcrumbService.generateRouteDataConfiguration({
|
...BreadcrumbService.generateRouteDataConfiguration({
|
||||||
title: 'BREADCRUMBS.EDIT-DESCRIPTION'
|
hideNavigationItem: true
|
||||||
}),
|
}),
|
||||||
getFromTitleService: true,
|
getFromTitleService: true,
|
||||||
usePrefix: false
|
usePrefix: false
|
||||||
|
@ -40,8 +41,9 @@ const routes: Routes = [
|
||||||
'entity': DescriptionEditorResolver
|
'entity': DescriptionEditorResolver
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
|
breadcrumbs: true,
|
||||||
...BreadcrumbService.generateRouteDataConfiguration({
|
...BreadcrumbService.generateRouteDataConfiguration({
|
||||||
title: 'BREADCRUMBS.EDIT-DESCRIPTION'
|
hideNavigationItem: true
|
||||||
}),
|
}),
|
||||||
title: 'DESCRIPTION-EDITOR.TITLE-EDIT-DESCRIPTION'
|
title: 'DESCRIPTION-EDITOR.TITLE-EDIT-DESCRIPTION'
|
||||||
// ,
|
// ,
|
||||||
|
@ -59,8 +61,9 @@ const routes: Routes = [
|
||||||
'entity': DescriptionEditorResolver
|
'entity': DescriptionEditorResolver
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
|
breadcrumbs: true,
|
||||||
...BreadcrumbService.generateRouteDataConfiguration({
|
...BreadcrumbService.generateRouteDataConfiguration({
|
||||||
title: 'BREADCRUMBS.EDIT-DESCRIPTION'
|
hideNavigationItem: true
|
||||||
}),
|
}),
|
||||||
title: 'DESCRIPTION-EDITOR.TITLE-NEW'
|
title: 'DESCRIPTION-EDITOR.TITLE-NEW'
|
||||||
// ,
|
// ,
|
||||||
|
@ -78,8 +81,9 @@ const routes: Routes = [
|
||||||
'entity': DescriptionEditorResolver
|
'entity': DescriptionEditorResolver
|
||||||
},
|
},
|
||||||
data: {
|
data: {
|
||||||
|
breadcrumbs: true,
|
||||||
...BreadcrumbService.generateRouteDataConfiguration({
|
...BreadcrumbService.generateRouteDataConfiguration({
|
||||||
title: 'BREADCRUMBS.EDIT-DESCRIPTION'
|
hideNavigationItem: true
|
||||||
}),
|
}),
|
||||||
title: 'DESCRIPTION-EDITOR.TITLE-NEW'
|
title: 'DESCRIPTION-EDITOR.TITLE-NEW'
|
||||||
// ,
|
// ,
|
||||||
|
|
|
@ -15,7 +15,16 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p *ngIf="listingItems && listingItems.length > 0 || this.lookup.like" class="col-auto header-title">{{(isPublic ? 'DESCRIPTION-LISTING.TITLE-EXPLORE' : 'DESCRIPTION-LISTING.TITLE') | translate}}</p>
|
<div class="col-auto header-title">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12">
|
||||||
|
<p *ngIf="listingItems && listingItems.length > 0 || this.lookup.like">{{(isPublic ? 'DESCRIPTION-LISTING.TITLE-EXPLORE' : 'DESCRIPTION-LISTING.TITLE') | translate}}</p>
|
||||||
|
</div>
|
||||||
|
<div class="col-12">
|
||||||
|
<app-navigation-breadcrumb />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div *ngIf="listingItems && listingItems.length > 0 && !isPublic || this.lookup.like" class="ml-auto">
|
<div *ngIf="listingItems && listingItems.length > 0 && !isPublic || this.lookup.like" class="ml-auto">
|
||||||
<div class="col-auto">
|
<div class="col-auto">
|
||||||
<button mat-raised-button class="add-description align-self-center yellow-btn" (click)="addNewDescription()">
|
<button mat-raised-button class="add-description align-self-center yellow-btn" (click)="addNewDescription()">
|
||||||
|
|
|
@ -1,10 +1,17 @@
|
||||||
<div class="main-content pl-5 pr-5">
|
<div class="main-content pl-5 pr-5">
|
||||||
<div class="container-fluid pl-0 pr-0">
|
<div class="container-fluid pl-0 pr-0">
|
||||||
<div *ngIf="description">
|
<div *ngIf="description">
|
||||||
<a class="row mb-2 pl-1" (click)="goBack()" role="button">
|
<div class="row">
|
||||||
<mat-icon class="back-icon pointer">chevron_left</mat-icon>
|
<div class="col-12 pl-2 mb-3">
|
||||||
<p class="label-txt pointer">{{'DESCRIPTION-OVERVIEW.ACTIONS.BACK' | translate}}</p>
|
<app-navigation-breadcrumb />
|
||||||
</a>
|
</div>
|
||||||
|
<div class="col-12 mb-4 pl-1">
|
||||||
|
<a (click)="goBack()" role="button">
|
||||||
|
<mat-icon class="back-icon pointer">chevron_left</mat-icon>
|
||||||
|
<span class="label-txt pointer">{{'DESCRIPTION-OVERVIEW.ACTIONS.BACK' | translate}}</span>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-12 col-lg-8 pl-2">
|
<div class="col-12 col-lg-8 pl-2">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { RouterModule, Routes } from '@angular/router';
|
import { RouterModule, Routes } from '@angular/router';
|
||||||
import { DescriptionOverviewComponent } from './description-overview.component';
|
import { DescriptionOverviewComponent } from './description-overview.component';
|
||||||
|
import { BreadcrumbService } from '@app/ui/misc/breadcrumb/breadcrumb.service';
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{
|
{
|
||||||
|
@ -8,6 +9,9 @@ const routes: Routes = [
|
||||||
component: DescriptionOverviewComponent,
|
component: DescriptionOverviewComponent,
|
||||||
data: {
|
data: {
|
||||||
breadcrumb: true,
|
breadcrumb: true,
|
||||||
|
...BreadcrumbService.generateRouteDataConfiguration({
|
||||||
|
hideNavigationItem: true
|
||||||
|
}),
|
||||||
title: 'GENERAL.TITLES.DATASET-OVERVIEW'
|
title: 'GENERAL.TITLES.DATASET-OVERVIEW'
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -16,6 +20,9 @@ const routes: Routes = [
|
||||||
component: DescriptionOverviewComponent,
|
component: DescriptionOverviewComponent,
|
||||||
data: {
|
data: {
|
||||||
breadcrumb: true,
|
breadcrumb: true,
|
||||||
|
...BreadcrumbService.generateRouteDataConfiguration({
|
||||||
|
hideNavigationItem: true
|
||||||
|
}),
|
||||||
title: 'GENERAL.TITLES.DATASET-OVERVIEW'
|
title: 'GENERAL.TITLES.DATASET-OVERVIEW'
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,8 +5,6 @@
|
||||||
<div class="col-12 pl-2 mb-3">
|
<div class="col-12 pl-2 mb-3">
|
||||||
<app-navigation-breadcrumb />
|
<app-navigation-breadcrumb />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-12 mb-4 pl-1">
|
<div class="col-12 mb-4 pl-1">
|
||||||
<a (click)="goBack()" role="button">
|
<a (click)="goBack()" role="button">
|
||||||
<mat-icon class="back-icon pointer">chevron_left</mat-icon>
|
<mat-icon class="back-icon pointer">chevron_left</mat-icon>
|
||||||
|
|
Loading…
Reference in New Issue