diff options
Diffstat (limited to 'my_proposals.inc')
-rw-r--r-- | my_proposals.inc | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/my_proposals.inc b/my_proposals.inc index 10ba23d..4c56bce 100644 --- a/my_proposals.inc +++ b/my_proposals.inc @@ -571,6 +571,7 @@ function arduino_projects_blog_my_proposal_view_form($form, &$form_state) '#title' => t('Expected Completion date'), '#markup' => date('d-m-Y', $proposal_data->expected_date_of_completion) ); + if($proposal_data->approval_status == 2){ if($proposal_data->resubmit_comment){ $form['resubmit_comment'] = array( '#type' => 'item', @@ -578,6 +579,19 @@ function arduino_projects_blog_my_proposal_view_form($form, &$form_state) '#markup' => $proposal_data->resubmit_comment ); } +} + else if($proposal_data->approval_status == 4){ + $form['status'] = array( + '#type' => 'item', + '#title' => t('Status'), + '#markup' => t('Dis-approved') + ); + $form['disapproval_reason'] = array( + '#type' => 'item', + '#title' => t('Disapproval Reason'), + '#markup' => $proposal_data->dissapproval_reason + ); + } $form['cancel'] = array( '#type' => 'item', '#markup' => l(t('Cancel'), 'arduino-projects/my-proposals') |