minor improvement

This commit is contained in:
Joshua Perry 2023-02-05 12:11:41 +00:00
parent ef2da9f4ba
commit 76ef980fdf
1 changed files with 3 additions and 2 deletions

View File

@ -65,9 +65,10 @@ class Portal {
}
public function applicants() {
$job = $this->jobsTable->find(['id'], ['value0' => $_GET['job_id']])[0];
$this->vars['table'] = 'applicant_table.html.php';
$this->vars['apps'] = $this->appsTable->find(['jobId'], ['value0' => $_GET['job_id']]);
$this->vars['job'] = $this->jobsTable->find(['id'], ['value0' => $_GET['job_id']])[0]->title;
$this->vars['apps'] = $job->getApps();
$this->vars['job'] = $job->title;
return ['template' => 'portal.html.php',
'title' => 'Jo\'s Jobs- Applicants',
'vars' => $this->vars];