diff options
author | Sashi20 | 2019-11-25 16:05:43 +0530 |
---|---|---|
committer | GitHub | 2019-11-25 16:05:43 +0530 |
commit | c1c827f1f4a0eb6731f6818e11940140dd844230 (patch) | |
tree | 308ee5d7bcad499bb07b3c798b4e7c24a8ca340b | |
parent | 3d5c26a51fca70d78c36c2de378d3607caa99ac2 (diff) | |
parent | 9381e823297e9a87b8122547e726fe90ad0e2dab (diff) | |
download | om_flowsheet-c1c827f1f4a0eb6731f6818e11940140dd844230.tar.gz om_flowsheet-c1c827f1f4a0eb6731f6818e11940140dd844230.tar.bz2 om_flowsheet-c1c827f1f4a0eb6731f6818e11940140dd844230.zip |
Merge pull request #12 from Sashi20/master
Add help text to download the library
-rwxr-xr-x | run.inc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -44,7 +44,7 @@ function om_flowsheet_run_form($form, &$form_state) ); $form['selected_flowsheet'] = array( '#type' => 'item', - '#markup' => '<div id="ajax_selected_flowsheet">' . l('Download Flowsheet', 'chemical/flowsheeting-project/full-download/project/' . $flowsheet_default_value,array('attributes' => array('title' => 'This is a zip file containing a pdf (abstract) and a mo file which is the OpenModelica flowsheet which is to be viewed by right clicking on the file and opening with OpenModelica.'))) . '</div>' + '#markup' => '<div id="ajax_selected_flowsheet">' . l('Download Flowsheet', 'chemical/flowsheeting-project/full-download/project/' . $flowsheet_default_value,array('attributes' => array('title' => 'This is a zip file containing a pdf (abstract) and a mo file which is the OpenModelica flowsheet which is to be viewed by right clicking on the file and opening with OpenModelica.'))) . '</div><hr><p style="color:red;">Note: This flowsheet is compatible with the simulator version mentioned above. To simulate the flowsheet in OpenModelica, it must be opened with the above Simulator version.<br>To download the Simulator, click on the Simulator version mentioned above.</p>' ); } return $form; @@ -58,7 +58,7 @@ function om_flowsheet_project_details_callback($form, $form_state) $flowsheet_details = _flowsheet_information($flowsheet_default_value); $provider = user_load($flowsheet_details->uid); if ($flowsheet_details->uid > 0) { - $commands[] = ajax_command_html('#ajax_selected_flowsheet', l('Download Flowsheet', 'chemical/flowsheeting-project/full-download/project/' . $flowsheet_default_value,array('attributes' => array('title' => 'This is a zip file containing a pdf (abstract) and a dwxml/dwxmz file which is the om flow sheet which is to be viewed by right clicking on the file and opening with om.')))); + $commands[] = ajax_command_html('#ajax_selected_flowsheet', l('Download Flowsheet', 'chemical/flowsheeting-project/full-download/project/' . $flowsheet_default_value,array('attributes' => array('title' => 'This is a zip file containing a pdf (abstract) and a dwxml/dwxmz file which is the om flow sheet which is to be viewed by right clicking on the file and opening with om.'))) . '<hr><p style="color:red;">Note: This flowsheet is compatible with the simulator version mentioned above. To simulate the flowsheet in OpenModelica, it must be opened with the above Simulator version.<br>To download the Simulator, click on the Simulator version mentioned above.</p>'); } //$flowsheet_details->uid > 0 else { $commands[] = ajax_command_html('#ajax_selected_flowsheet', ''); |