Addition of Archiving Working Directory check to Application Interface.
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/f56256de Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/f56256de Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/f56256de Branch: refs/heads/master Commit: f56256de79a070c939dd55f7fdc6dc849d99bceb Parents: 38248a2 Author: Nipurn Doshi <[email protected]> Authored: Wed Mar 9 15:12:28 2016 -0500 Committer: Nipurn Doshi <[email protected]> Committed: Wed Mar 9 15:12:28 2016 -0500 ---------------------------------------------------------------------- app/libraries/AppUtilities.php | 3 ++- app/views/partials/interface-block.blade.php | 11 +++++++++++ app/views/resource/edit.blade.php | 2 +- public/css/bootstrap.min.css | 2 +- 4 files changed, 15 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/f56256de/app/libraries/AppUtilities.php ---------------------------------------------------------------------- diff --git a/app/libraries/AppUtilities.php b/app/libraries/AppUtilities.php index ee1a122..f8f87c4 100644 --- a/app/libraries/AppUtilities.php +++ b/app/libraries/AppUtilities.php @@ -56,7 +56,8 @@ class AppUtilities $appInterface = new ApplicationInterfaceDescription(array( "applicationName" => $appInterfaceValues["applicationName"], "applicationDescription" => $appInterfaceValues["applicationDescription"], - "applicationModules" => $appInterfaceValues["applicationModules"] + "applicationModules" => $appInterfaceValues["applicationModules"], + "archiveWorkingDirectory" => intval( $appInterfaceValues["archiveWorkingDirectory"]) )); if (isset($appInterfaceValues["inputName"])) { http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/f56256de/app/views/partials/interface-block.blade.php ---------------------------------------------------------------------- diff --git a/app/views/partials/interface-block.blade.php b/app/views/partials/interface-block.blade.php index 1511c22..3f539a9 100644 --- a/app/views/partials/interface-block.blade.php +++ b/app/views/partials/interface-block.blade.php @@ -34,6 +34,17 @@ </div> <button type="button" class="hide btn btn-default add-app-module">Add Application Module</button> </div> + + <div class="form-group"> + <label class="control-label">Enable Archiving Working Directory</label> + <select name="archiveWorkingDirectory" class="form-control" style="max-width: 200px" readonly> + <option value="0" + @if( isset( $interfaceObject) ) @if( false == $interfaceObject->archiveWorkingDirectory ) selected @endif @endif>False</option> + <option value="1" + @if( isset( $interfaceObject) ) @if( true == $interfaceObject->archiveWorkingDirectory ) selected @endif @endif>True</option> + </select> + </div> + <div class="form-group form-horizontal"> @if( isset( $interfaceObject)) @foreach( (array)$interfaceObject->applicationInputs as $index => $appInputs) http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/f56256de/app/views/resource/edit.blade.php ---------------------------------------------------------------------- diff --git a/app/views/resource/edit.blade.php b/app/views/resource/edit.blade.php index 6b0c1d4..522e7e5 100644 --- a/app/views/resource/edit.blade.php +++ b/app/views/resource/edit.blade.php @@ -38,7 +38,7 @@ </ul> </div> -<div class="tab-content"> +<div class="tab-content col-md-12"> <div class="tab-pane active" id="tab-desc"> http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/f56256de/public/css/bootstrap.min.css ---------------------------------------------------------------------- diff --git a/public/css/bootstrap.min.css b/public/css/bootstrap.min.css index a8e57c7..55f50ef 100644 --- a/public/css/bootstrap.min.css +++ b/public/css/bootstrap.min.css @@ -61,5 +61,5 @@ body{ } .tab-content>.tab-pane { - margin-top: 5%; + margin-top: 20px; } \ No newline at end of file
