From 39ec57c10cf833eafe65d491055a6a38b53cd5bb Mon Sep 17 00:00:00 2001 From: Olusesan Ameye Date: Sat, 21 May 2022 12:58:19 -0400 Subject: [PATCH] fix --- www/application/controllers/Jobs.php | 28 +++++++++++++++++-- .../views/jobs/view_startcreate.php | 4 +-- 2 files changed, 28 insertions(+), 4 deletions(-) diff --git a/www/application/controllers/Jobs.php b/www/application/controllers/Jobs.php index 44040695..8b7b722a 100644 --- a/www/application/controllers/Jobs.php +++ b/www/application/controllers/Jobs.php @@ -907,15 +907,39 @@ echo $this->getMarketInterestMessage( $in['offer_code'], $out['client_id'] ); return $this->job_model->addGroupMemberForm($group_id); } + private function getJobTemplateFill($template_page){ + $templateList = $this->jobsTemplates(); + + foreach ($templateList as $row){ + if ( $row['ID'] == trim($template_page)){ + return $row; + } + } + return []; + } public function create() { $data = $this->getSessionArray(); + + $template_page = ($this->uri->segment(3)) ? $this->uri->segment(3) : ''; + $preFill = $this->getJobTemplateFill($template_page); + if(!empty($preFill)) + { + $title = $preFill['name']; + $description = $preFill['description']; + } + else + { + $title = NULL; + $description = NULL; + } + + $mybalance = 0; $data['job_message'] = ''; // print_r($_SESSION); - $title = NULL; - $description = NULL; + $job_detail = NULL; $timeline = NULL; $country = 'NG'; diff --git a/www/application/views/jobs/view_startcreate.php b/www/application/views/jobs/view_startcreate.php index 9801df93..9ff42a7f 100644 --- a/www/application/views/jobs/view_startcreate.php +++ b/www/application/views/jobs/view_startcreate.php @@ -38,7 +38,7 @@
-
+
@@ -61,7 +61,7 @@ estimate- days - Continue + Continue