summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xmanage_proposal.inc26
-rwxr-xr-xtextbook_companion.module19
2 files changed, 39 insertions, 6 deletions
diff --git a/manage_proposal.inc b/manage_proposal.inc
index 29f178d..593dd37 100755
--- a/manage_proposal.inc
+++ b/manage_proposal.inc
@@ -277,15 +277,25 @@ function proposal_approval_form($form, &$form_state)
'#markup' => $row->r_version,
'#title' => t('R Version')
);
+ if($proposal_data->reference == 'NA'){
+ $form['reference'] = array(
+ '#type' => 'item',
+ '#markup' => 'NA',
+ '#title' => t('References')
+ );
+ }
+ else
+ {
$form['reference'] = array(
'#type' => 'item',
- '#markup' => l($row->reference, $row->reference),
+ '#markup' => l($proposal_data->reference, $proposal_data->reference),
'#title' => t('References')
);
+ }
$form['book_download_link'] = array(
'#type' => 'item',
'#markup' => l($row->book_download_link, $row->book_download_link),
- '#title' => t('Input download link for the proposed textbook')
+ '#title' => t('Download link for the proposed textbook')
);
$form['reason'] = array(
'#type' => 'item',
@@ -619,15 +629,25 @@ function proposal_status_form($from, $form_state)
'#markup' => $preference_html,
'#title' => t('Book Preferences')
);
+ if($proposal_data->reference == 'NA'){
+ $form['reference'] = array(
+ '#type' => 'item',
+ '#markup' => 'NA',
+ '#title' => t('References')
+ );
+ }
+ else
+ {
$form['reference'] = array(
'#type' => 'item',
'#markup' => l($proposal_data->reference, $proposal_data->reference),
'#title' => t('References')
);
+ }
$form['book_download_link'] = array(
'#type' => 'item',
'#markup' => l($proposal_data->book_download_link, $proposal_data->book_download_link),
- '#title' => t('Input download link for the proposed textbook')
+ '#title' => t('Download link for the proposed textbook')
);
$proposal_status = '';
switch ($proposal_data->proposal_status) {
diff --git a/textbook_companion.module b/textbook_companion.module
index b03f46a..ed4be9d 100755
--- a/textbook_companion.module
+++ b/textbook_companion.module
@@ -282,6 +282,17 @@ function textbook_companion_menu()
'file' => 'general.inc',
'weight' => 1
);
+ /*$items['textbook-companion/code/upload-codable-examples'] = array(
+ 'title' => 'Upload Codable Examples',
+ 'description' => 'Upload Codable Examples',
+ 'page callback' => 'upload_codable_examples',
+ 'access arguments' => array(
+ 'upload code'
+ ),
+ 'type' => MENU_LOCAL_TASK,
+ 'file' => 'code.inc',
+ 'weight' => 2
+ );*/
$items['textbook-companion/code/upload'] = array(
'title' => 'Code Submission',
'description' => 'Code Submission',
@@ -1408,13 +1419,14 @@ function book_proposal_form($form, &$form_state)
);
$form['book_download_link'] = array(
'#type' => 'textarea',
- '#title' => t('Input download link for the proposed textbook'),
+ '#title' => t('Download link for the proposed textbook'),
'#required' => TRUE,
'#size' => 500,
'#maxlength' => 500,
'#attributes' => array(
'placeholder' => 'Please add a link to download the proposed textbook from an online source. In case of a hard copy, kindly create a pdf of the entire textbook along with the cover and back page using a mobile application like CamScanner or some other method of choice. Then upload the pdf on google drive and enter the download link here.'
- )
+ ),
+ '#description' => t('<span style="color:red">For eg: https://r.fossee.in/ (add link in http or https format)</span>')
);
$form['reference'] = array(
'#type' => 'textarea',
@@ -1424,7 +1436,8 @@ function book_proposal_form($form, &$form_state)
'#maxlength' => 500,
'#attributes' => array(
'placeholder' => 'Please mention link(s) of the syllabus where this book has been recommended by University/ College/ Institute'
- )
+ ),
+ '#description' => t('<span style="color:red">For eg: https://r.fossee.in/ (add link in http or https format)</span>')
);
$form['form_type'] = array(
'#type' => 'hidden',