You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airavata.apache.org by nd...@apache.org on 2016/01/26 20:57:20 UTC

airavata-php-gateway git commit: Removing bug where a failed experiment could be launched.

Repository: airavata-php-gateway
Updated Branches:
  refs/heads/develop 924ac0609 -> 6bf5d8c02


Removing bug where a failed experiment could be launched.


Project: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/repo
Commit: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/commit/6bf5d8c0
Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/6bf5d8c0
Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/6bf5d8c0

Branch: refs/heads/develop
Commit: 6bf5d8c02c56201a033897d523d807828c192d51
Parents: 924ac06
Author: Nipurn Doshi <ni...@gmail.com>
Authored: Tue Jan 26 14:56:43 2016 -0500
Committer: Nipurn Doshi <ni...@gmail.com>
Committed: Tue Jan 26 14:56:43 2016 -0500

----------------------------------------------------------------------
 app/libraries/ExperimentUtilities.php        | 1 -
 app/views/partials/experiment-info.blade.php | 4 ++--
 2 files changed, 2 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/6bf5d8c0/app/libraries/ExperimentUtilities.php
----------------------------------------------------------------------
diff --git a/app/libraries/ExperimentUtilities.php b/app/libraries/ExperimentUtilities.php
index fafd1f2..354ab42 100644
--- a/app/libraries/ExperimentUtilities.php
+++ b/app/libraries/ExperimentUtilities.php
@@ -803,7 +803,6 @@ class ExperimentUtilities
             case 'CREATED':
             case 'VALIDATED':
             case 'SCHEDULED':
-            case 'FAILED':
                 $expVal["editable"] = true;
                 break;
             default:

http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/6bf5d8c0/app/views/partials/experiment-info.blade.php
----------------------------------------------------------------------
diff --git a/app/views/partials/experiment-info.blade.php b/app/views/partials/experiment-info.blade.php
index baee525..79b09db 100644
--- a/app/views/partials/experiment-info.blade.php
+++ b/app/views/partials/experiment-info.blade.php
@@ -163,11 +163,11 @@
                    type="submit"
                    class="btn btn-success"
                    value="Launch"
-                   title="Launch the experiment" <?php if (!$expVal["editable"]) echo 'style="display: none"' ?>>
+                   title="Launch the experiment" @if ( !$expVal["editable"]) style="display: none" @endif>
             <a id="cancel_exp_link" href="{{URL::to('/') }}/experiment/cancel?expId={{ $experiment->experimentId }}"
                class="btn btn-default" onclick="return confirm('Are you sure you want to cancel this experiment?')"
                role="button"
-               tit  le="Edit the experiment's settings" <?php if (!$expVal["cancelable"]) echo 'style="display: none"' ?>>
+               title="Edit the experiment's settings" @if (!$expVal["cancelable"]) style="display: none" @endif>
                 <input name="cancel" type="submit" class="btn btn-warning"
                        value="Cancel" <?php if (!$expVal["cancelable"]) echo 'disabled'; ?> >
             </a>