Skip to content

Commit

Permalink
Merge pull request #1495 from seek4science/git-file-selector-prompt
Browse files Browse the repository at this point in the history
Display placeholders in git path selection form
  • Loading branch information
fbacall committed Jun 27, 2023
2 parents bb58fdf + e0b0f2f commit 4d42637
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions app/views/workflows/_select_paths.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
<label class="required">Workflow</label>
<p class="help-block">The main executable workflow.</p>
<%= git_path_input '#git-path-select-modal', "#{field_prefix}[main_workflow_path]",
git_version.main_workflow_path, id: 'main-workflow-path-field', class: 'form-control git-path' %>
git_version.main_workflow_path, id: 'main-workflow-path-field', class: 'form-control git-path',
placeholder: 'Select main workflow...' %>
</div>

<div class="form-group">
Expand All @@ -22,7 +23,8 @@
<label>Abstract CWL</label>
<p class="help-block">(Optional) The abstract CWL that describes the main workflow.</p>
<%= git_path_input '#git-path-select-modal', "#{field_prefix}[abstract_cwl_path]",
git_version.abstract_cwl_path, class: 'form-control git-path' %>
git_version.abstract_cwl_path, class: 'form-control git-path',
placeholder: 'Select abstract CWL...' %>
</div>
<% end %>
Expand All @@ -31,7 +33,8 @@
<label>Diagram</label>
<p class="help-block">(Optional) A diagram that illustrates the main workflow.</p>
<%= git_path_input '#git-path-select-modal', "#{field_prefix}[diagram_path]",
git_version.diagram_path, class: 'form-control git-path' %>
git_version.diagram_path, class: 'form-control git-path',
placeholder: 'Select diagram...' %>
</div>
<% end %>

Expand All @@ -49,4 +52,4 @@
});
});
});
</script>
</script>

0 comments on commit 4d42637

Please sign in to comment.