diff options
author | Jayaram R Pai | 2014-07-04 22:09:54 +0530 |
---|---|---|
committer | Jayaram R Pai | 2014-07-04 22:09:54 +0530 |
commit | bc2e98bd0be4dc98f0a9f606a5af23633f8af7f3 (patch) | |
tree | 554a2e0af81e74afc75e0b107ffa78f15d14dd8f /job_portal.module | |
parent | fa0f35fb27c58504d3a612d9b3a8730c7d798ce0 (diff) | |
download | job_portal-bc2e98bd0be4dc98f0a9f606a5af23633f8af7f3.tar.gz job_portal-bc2e98bd0be4dc98f0a9f606a5af23633f8af7f3.tar.bz2 job_portal-bc2e98bd0be4dc98f0a9f606a5af23633f8af7f3.zip |
fixed css compatibility with bootstrap
Diffstat (limited to 'job_portal.module')
-rw-r--r-- | job_portal.module | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/job_portal.module b/job_portal.module index 87c3c0d..eaea02e 100644 --- a/job_portal.module +++ b/job_portal.module @@ -31,7 +31,7 @@ "#title" => t("Job Position"), "#description" => t("Select the position for which you are applying."), "#options" => get_jobs_available("options"), - "#empty_value" => "Select a position", + "#empty_option" => t("--- Select a position ---"), "#required" => TRUE, ); $form["wrapper"]["name"] = array( @@ -122,6 +122,8 @@ ->condition("id", $v["position"]) ->execute()->fetchObject(); $emails = $emails->notify; + $position = get_jobs_available("options"); + $position = $position[$v["position"]]; /* preparing to send mail */ $from = "jayaram@iitb.ac.in"; @@ -131,7 +133,7 @@ $subject = "Job Application - Python Developer"; $message = " <p><strong>{$v['name']}</strong> has applied for - the post of <strong>Python Developer</strong>.</p> + the post of <strong>{$position}</strong>.</p> <table border='1' width='740px'> <tr><td>Name</td><td>{$v['name']}</td></tr> <tr><td>Contact</td><td>{$v['contact']}</td></tr> @@ -174,8 +176,9 @@ "#suffix" => "</div>", ), "application_form" => array( - "#type" => "markup", + "#prefix" => "<div id='job-application'>", "#markup" => drupal_render(drupal_get_form("job_portal_application_form")), + "#suffix" => "</div>", ), ); return $output; |