diff --git a/lib/galaxy/jobs/actions/post.py b/lib/galaxy/jobs/actions/post.py
index 0436ef7eea2..e551816d494 100644
--- a/lib/galaxy/jobs/actions/post.py
+++ b/lib/galaxy/jobs/actions/post.py
@@ -215,6 +215,15 @@ class RenameDatasetAction(DefaultJobAction):
p_str += "\
";
}
+ inputlist = [];
+ $.each(node.input_terminals, function(i, v){
+ inputlist.push(v.name);
+ });
+ if (inputlist !== []){
+ p_str += "Available inputs are: " + inputlist.join(', ') + "";
+ }else{
+ p_str += "No inputs are available for templating into this action.";
+ }
"""
return get_form_template(cls.name, cls.verbose_name, form, "This action will rename the result dataset.")
diff --git a/static/scripts/galaxy.workflows.js b/static/scripts/galaxy.workflows.js
index 4843a85b2f8..3bbd302ffc2 100644
--- a/static/scripts/galaxy.workflows.js
+++ b/static/scripts/galaxy.workflows.js
@@ -361,7 +361,7 @@ function add_node_for_module( type, title ) {
// This function preloads how to display known pja's.
function display_pja(pja, node) {
// DBTODO SANITIZE INPUTS.
- $("#pja_container").append( get_pja_form(pja) );
+ $("#pja_container").append( get_pja_form(pja, node) );
$("#pja_container>.toolForm:last>.toolFormTitle>.buttons").click(function (){
action_to_rem = $(this).closest(".toolForm", ".action_tag").children(".action_tag:first").text();
$(this).closest(".toolForm").remove();
diff --git a/templates/webapps/galaxy/workflow/editor.mako b/templates/webapps/galaxy/workflow/editor.mako
index 930cde341bf..dbd4f5630ef 100644
--- a/templates/webapps/galaxy/workflow/editor.mako
+++ b/templates/webapps/galaxy/workflow/editor.mako
@@ -65,7 +65,7 @@
%>
// Post-job action vars.
var pja_list = "${ActionBox.get_add_list()}",
- get_pja_form = function(pja) {
+ get_pja_form = function(pja, node) {
var p_str = '';
// FIXME: this writes JS code; this logic should be codified in galaxy.workflows.js
${ActionBox.get_forms(trans)}