From 4885fbe6875d9226c043b6ae877c871e4237526f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20M=C3=BCller?= Date: Fri, 9 May 2014 17:47:06 +0200 Subject: [PATCH] user pdf application --- app/View/Job/application.ctp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/View/Job/application.ctp b/app/View/Job/application.ctp index e75eacc..95de964 100644 --- a/app/View/Job/application.ctp +++ b/app/View/Job/application.ctp @@ -27,10 +27,10 @@ $str = __('dreamjob.application.close'); if($application['DreamjobJobApplication']['closed']) $str = __('dreamjob.application.close.actived'); - ?> - Html->link($str,array('controller'=>'job','action'=>'applicationGet','id'=>$application['DreamjobJobApplication']['id'],'hiv'=>'hiv')); ?> - -   + echo $this->Html->link($str,array('controller'=>'job','action'=>'applicationGet','id'=>$application['DreamjobJobApplication']['id'],'hiv'=>'hiv')); + }else{ + echo $this->Html->link(__('dreamjob.application.mappePDF'),array('controller'=>'pdf','action'=>'applicationGetPdf','id'=>$application['DreamjobJobApplication']['id']),array('rel'=>'external','target'=>'_blank')); + } ?>