diff options
author | Sashi20 | 2020-02-11 10:44:10 +0530 |
---|---|---|
committer | Sashi20 | 2020-02-11 10:44:10 +0530 |
commit | 50b6cef3a5cc9a6aebbe73fd00a6086a8d4dae35 (patch) | |
tree | 5acdb9f3242dd2084317e9a4eec3af72f59e916d /run.inc | |
parent | ec453ec7e823311098506ebdd29924a26ff47a20 (diff) | |
download | om_pssp-50b6cef3a5cc9a6aebbe73fd00a6086a8d4dae35.tar.gz om_pssp-50b6cef3a5cc9a6aebbe73fd00a6086a8d4dae35.tar.bz2 om_pssp-50b6cef3a5cc9a6aebbe73fd00a6086a8d4dae35.zip |
Move link to download abstract to download codes page
Diffstat (limited to 'run.inc')
-rwxr-xr-x | run.inc | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -19,7 +19,7 @@ function om_pssp_run_form($form, &$form_state) $form = array(); $form['om_pssp'] = array( '#type' => 'select', - '#title' => t('Title of the OM PSSP'), + '#title' => t('Title of the Power System Simulation'), '#options' => _list_of_om_pssp(), '#default_value' => $selected, '#ajax' => array( @@ -44,7 +44,8 @@ function om_pssp_run_form($form, &$form_state) ); $form['selected_om_pssp'] = array( '#type' => 'item', - '#markup' => '<div id="ajax_selected_om_pssp">' . l('Download Power System Simulation', 'powersystems/pssp/full-download/project/' . $om_pssp_default_value) . '</div>' + '#markup' => '<div id="ajax_selected_om_pssp">' . l('Download Abstract', "powersystems/pssp/download/abstract-file/" . $om_pssp_default_value) + . '<br>' . l('Download Power System Simulation', 'powersystems/pssp/full-download/project/' . $om_pssp_default_value) . '</div>' ); } return $form; @@ -58,7 +59,8 @@ function om_pssp_project_details_callback($form, $form_state) $om_pssp_details = _om_pssp_information($om_pssp_default_value); $provider = user_load($om_pssp_details->uid); if ($om_pssp_details->uid > 0) { - $commands[] = ajax_command_html('#ajax_selected_om_pssp', l('Download Power System Simulation', 'powersystems/pssp/full-download/project/' . $om_pssp_default_value)); + $commands[] = ajax_command_html('#ajax_selected_om_pssp', l('Download Abstract', "powersystems/pssp/download/abstract-file/" . $om_pssp_default_value) + . '<br>' . l('Download Power System Simulation', 'powersystems/pssp/full-download/project/' . $om_pssp_default_value)); } //$om_pssp_details->uid > 0 else { $commands[] = ajax_command_html('#ajax_selected_om_pssp', ''); |