Skip to content
Permalink
Browse files
AIRAVATA-3257 Remove metaData location code branch (no longer used)
  • Loading branch information
machristie committed Nov 6, 2019
1 parent fd243bd commit 940f682c3adc1429c8f7005d6e513fc209e5265f
Showing 1 changed file with 11 additions and 22 deletions.
@@ -901,29 +901,18 @@ public static function create_inputs($id, $experimentInputs, $allowedFileSize)
}
break;
case DataType::URI:
if(!empty($input->metaData) && json_decode($input->metaData)->location == "remote"){

echo '<div class="form-group">
<label for="experiment-input">' . $input->name . '</label>
<input class="form-control" type="text" name="' . $input->sanitizedFormName .
echo '<div class="form-group">
<label for="experiment-input">' . $input->name . '</label>
<div data-file-id="' . $input->sanitizedFormName . '" class="readBytesButtons btn btn-default btn-xs"
data-toggle="modal" style="float: right">view file</div>
<div class="file-upload-container">
<input class="file-input" type="file" name="' . $input->sanitizedFormName .
'" id="' . $input->sanitizedFormName . '" ' . $required . '>
<p class="help-block">' . $input->userFriendlyDescription . '</p>
</div>';
break;
}else{
echo '<div class="form-group">
<label for="experiment-input">' . $input->name . '</label>
<div data-file-id="' . $input->sanitizedFormName . '" class="readBytesButtons btn btn-default btn-xs"
data-toggle="modal" style="float: right">view file</div>
<div class="file-upload-container">
<input class="file-input" type="file" name="' . $input->sanitizedFormName .
'" id="' . $input->sanitizedFormName . '" ' . $required . '>
<div class="file-upload-max-size">Max Upload Size: ' . $allowedFileSize .'M</div>
</div>
<p class="help-block">' . $input->userFriendlyDescription . '</p>
</div>';
break;
}
<div class="file-upload-max-size">Max Upload Size: ' . $allowedFileSize .'M</div>
</div>
<p class="help-block">' . $input->userFriendlyDescription . '</p>
</div>';
break;
case DataType::URI_COLLECTION:
// Support for URI_COLLECTION is not implemented in PGA, just ignore
break;

0 comments on commit 940f682

Please sign in to comment.