summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJayaram R Pai2014-07-08 11:43:49 +0530
committerJayaram R Pai2014-07-08 11:43:49 +0530
commita15bff01a9627af8f779041c73ba1a0d5419e4c7 (patch)
tree93c3ef5e0c1b46a2cdb9937a5eb99d8b5fad173c
parentb08caec8bde707c912489b6df1448f5a9d3ce4ac (diff)
downloadjob_portal-a15bff01a9627af8f779041c73ba1a0d5419e4c7.tar.gz
job_portal-a15bff01a9627af8f779041c73ba1a0d5419e4c7.tar.bz2
job_portal-a15bff01a9627af8f779041c73ba1a0d5419e4c7.zip
seperated job details and application form
-rw-r--r--job_portal.module15
1 files changed, 14 insertions, 1 deletions
diff --git a/job_portal.module b/job_portal.module
index 4bf3005..acc1d1f 100644
--- a/job_portal.module
+++ b/job_portal.module
@@ -16,6 +16,12 @@
"access arguments" => array("access job_portal"),
"type" => MENU_CALLBACK,
);
+ $items["jobs/apply"] = array(
+ "title" => "FOSSEE Job Portal - Application Form",
+ "page callback" => "job_portal_appplication_page",
+ "access arguments" => array("access job_portal"),
+ "type" => MENU_CALLBACK,
+ );
return $items;
}
@@ -164,8 +170,9 @@
<strong>Qualification</strong>: {$row->qualification}
<strong>Skills</strong>: {$row->skills}
<strong>Job Responsibilities</strong>: {$row->responsibilities}
- <strong>Location</strong>: {$row->location}
+ <strong>Location</strong>: {$row->location}<br><br>
";
+ $collapser_content .= l("Apply Now", "/jobs/apply" , array("attributes" => array("class" => "btn btn-success")));
}
$description = collapser($collapser_header, $collapser_content);
@@ -175,6 +182,12 @@
"#markup" => $description,
"#suffix" => "</div>",
),
+ );
+ return $output;
+ }
+
+ function job_portal_appplication_page() {
+ $output = array(
"application_form" => array(
"#prefix" => "<div id='job-application'>",
"#markup" => drupal_render(drupal_get_form("job_portal_application_form")),