showing is read only from the app interface for inputs
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/eb21e28f Tree: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/tree/eb21e28f Diff: http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/diff/eb21e28f Branch: refs/heads/dreg-gateway Commit: eb21e28f2a0ce56e5b11fbc082dc4a8e4d168647 Parents: 9ae9cf8 Author: scnakandala <supun.nakand...@gmail.com> Authored: Wed Feb 15 16:05:26 2017 -0500 Committer: scnakandala <supun.nakand...@gmail.com> Committed: Wed Feb 15 16:05:26 2017 -0500 ---------------------------------------------------------------------- app/libraries/AppUtilities.php | 6 ++++-- app/views/partials/interface-input-block.blade.php | 12 ++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/eb21e28f/app/libraries/AppUtilities.php ---------------------------------------------------------------------- diff --git a/app/libraries/AppUtilities.php b/app/libraries/AppUtilities.php index 263128e..bde5b46 100644 --- a/app/libraries/AppUtilities.php +++ b/app/libraries/AppUtilities.php @@ -74,7 +74,8 @@ class AppUtilities "inputOrder" => intval($appInterfaceValues["inputOrder"][$index]), "dataStaged" => intval($appInterfaceValues["dataStaged"][$index]), "isRequired" => $appInterfaceValues["isRequiredInput"][$index], - "requiredToAddedToCommandLine" => $appInterfaceValues["requiredToAddedToCommandLineInput"][$index] + "requiredToAddedToCommandLine" => $appInterfaceValues["requiredToAddedToCommandLineInput"][$index], + "isReadOnly" => $appInterfaceValues["isReadOnly"][$index] )); $appInterface->applicationInputs[] = $inputDataObjectType; } @@ -91,7 +92,8 @@ class AppUtilities "location" => $appInterfaceValues["location"][$index], "isRequired" => $appInterfaceValues["isRequiredOutput"][$index], "requiredToAddedToCommandLine" => $appInterfaceValues["requiredToAddedToCommandLineOutput"][$index], - "searchQuery" => $appInterfaceValues["searchQuery"][$index] + "searchQuery" => $appInterfaceValues["searchQuery"][$index], + "isReadOnly" => $appInterfaceValues["isReadOnly"][$index] )); $appInterface->applicationOutputs[] = $outputDataObjectType; } http://git-wip-us.apache.org/repos/asf/airavata-php-gateway/blob/eb21e28f/app/views/partials/interface-input-block.blade.php ---------------------------------------------------------------------- diff --git a/app/views/partials/interface-input-block.blade.php b/app/views/partials/interface-input-block.blade.php index 0e2d74f..2391565 100644 --- a/app/views/partials/interface-input-block.blade.php +++ b/app/views/partials/interface-input-block.blade.php @@ -55,6 +55,18 @@ </select> </div> </div> + <div class="form-group"> + <label class="control-label col-md-3">Is Read Only</label> + + <div class="col-md-9"> + <select class="form-control" name="isReadOnly[]" readonly> + <option value="0" + @if( isset( $appInputs) ) @if( 0 == $appInputs->isReadOnly) selected @endif @endif>False</option> + <option value="1" + @if( isset( $appInputs) ) @if( 1 == $appInputs->isReadOnly) selected @endif @endif>True</option> + </select> + </div> + </div> <div class="form-group"> <label class="control-label col-md-3">User Friendly Description</label>