Adds text and button to add dataset on empty tab list on dashboard
This commit is contained in:
parent
8551e9140c
commit
ce24afd16f
|
@ -45,26 +45,35 @@
|
|||
<b>{{'DASHBOARD.DATASET-DESCRIPTIONS' | translate}}</b>
|
||||
{{'DASHBOARD.DMP-ABOUT-END' | translate}}</p>
|
||||
<div class="d-flex pt-4 pb-4 mt-3 mb-3">
|
||||
<button type="button" class="col-auto align-self-center yellow-btn">{{'DASHBOARD.ACTIONS.ADD-DATASET-DESCRIPTION' | translate}}</button>
|
||||
<button mat-raised-button type="button" class="col-auto align-self-center yellow-btn" [routerLink]="['/datasets/new']">{{'DASHBOARD.ACTIONS.ADD-DATASET-DESCRIPTION' | translate}}</button>
|
||||
</div>
|
||||
</div>
|
||||
<div class="latest-activity-title">Latest activity</div>
|
||||
<div class="latest-activity-title">{{'DASHBOARD.LATEST-ACTIVITY' | translate}}</div>
|
||||
<mat-tab-group mat-align-tabs="start" class="remove-border-bottom">
|
||||
<mat-tab label="All ({{this.totalRecents}})">
|
||||
<div class="col-auto pt-3"><input type="text" class="d-flex ml-auto" placeholder="  Search"></div>
|
||||
<mat-tab label="{{'DASHBOARD.ALL' | translate}} ({{totalRecents}})">
|
||||
<div *ngIf="totalRecents === 0" class="col-auto pt-3"><input type="text" class="d-flex ml-auto" placeholder="  Search"></div>
|
||||
<app-recent-edited-activity (totalCountRecentEdited)="onCountAllRecent($event)"></app-recent-edited-activity>
|
||||
<div *ngIf="totalRecents === 0" class="empty-list">{{'DASHBOARD.EMPTY-LIST' | translate}}</div>
|
||||
</mat-tab>
|
||||
<mat-tab label="{{'DASHBOARD.DRAFTS' | translate}} ({{this.totalDraftDatasets}})">
|
||||
<div class="col-auto pt-3"><input type="text" class="d-flex ml-auto" placeholder="  Search"></div>
|
||||
<mat-tab label="{{'DASHBOARD.DRAFTS' | translate}} ({{totalDraftDatasets}})">
|
||||
<div *ngIf="totalDraftDatasets === 0" class="col-auto pt-3"><input type="text" class="d-flex ml-auto" placeholder="  Search"></div>
|
||||
<app-drafts (totalCountDraftDatasets)="onCountDraftDatasets($event)"></app-drafts>
|
||||
<div *ngIf="totalDraftDatasets === 0" class="empty-list">{{'DASHBOARD.EMPTY-LIST' | translate}}</div>
|
||||
</mat-tab>
|
||||
<mat-tab label="{{'DASHBOARD.DMPS' | translate}} ({{this.totalDmps}})">
|
||||
<div class="col-auto pt-3"><input type="text" class="d-flex ml-auto" placeholder="  Search"></div>
|
||||
<mat-tab label="{{'DASHBOARD.DMPS' | translate}} ({{totalDmps}})">
|
||||
<div *ngIf="totalDmps === 0" class="col-auto pt-3"><input type="text" class="d-flex ml-auto" placeholder="  Search"></div>
|
||||
<app-recent-edited-dmp-activity (totalCountDmps)="onCountDmps($event)"></app-recent-edited-dmp-activity>
|
||||
<div *ngIf="totalDmps === 0" class="empty-list">{{'DASHBOARD.EMPTY-LIST' | translate}}</div>
|
||||
</mat-tab>
|
||||
<mat-tab label="{{'DASHBOARD.DATASET-DESCRIPTIONS' | translate}} ({{this.totalDatasets}})">
|
||||
<div class="col-auto pt-3"><input type="text" class="d-flex ml-auto" placeholder="  Search"></div>
|
||||
<mat-tab label="{{'DASHBOARD.DATASET-DESCRIPTIONS' | translate}} ({{totalDatasets}})">
|
||||
<div *ngIf="totalDatasets === 0" class="col-auto pt-3"><input type="text" class="d-flex ml-auto" placeholder="  Search"></div>
|
||||
<app-recent-edited-dataset-activity (totalCountDatasets)="onCountDatasets($event)"></app-recent-edited-dataset-activity>
|
||||
<div *ngIf="totalDatasets === 0" class="empty-list">{{'DASHBOARD.EMPTY-LIST' | translate}}</div>
|
||||
<div *ngIf="totalDatasets === 0" class="col-auto d-flex justify-content-center">
|
||||
<button mat-raised-button class="add-dataset" [routerLink]="['/datasets/new']">
|
||||
<mat-icon>add</mat-icon> {{'DASHBOARD.ACTIONS.ADD-DATASET' | translate}}
|
||||
</button>
|
||||
</div>
|
||||
</mat-tab>
|
||||
</mat-tab-group>
|
||||
</div>
|
||||
|
|
|
@ -307,6 +307,29 @@ input[type="text"] {
|
|||
padding: 0rem 7em 4rem 3rem;
|
||||
}
|
||||
|
||||
.empty-list {
|
||||
color: #212121;
|
||||
font-size: 1.25rem;
|
||||
font-weight: 300;
|
||||
letter-spacing: 0px;
|
||||
color: #212121;
|
||||
opacity: 0.6;
|
||||
display: flex;
|
||||
padding-top: 4.68rem;
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
.add-dataset {
|
||||
width: 142px;
|
||||
height: 40px;
|
||||
background: #f7dd72 0% 0% no-repeat padding-box;
|
||||
box-shadow: 0px 3px 6px #1e202029;
|
||||
border-radius: 30px;
|
||||
opacity: 1;
|
||||
margin-top: 2.5rem;
|
||||
margin-bottom: 1.5rem;
|
||||
}
|
||||
|
||||
::ng-deep .mat-tab-group.mat-primary .mat-ink-bar,
|
||||
.mat-tab-nav-bar.mat-primary .mat-ink-bar {
|
||||
background: #129d99;
|
||||
|
|
|
@ -1141,10 +1141,14 @@
|
|||
"GRANTS": "Grants",
|
||||
"RELATED-ORGANISATIONS": "Related Organisations",
|
||||
"DRAFTS": "Drafts",
|
||||
"ALL": "All",
|
||||
"EMPTY-LIST": "Nothing here yet.",
|
||||
"LATEST-ACTIVITY": "Latest Activity",
|
||||
"DMP-ABOUT-BEG": "A DMP in Argos consists of key information about research, such as purpose, objectives and researchers involved, but also about documentation of research datasets, namely",
|
||||
"DMP-ABOUT-END": ", that highlight the steps followed and the means used across data management activities.",
|
||||
"ACTIONS": {
|
||||
"ADD-DATASET-DESCRIPTION": "Add Dataset Description",
|
||||
"ADD-DATASET": "Add Dataset",
|
||||
"ADD-DMP-DESCRIPTION": "Add DMP Description"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -1128,8 +1128,12 @@
|
|||
"GRANTS": "Subvenciones",
|
||||
"RELATED-ORGANISATIONS": "Organizaciones Relacionadas",
|
||||
"DRAFTS": "Borradores",
|
||||
"ALL": "All",
|
||||
"LATEST-ACTIVITY": "Latest Activity",
|
||||
"EMPTY-LIST": "Nothing here yet.",
|
||||
"ACTIONS": {
|
||||
"ADD-DATASET-DESCRIPTION": "Agregar Dataset Descripción",
|
||||
"ADD-DATASET": "Add Dataset",
|
||||
"ADD-DMP-DESCRIPTION": "Agregar DMP Descripción"
|
||||
}
|
||||
},
|
||||
|
|
|
@ -1116,8 +1116,12 @@
|
|||
"GRANTS": "Grants",
|
||||
"RELATED-ORGANISATIONS": "Σχετικοί Οργανισμοί",
|
||||
"DRAFTS": "Προσχέδια",
|
||||
"ALL": "Όλα",
|
||||
"LATEST-ACTIVITY": "Latest Activity",
|
||||
"EMPTY-LIST": "Nothing here yet.",
|
||||
"ACTIONS": {
|
||||
"ADD-DATASET-DESCRIPTION": "Προσθήκη Περιγραφή Dataset",
|
||||
"ADD-DATASET": "Add Dataset",
|
||||
"ADD-DMP-DESCRIPTION": "Προσθήκη Περιγραφή DMP"
|
||||
}
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue