Skip to content
Snippets Groups Projects
Commit 62ff30c3 authored by Damien's avatar Damien
Browse files

[FEAT] [PARA V2] Add links panel

parent 1f7cd990
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,9 @@
<div title="Avancement" class="item" [ngClass]="{'activeTabSignatureBook': headerTab == 4}" (click)="changeSignatureBookLeftContent(4)">
<i class="fa fa-line-chart fa-2x"></i>
</div>
<div title="Liaisons" class="item" [ngClass]="{'activeTabSignatureBook': headerTab == 5}" (click)="changeSignatureBookLeftContent(5)">
<i class="fa fa-link fa-2x"></i>
</div>
</div>
<div id="labelSignatureBook" title="{{signatureBook.currentAction.actionLabel}}" ><div>{{signatureBook.currentAction.actionLabel}}</div></div>
<div class="others">
......@@ -86,6 +89,9 @@
<div *ngIf="headerTab == 4" class="contentShow" style="width:98%;">
<iframe [src]="histViewerLink | safeUrl"></iframe>
</div>
<div *ngIf="headerTab == 5" class="contentShow" style="width:98%;">
<iframe [src]="linksViewerLink | safeUrl"></iframe>
</div>
</div>
<div class="hideLeftContent" (click)="displayPanel('LEFT')">
<i class="fa fa-chevron-left" aria-hidden="true" *ngIf="showLeftPanel"></i>
......
......@@ -59,6 +59,7 @@ var SignatureBookComponent = (function () {
this.notesViewerLink = "";
this.visaViewerLink = "";
this.histViewerLink = "";
this.linksViewerLink = "";
window['angularSignatureBookComponent'] = {
componentAfterAttach: function (value) { return _this.processAfterAttach(value); },
componentAfterAction: function () { return _this.processAfterAction(); },
......@@ -108,6 +109,7 @@ var SignatureBookComponent = (function () {
_this.notesViewerLink = "index.php?display=true&module=notes&page=notes&identifier=" + _this.resId + "&origin=document&coll_id=letterbox_coll&load&size=full";
_this.visaViewerLink = "index.php?display=true&page=show_visa_tab&module=visa&resId=" + _this.resId + "&collId=letterbox_coll&visaStep=true";
_this.histViewerLink = "index.php?display=true&dir=indexing_searching&page=document_workflow_history&id=" + _this.resId + "&coll_id=letterbox_coll&load&size=full";
_this.linksViewerLink = "index.php?display=true&page=show_links_tab&id=" + _this.resId;
_this.leftContentWidth = "42%";
_this.rightContentWidth = "42%";
if (_this.signatureBook.documents[0]) {
......
......@@ -56,9 +56,10 @@ export class SignatureBookComponent implements OnInit {
notesViewerLink : string = "";
visaViewerLink : string = "";
histViewerLink : string = "";
linksViewerLink : string = "";
constructor(public http: Http, private route: ActivatedRoute, private router: Router, private zone:NgZone) {
constructor(public http: Http, private route: ActivatedRoute, private router: Router, private zone: NgZone) {
window['angularSignatureBookComponent'] = {
componentAfterAttach: (value: string) => this.processAfterAttach(value),
componentAfterAction: () => this.processAfterAction(),
......@@ -109,10 +110,11 @@ export class SignatureBookComponent implements OnInit {
this.showTopRightPanel = false;
this.showAttachmentEditionPanel = false;
this.notesViewerLink = "index.php?display=true&module=notes&page=notes&identifier=" + this.resId + "&origin=document&coll_id=letterbox_coll&load&size=full";
this.visaViewerLink = "index.php?display=true&page=show_visa_tab&module=visa&resId=" + this.resId + "&collId=letterbox_coll&visaStep=true";
this.histViewerLink = "index.php?display=true&dir=indexing_searching&page=document_workflow_history&id=" + this.resId + "&coll_id=letterbox_coll&load&size=full";
this.visaViewerLink = "index.php?display=true&page=show_visa_tab&module=visa&resId=" + this.resId + "&collId=letterbox_coll&visaStep=true";
this.histViewerLink = "index.php?display=true&dir=indexing_searching&page=document_workflow_history&id=" + this.resId + "&coll_id=letterbox_coll&load&size=full";
this.linksViewerLink = "index.php?display=true&page=show_links_tab&id=" + this.resId;
this.leftContentWidth = "42%";
this.leftContentWidth = "42%";
this.rightContentWidth = "42%";
if (this.signatureBook.documents[0]) {
this.leftViewerLink = this.signatureBook.documents[0].viewerLink;
......
Source diff could not be displayed: it is too large. Options to address this: view the blob.
......@@ -3,6 +3,9 @@ require_once 'core'.DIRECTORY_SEPARATOR.'class'.DIRECTORY_SEPARATOR.'class_reque
require_once 'core' . DIRECTORY_SEPARATOR . 'class' . DIRECTORY_SEPARATOR . 'class_security.php';
require_once('core/class/LinkController.php');
if (!empty($_REQUEST['id'])) {
$_SESSION['doc_id'] = $_REQUEST['id'];
}
$security = new security();
$right = $security->test_right_doc($_SESSION['collection_id_choice'], $_SESSION['doc_id']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment