Revert "Adding metadata for social networks on signature page"
This reverts commit 2948e9b961.
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
import { Component, ElementRef, Input, OnInit } from '@angular/core';
|
import { Component, Input, OnInit } from '@angular/core';
|
||||||
import { ActivatedRoute, ParamMap } from "@angular/router";
|
import { ActivatedRoute, ParamMap } from "@angular/router";
|
||||||
import { DomSanitizer, Meta } from "@angular/platform-browser";
|
import { DomSanitizer } from "@angular/platform-browser";
|
||||||
import { ImageUploaderCrudService } from "@common/crud/crud.service";
|
import { ImageUploaderCrudService } from "@common/crud/crud.service";
|
||||||
|
|
||||||
|
|
||||||
@@ -98,7 +98,12 @@ export class ContractsCardComponent extends BaseContractsComponent{
|
|||||||
<div class="row" *ngIf="!this.affixed">
|
<div class="row" *ngIf="!this.affixed">
|
||||||
<signature-drawer class="col-7"
|
<signature-drawer class="col-7"
|
||||||
(signatureDrawn$)="postSignature($event)"></signature-drawer>
|
(signatureDrawn$)="postSignature($event)"></signature-drawer>
|
||||||
<div class="col-5" i18n [innerHTML]="this.legalText"></div>
|
<div class="col-5" i18n>
|
||||||
|
<p>Cette page est à la destination exclusive de <strong>{{ this.signatory }}</strong></p>
|
||||||
|
<p>Si vous n'êtes <strong>pas</strong> {{ this.signatory }}, veuillez <strong>fermer cette page immédiatement</strong> et surpprimer tous les liens en votre possession menant vers celle-ci.</p>
|
||||||
|
<p>En vous maintenant et/ou en interagissant avec cette page, vous enfreignez l'article L.229 du code pénal de l'Etat de San Andreas pour <strong>usurpation d'identité</strong> et vous vous exposez ainsi à une amende de 20 000$ ainsi qu'à des poursuites civiles.</p>
|
||||||
|
<p>Le cabinet Cooper, Hillman & Toshi LLC</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
</ngb-panel>
|
</ngb-panel>
|
||||||
@@ -112,13 +117,10 @@ export class ContractsSignatureComponent implements OnInit {
|
|||||||
|
|
||||||
affixed = false;
|
affixed = false;
|
||||||
|
|
||||||
public legalText: string = "";
|
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private sanitizer: DomSanitizer,
|
private sanitizer: DomSanitizer,
|
||||||
private crudService: ImageUploaderCrudService,
|
private crudService: ImageUploaderCrudService,
|
||||||
private meta: Meta,
|
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
@@ -132,26 +134,8 @@ export class ContractsSignatureComponent implements OnInit {
|
|||||||
} else {
|
} else {
|
||||||
this.signatory = this.signature.entity.entity_data.firstname + " " + this.signature.entity.entity_data.lastname;
|
this.signatory = this.signature.entity.entity_data.firstname + " " + this.signature.entity.entity_data.lastname;
|
||||||
}
|
}
|
||||||
|
})
|
||||||
this.legalText = `
|
})
|
||||||
<p>Cette page est à la destination exclusive de <strong>${ this.signatory }</strong></p>
|
|
||||||
<p>Si vous n'êtes <strong>pas</strong> ${ this.signatory }, veuillez <strong>fermer cette page immédiatement</strong> et surpprimer tous les liens en votre possession menant vers celle-ci.</p>
|
|
||||||
<p>En vous maintenant et/ou en interagissant avec cette page, vous enfreignez l'article L.229 du code pénal de l'Etat de San Andreas pour <strong>usurpation d'identité</strong> et vous vous exposez ainsi à une amende de 20 000$ ainsi qu'à des poursuites civiles.</p>
|
|
||||||
<p>Le cabinet Cooper, Hillman & Toshi LLC</p>
|
|
||||||
`
|
|
||||||
|
|
||||||
this.meta.updateTag({
|
|
||||||
name: 'og:title',
|
|
||||||
property: 'og:title',
|
|
||||||
content: this.signature.contract_label});
|
|
||||||
this.meta.updateTag({
|
|
||||||
name: 'og:description',
|
|
||||||
property: 'og:description',
|
|
||||||
content: this.legalText.replace(/<[^>]*>/g, '').trim()
|
|
||||||
});
|
|
||||||
this.meta.updateTag({ name: 'og:image', content: `${location.origin}/assets/logo.png` });
|
|
||||||
});
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getPreview() {
|
getPreview() {
|
||||||
|
|||||||
Reference in New Issue
Block a user