Curators Page add privacy policy statement.

git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-admin-portal/trunk@56897 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
k.triantafyllou 2019-08-27 09:23:40 +00:00
parent 79813a774e
commit c273aa361f
3 changed files with 32 additions and 10 deletions

View File

@ -1,4 +1,5 @@
<ng-template #buttons>
<!--<a class="portal-link uk-margin-small-right" (click)="privacy()">Privacy policy statement</a>-->
<button class="uk-button uk-margin-small-right" (click)="resetMessages(); resetForm()">Cancel</button>
<button *ngIf="enabled && (hasChanged || affiliationsChanged)" class="uk-button uk-button-primary" (click)="resetMessages(); updateCurator()">Save</button>
<button *ngIf="!enabled || (!hasChanged && !affiliationsChanged)" class="uk-button uk-button-default" disabled>Save</button>
@ -9,9 +10,15 @@
<span class="loading-gif uk-align-center"></span>
</div>
<div *ngIf="curatorId != null && curator != null && !showLoading" class="uk-width-1-1 uk-margin-left">
<div class="uk-alert uk-alert-primary uk-margin-top-large">
<span class="uk-margin-small-right uk-icon" uk-icon="info"></span>
Manage your personal info. <br>Your personal info will be visible in the Curators' page of your Community Gateway.
<div class="uk-alert uk-alert-primary uk-flex uk-flex-middle">
<span class="uk-icon uk-margin-small-right" uk-icon="info"></span>
<div>
Your personal info will be visible in the Curators' page of your Community Gateway.
Read <a (click)="privacy()">privacy policy statement</a>.<br>
<span *ngIf="!newCurator && !curatorsEnabled">
Curators' page is disabled. Please enable it <a routerLink="/pages" routerLinkActive="router-link-active" [queryParams]="{communityId: communityId, type: 'other'}">here</a>.
</span>
</div>
</div>
</div>
<table *ngIf="curatorId != null && curator != null && !showLoading" class="uk-width-1-2@m uk-width-1-1@s uk-align-center">
@ -79,11 +86,6 @@
<tr>
<td class="uk-text-right"></td>
<td>
<div *ngIf="!newCurator && !curatorsEnabled" class="uk-alert uk-alert-warning" role="alert">
<span class="uk-margin-small-right uk-icon" uk-icon="warning">
</span>
Community's Curators page is disabled. Please enable it <a routerLink="/pages" routerLinkActive="router-link-active" [queryParams]="{communityId: communityId, type: 'other'}">here</a>.
</div>
<div *ngIf="updateErrorMessage" class="uk-alert uk-alert-danger" role="alert">{{updateErrorMessage}}</div>
<div *ngIf="successfulSaveMessage" class="uk-alert uk-alert-success" role="alert">{{successfulSaveMessage}}</div>
</tr>
@ -96,7 +98,7 @@
</affiliations>
</div>
</div>
<div class="uk-float-right uk-visible@m" style="z-index: 100; bottom: 45px; position: fixed; right: 45px;">
<div class="uk-float-right uk-flex uk-flex-middle uk-visible@m" style="z-index: 100; bottom: 45px; position: fixed; right: 45px;">
<ng-container *ngTemplateOutlet="buttons"></ng-container>
</div>
<div class="uk-float-right uk-margin-bottom uk-hidden@m">
@ -105,3 +107,13 @@
<modal-alert #removePhotoModal (alertOutput)="removePhoto()">
Your photo will be removed after you save your data. Are you sure you want to proceed?
</modal-alert>
<modal-alert #privacyStatement (alertOutput)="privacyStatement.cancel()">
<div class="">
Your personal data and photo are processed by OpenAIRE in conformity with personal data protection legal framework.
They will be stored safely in our system for as long as OpenAIRE exists. Since you press the "save" button,
you give us the consent to make them public in your Community Gateway to let users know who is
configuring the platform. You always have the right to exercise your rights and ask for access,
rectification, erasure and restriction of your data. Please contact <a href="mailto:rcd-helpdesk@openaire.eu">rcd-helpdesk@openaire.eu</a> if
you have any inquiries.
</div>
</modal-alert>

View File

@ -10,6 +10,7 @@ import {Curator} from '../../openaireLibrary/utils/entities/CuratorInfo';
import {HelperFunctions} from '../../openaireLibrary/utils/HelperFunctions.class';
import {UtilitiesService} from '../../openaireLibrary/services/utilities.service';
import {HelpContentService} from '../../services/help-content.service';
import {AlertModal} from '../../openaireLibrary/utils/modal/alert';
@Component({
selector: 'curator',
@ -39,6 +40,8 @@ export class CuratorComponent implements OnInit {
public enabled = true;
private deletePhoto = false;
@ViewChild('privacyStatement') privacyStatement: AlertModal;
constructor(private element: ElementRef,
private route: ActivatedRoute,
private _router: Router,
@ -278,4 +281,11 @@ export class CuratorComponent implements OnInit {
this.hasChanged = true;
this.photo = 'assets/common-assets/curator-default.png';
}
privacy() {
this.privacyStatement.cancelButton = false;
this.privacyStatement.okButtonText = 'Close';
this.privacyStatement.alertTitle = 'Privacy policy statement'
this.privacyStatement.open();
}
}

View File

@ -43,7 +43,7 @@
"feedbackmailForMissingEntities" :"feedback@openaire.eu",
"cacheUrl" :"http://scoobydoo.di.uoa.gr:3000/get?url=",
"adminToolsAPIURL" :"http://scoobydoo.di.uoa.gr:8080/uoa-admin-tools/",
"adminToolsAPIURL" :"http://mpagasas.di.uoa.gr:8080/uoa-admin-tools/",
"adminToolsCommunity" :"openaire",
"communityAPI": "https://dev-openaire.d4science.org/openaire/community/",