diff --git a/dmp-frontend/src/app/app-routing.module.ts b/dmp-frontend/src/app/app-routing.module.ts index d761efa26..4015e7222 100644 --- a/dmp-frontend/src/app/app-routing.module.ts +++ b/dmp-frontend/src/app/app-routing.module.ts @@ -21,7 +21,7 @@ const appRoutes: Routes = [ { path: 'projects', component: ProjectsComponent}, { path: 'project', component: ProjectDetailedComponent}, { path: 'dmps', component: DmpComponent}, - { path: 'dmp', component: DmpDetailedComponent }, + { path: 'dmp', component: DmpDetailedComponent}, { path: 'welcome', component: HomepageComponent}, { path: '', redirectTo: '/login', pathMatch: 'full' }, { path: '**', component: PageNotFoundComponent }, diff --git a/dmp-frontend/src/app/app.component.html b/dmp-frontend/src/app/app.component.html index 31fb54d23..cd2055e64 100644 --- a/dmp-frontend/src/app/app.component.html +++ b/dmp-frontend/src/app/app.component.html @@ -85,8 +85,6 @@ - - \ No newline at end of file diff --git a/dmp-frontend/src/app/dmps/dmp.component.css b/dmp-frontend/src/app/dmps/dmp.component.css index f158a1bec..56c7ce68f 100644 --- a/dmp-frontend/src/app/dmps/dmp.component.css +++ b/dmp-frontend/src/app/dmps/dmp.component.css @@ -66,4 +66,55 @@ tr.hover:hover > * { .url-like{ color: #0645AD; cursor: pointer; -} \ No newline at end of file +} + + + + + + +/* START - FOR DETAILS MODALS */ + + .modal.modal-fullscreen .modal-dialog, + .modal.modal-fullscreen .modal-content { + position: absolute; + left: 1%; + right: 1%; + top: 1%; + bottom: 1%; + } + .modal.modal-fullscreen .modal-dialog { + margin: 0; + width: 98%; + animation-duration:0.5s; + } + .modal.modal-fullscreen .modal-content { + border: none; + -moz-border-radius: 0; + border-radius: 0; + -webkit-box-shadow: inherit; + -moz-box-shadow: inherit; + -o-box-shadow: inherit; + box-shadow: inherit; + /* change bg color below */ + /* background:#1abc9c; */ + } + .modal.modal-fullscreen.force-fullscreen { + /* Remove the padding inside the body */ + } + .modal.modal-fullscreen.force-fullscreen .modal-body { + padding: 0; + } + .modal.modal-fullscreen.force-fullscreen .modal-header, + .modal.modal-fullscreen.force-fullscreen .modal-footer { + left: 0; + position: absolute; + right: 0; + } + .modal.modal-fullscreen.force-fullscreen .modal-header { + top: 0; + } + .modal.modal-fullscreen.force-fullscreen .modal-footer { + bottom: 0; + } + /* END - FOR DETAILS MODALS */ \ No newline at end of file diff --git a/dmp-frontend/src/app/dmps/dmp.component.ts b/dmp-frontend/src/app/dmps/dmp.component.ts index c26303cb6..7cc3155e6 100644 --- a/dmp-frontend/src/app/dmps/dmp.component.ts +++ b/dmp-frontend/src/app/dmps/dmp.component.ts @@ -265,7 +265,8 @@ export class DmpComponent implements OnInit{ viewDetailedDMP(dmp){ console.log(dmp) - this.router.navigate(['/dmp'], { queryParams: { "dmpid":dmp.id, "label":dmp.label }}); + this.router.navigate([{ outlets: { dmpDetails: [ 'dmp' ] }}]); + //this.router.navigate(['/dmp'], { queryParams: { "dmpid":dmp.id, "label":dmp.label }}); } viewDetailedProject(dmp){ diff --git a/dmp-frontend/src/app/dmps/dmps.html b/dmp-frontend/src/app/dmps/dmps.html index 6ffb2966c..777d9d6d6 100644 --- a/dmp-frontend/src/app/dmps/dmps.html +++ b/dmp-frontend/src/app/dmps/dmps.html @@ -1,232 +1,269 @@ - - - - +#mf="mfDataTable" [mfRowsOnPage]="rowsOnPage" [(mfSortBy)]="sortBy" [(mfSortOrder)]="sortOrder"> + + + + - - + + - - - - - - - - - - - + + + + + + + + + + + - - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + +
- - - -
+ + + + - -
- - -
-
+ +
+ + +
+
- ID - - Label - - Version - - Previous - - Project - - Description - - Created at - - Status - - Actions - - -
+ ID + + Label + + Version + + Previous + + Project + + Description + + Created at + + Status + + Actions + + +
No elements
No elements
{{dmp?.id}}{{dmp?.version}}{{dmp?.previous}}{{(dmp?.description?.length > 40) ? (dmp?.description | slice:0:40)+'...':(dmp?.description) }}{{dmp?.created | date:'yyyy-MM-dd HH:mm:ss Z'}}{{dmp?.status | statusToString }} - - - - - - - - - -
- - - -
{{dmp?.id}}{{dmp?.version}}{{dmp?.previous}}{{(dmp?.description?.length > 40) ? (dmp?.description | slice:0:40)+'...':(dmp?.description) }}{{dmp?.created | date:'yyyy-MM-dd HH:mm:ss Z'}}{{dmp?.status | statusToString }} + + + + + + + + + +
+ + + +