summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJayaram R Pai2014-09-15 17:38:02 +0530
committerJayaram R Pai2014-09-15 17:38:02 +0530
commit19966fd44977ecc0b91f9172ea14db04802e2c61 (patch)
tree0e654d6608ee84d4aa5e0c5a4cc2a69628b9ce4d
parent88c0dd884cdd18d6f6e8ee833c0f34cb9b4e1107 (diff)
downloadjob_portal-19966fd44977ecc0b91f9172ea14db04802e2c61.tar.gz
job_portal-19966fd44977ecc0b91f9172ea14db04802e2c61.tar.bz2
job_portal-19966fd44977ecc0b91f9172ea14db04802e2c61.zip
added save selections button
-rwxr-xr-xcss/main.css3
-rwxr-xr-xjob_portal.module13
2 files changed, 16 insertions, 0 deletions
diff --git a/css/main.css b/css/main.css
index 8e0c0f6..8a36e99 100755
--- a/css/main.css
+++ b/css/main.css
@@ -19,3 +19,6 @@
.sync-msg {
font-size: .8em;
}
+.messages.success {
+ background: lightgreen;
+}
diff --git a/job_portal.module b/job_portal.module
index 249f226..32cc790 100755
--- a/job_portal.module
+++ b/job_portal.module
@@ -265,6 +265,9 @@ FOSSEE Team
function job_portal_view_application_page($position_id=0) {
$markup = "";
+ if(array_key_exists("saved", $_GET)){
+ drupal_set_message("Selections saved successfully.", "success");
+ }
if($position_id) {
$result = db_select("job_portal_applications")
->fields("job_portal_applications")
@@ -318,6 +321,16 @@ FOSSEE Team
$markup .= "</div>";
$markup .= "<h5><u>{$job->position} ({$job->specialization}) - List of applications</u></h5>";
$markup .= bootstrap_table($headers, $rows);
+ $markup .= l("Save Selections", "jobs/view-applications/",
+ array(
+ "query" => array(
+ "saved" => "true"
+ ),
+ "attributes" => array(
+ "class" => "btn btn-primary"
+ )
+ )
+ );
} else {
/* List all the job positions.
* Change the condition later based on end date.