From 0a13c5e74fa29b3056fb63224e71dd79b3069ba3 Mon Sep 17 00:00:00 2001 From: Sashi20 Date: Tue, 1 Jan 2019 12:56:34 +0530 Subject: Modified the year of degree field in manage proposal --- manage_proposal.inc | 2 +- proposal.inc | 14 ++++++++++---- 2 files changed, 11 insertions(+), 5 deletions(-) diff --git a/manage_proposal.inc b/manage_proposal.inc index 3f7e3fd..d8aba72 100755 --- a/manage_proposal.inc +++ b/manage_proposal.inc @@ -708,7 +708,7 @@ function om_pssp_proposal_edit_form($form, &$form_state) '#datepicker_options' => array( 'maxDate' => 0 ), - '#required' => TRUE + '#required' => FALSE ); $form['university'] = array( '#type' => 'textfield', diff --git a/proposal.inc b/proposal.inc index 7e8eb8d..97fa93b 100755 --- a/proposal.inc +++ b/proposal.inc @@ -51,6 +51,7 @@ function om_pssp_proposal_form($form, &$form_state, $no_js_use = FALSE) return; } //$proposal_data->approval_status == 0 || $proposal_data->approval_status == 1 } //$proposal_data + $imp = t('*This is a mandatory field'); $form['#attributes'] = array( 'enctype' => "multipart/form-data" ); @@ -148,7 +149,8 @@ function om_pssp_proposal_form($form, &$form_state, $no_js_use = FALSE) 'value' => 'Others' ) ) - ) + ), + '#description' => $imp, ); $form['other_state'] = array( '#type' => 'textfield', @@ -163,7 +165,8 @@ function om_pssp_proposal_form($form, &$form_state, $no_js_use = FALSE) 'value' => 'Others' ) ) - ) + ), + '#description' => $imp, ); $form['other_city'] = array( '#type' => 'textfield', @@ -178,7 +181,8 @@ function om_pssp_proposal_form($form, &$form_state, $no_js_use = FALSE) 'value' => 'Others' ) ) - ) + ), + '#description' => $imp, ); $form['all_state'] = array( '#type' => 'select', @@ -192,6 +196,7 @@ function om_pssp_proposal_form($form, &$form_state, $no_js_use = FALSE) ) ) ), + '#description' => $imp ); $form['city'] = array( '#type' => 'select', @@ -205,6 +210,7 @@ function om_pssp_proposal_form($form, &$form_state, $no_js_use = FALSE) ) ) ), + '#description' => $imp, ); $form['pincode'] = array( '#type' => 'textfield', @@ -287,7 +293,7 @@ function om_pssp_proposal_form($form, &$form_state, $no_js_use = FALSE) );*/ $form['samplefile'] = array( '#type' => 'fieldset', - '#title' => t('Upload Abstract*'), + '#title' => t('Upload Abstract *'), '#collapsible' => FALSE, '#collapsed' => FALSE ); -- cgit