1 | !!! |
---|
2 | %html |
---|
3 | %head |
---|
4 | %title Workflow: #{@my_exp_wkf.title} |
---|
5 | %link(rel="stylesheet" href="/css/form.css") |
---|
6 | %script{:type => "text/javascript", :src => "/scripts/jquery-1.6.1.js"} |
---|
7 | %script{:type => "text/javascript", :src => "/scripts/form.js"} |
---|
8 | |
---|
9 | %body |
---|
10 | |
---|
11 | #header |
---|
12 | %table.header |
---|
13 | %tr |
---|
14 | %td.header Workflow: #{@my_exp_wkf.title} |
---|
15 | |
---|
16 | %br |
---|
17 | #inputs |
---|
18 | %form{:id => "workflow-form", :action => "/t2web/enact", :method => "post"} |
---|
19 | %table.inputs |
---|
20 | - if @my_exp_wkf.inputs.size >=1 |
---|
21 | %tr |
---|
22 | %th.inputs |
---|
23 | Configure Workflow Inputs |
---|
24 | - @my_exp_wkf.inputs.each do |input| |
---|
25 | %tr |
---|
26 | %td.inputs |
---|
27 | %div{:id => "#{input.name}-placeholder"} |
---|
28 | Upload file? |
---|
29 | %input{:id => "#{input.name}-checkbox", :type => "checkbox", :onclick => "toggleManualFileInput('#{input.name}')", :name => "upload-checkbox-#{input.name}", :value => "yes"} |
---|
30 | %br |
---|
31 | %br |
---|
32 | %tr |
---|
33 | %td.inputs |
---|
34 | %input{:type => "hidden", :name => "wid", :value => "#{@wid}" } |
---|
35 | %input{:type => "hidden", :name => "wkf_version", :value => "#{@wkf_version}" } |
---|
36 | %input{:type => "hidden", :name => "server", :value => "#{@t2_server}" } |
---|
37 | %input{:type => "submit", :value => "Execute", :class => "button"} |
---|
38 | - if @my_exp_wkf.inputs.size >=1 |
---|
39 | - @my_exp_wkf.inputs.each do |input| |
---|
40 | - input_label_tooltip = "" |
---|
41 | - if input.descriptions.size >=1 |
---|
42 | - input.descriptions.each do |descr| |
---|
43 | - input_label_tooltip << CGI::unescapeHTML(descr) + " " |
---|
44 | - input_textarea_tooltip = "" |
---|
45 | - if input.examples.size >=1 |
---|
46 | - input.examples.each do |ex| |
---|
47 | - input_textarea_tooltip << CGI::unescapeHTML(ex) + " " |
---|
48 | %div{:id => "#{input.name}-upload-form-div"} |
---|
49 | %form{:id => "#{input.name}-upload-form", :enctype => "multipart/form-data", :target => "hidden-iframe", :action => "/t2web/upload", :method => "post"} |
---|
50 | %label{:for => "#{input.name}-upload-label", :class => "tooltip", :title => "#{input_label_tooltip}"} Select file for #{input.name} |
---|
51 | %input{:type => "file", :name => "file", :onchange => "uploadFile('#{input.name}')"} |
---|
52 | %div{:id => "#{input.name}-manual-group"} |
---|
53 | %label{:for => "#{input.name}-label", :class => "tooltip", :title => "#{input_label_tooltip}"} Enter #{input.name}: |
---|
54 | %br |
---|
55 | %textarea{:name => "#{input.name}-input", :rows => 3, :cols => 50, :class => "tooltip", :title => "#{input_textarea_tooltip}"} |
---|
56 | - if input.examples.size >= 1 |
---|
57 | = CGI::unescapeHTML(input.examples[0]) |
---|
58 | %iframe{:id => "hidden-iframe", :name => "hidden-iframe", :src => "#", :style => "width:0;height:0;border:0px solid #fff;"} |
---|
59 | |
---|
60 | %br |
---|
61 | #description |
---|
62 | %table.inputs |
---|
63 | %tr |
---|
64 | %th.inputs |
---|
65 | Workflow Description |
---|
66 | %tr |
---|
67 | %td.inputs |
---|
68 | = @my_exp_wkf.description |
---|
69 | |
---|
70 | -# %br |
---|
71 | -# %br |
---|
72 | -#inputs |
---|
73 | - if @my_exp_wkf.inputs.size >=1 |
---|
74 | %table.inputs |
---|
75 | %tr |
---|
76 | %th.inputs |
---|
77 | Input |
---|
78 | %th.inputs |
---|
79 | Description |
---|
80 | %th.inputs |
---|
81 | Examples |
---|
82 | - @my_exp_wkf.inputs.each do |input| |
---|
83 | %tr |
---|
84 | %td.inputs |
---|
85 | = input.name |
---|
86 | %td.inputs |
---|
87 | - if input.descriptions.size >=1 |
---|
88 | - input.descriptions.each do |descr| |
---|
89 | = descr |
---|
90 | %br |
---|
91 | %td.inputs |
---|
92 | - if input.examples.size >=1 |
---|
93 | - input.examples.each do |ex| |
---|
94 | = ex |
---|
95 | %br |
---|
96 | |
---|
97 | %br |
---|
98 | %br |
---|
99 | #outputs |
---|
100 | - if @my_exp_wkf.outputs.size >=1 |
---|
101 | %table.inputs |
---|
102 | %tr |
---|
103 | %th.inputs |
---|
104 | Output |
---|
105 | %th.inputs |
---|
106 | Description |
---|
107 | %th.inputs |
---|
108 | Examples |
---|
109 | - @my_exp_wkf.outputs.each do |output| |
---|
110 | %tr |
---|
111 | %td.inputs |
---|
112 | = output.name |
---|
113 | %td.inputs |
---|
114 | - if output.descriptions.size >=1 |
---|
115 | - output.descriptions.each do |descr| |
---|
116 | = descr |
---|
117 | %br |
---|
118 | %td.inputs |
---|
119 | - if output.examples.size >=1 |
---|
120 | - if output.examples.size >=1 |
---|
121 | - output.examples.each do |ex| |
---|
122 | = ex |
---|
123 | %br |
---|
124 | |
---|
125 | %br |
---|
126 | %br |
---|
127 | #note |
---|
128 | %table.inputs |
---|
129 | %tr |
---|
130 | %th.inputs |
---|
131 | Please Note |
---|
132 | %tr |
---|
133 | %td.inputs |
---|
134 | Some workflows are not up-to-date or have dependencies that cannot be met by the specific Taverna server that you specified during generation of this tool. You can make sure that the workflow is valid by running it in the Taverna Workbench first to confirm that it works before running it via the Web. |
---|
135 | %tr |
---|
136 | %td.inputs |
---|
137 | There might be some repetitions in the workflow description in some of the generated workflows. This is due to a backwards compatibility issue on the myExperiment repository which keeps the old descriptions to make sure that no information is lost. |
---|
138 | %tr |
---|
139 | %td.inputs |
---|
140 | For more information on this workflow please visit the |
---|
141 | %a{ :href => "http://www.myExperiment.org/workflows/#{@wid}" } myExperiment website |
---|
142 | %br |
---|