summaryrefslogtreecommitdiff
path: root/proposal.inc
diff options
context:
space:
mode:
authorSashi202018-12-19 15:56:44 +0530
committerSashi202018-12-19 15:56:44 +0530
commit91770270bc57e4823da69c7a0215b120e761767f (patch)
tree512ab358ffafe629ae2ff7cb939cde8bd89d10d9 /proposal.inc
parent459024c2360e17904e8f69b9e178d73471b5656a (diff)
downloadom_pssp-91770270bc57e4823da69c7a0215b120e761767f.tar.gz
om_pssp-91770270bc57e4823da69c7a0215b120e761767f.tar.bz2
om_pssp-91770270bc57e4823da69c7a0215b120e761767f.zip
Modified fields in proposal form to mandatory
Diffstat (limited to 'proposal.inc')
-rwxr-xr-xproposal.inc8
1 files changed, 4 insertions, 4 deletions
diff --git a/proposal.inc b/proposal.inc
index 1f14ec9..e4ea2b2 100755
--- a/proposal.inc
+++ b/proposal.inc
@@ -260,7 +260,7 @@ function om_pssp_proposal_form($form, &$form_state, $no_js_use = FALSE)
'#type' => 'textfield',
'#title' => t('Reference'),
'#size' => 250,
- '#required' => FALSE,
+ '#required' => TRUE,
'#description' => t('Example: Plain Text, DOI, IEEE format etc.'),
'#attributes' => array(
'placeholder' => 'The links to the documents or websites which are referenced while proposing this project.'
@@ -286,7 +286,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<span style="color:red;">*</span>'),
'#collapsible' => FALSE,
'#collapsed' => FALSE
);
@@ -403,7 +403,7 @@ if (isset($_FILES['files']))
{
/* check if atleast one source or result file is uploaded */
if (!($_FILES['files']['name']['samplefilepath']))
- form_set_error('samplefilepath', t('Please upload file with circuit diagram.'));
+ form_set_error('samplefilepath', t('Please upload the abstract file.'));
/* check for valid filename extensions */
foreach ($_FILES['files']['name'] as $file_form_name => $file_name)
{
@@ -520,7 +520,7 @@ function om_pssp_proposal_form_submit($form, &$form_state)
":project_guide_name" => _df_sentence_case($v['project_guide_name']),
":project_guide_email_id" => trim($v['project_guide_email_id']),
":project_guide_university" => trim($v['project_guide_university']),
- ":project_title" => _df_sentence_case($v['project_title']),
+ ":project_title" => $v['project_title'],
":description" => _df_sentence_case($v['description']),
":directory_name" => $directory_name,
":approval_status" => 0,