!!! %html %head %title Workflow: #{@my_exp_wkf.title} %link(rel="stylesheet" href="/t2web/css/form.css") %link(rel="stylesheet" href="/t2web/css/tipsy.css") %script{:type => "text/javascript", :src => "/t2web/scripts/jquery-1.6.1.js"} %script{:type => "text/javascript", :src => "/t2web/scripts/jquery.tipsy.js"} %script{:type => "text/javascript", :src => "/t2web/scripts/form.js"} %body = generate_header_table(@my_exp_wkf, @my_exp_usr) -# TODO: should move coding to controller and reduce haml's "-" for logic inside the template!!! %br #inputs %form{:id => "workflow-form", :action => "/t2web/enact", :method => "post"} %table.inputs - if @my_exp_wkf.inputs.size >=1 %tr %th.inputs Configure Workflow Inputs - @my_exp_wkf.inputs.each do |input| %tr %td.inputs %div{:id => "#{input.name}-placeholder"} Upload file? %input{:id => "#{input.name}-checkbox", :type => "checkbox", :onclick => "toggleManualFileInput('#{input.name}')", :name => "upload-checkbox-#{input.name}", :value => "yes"} %br %br %tr %td.inputs %input{:type => "hidden", :name => "wid", :value => "#{@wid}" } %input{:type => "hidden", :name => "wkf_version", :value => "#{@wkf_version}" } %input{:type => "hidden", :name => "server", :value => "#{@t2_server}" } %input{:type => "submit", :value => "Execute", :class => "button"} - if @my_exp_wkf.inputs.size >=1 - @my_exp_wkf.inputs.each do |input| - if input.descriptions.size >=1 - input_label_tooltip = generate_tooltip("Description: ", input) - input_textarea_tooltip = "" - if input.examples.size >=1 - input_textarea_tooltip = generate_tooltip("Example: ", input) %div{:id => "#{input.name}-upload-form-div"} -#%form{:id => "#{input.name}-upload-form", :enctype => "multipart/form-data", :target => "hidden-iframe", :action => "/t2web/upload", :method => "post"} %form{:id => "#{input.name}-upload-form", :enctype => "multipart/form-data"} %label{:for => "#{input.name}-upload-label", :title => "#{input_label_tooltip}"} Select file for #{input.name} %input{:type => "file", :name => "file", :onchange => "uploadFile('#{input.name}')"} %div{:id => "#{input.name}-manual-group"} %label{:for => "#{input.name}-label", :title => "#{input_label_tooltip}"} Enter #{input.name}: %br %textarea{:name => "#{input.name}-input", :rows => 3, :cols => 50, :title => "#{input_textarea_tooltip}"} - if input.examples.size >= 1 = CGI::unescapeHTML(input.examples[0]) %iframe{:id => "hidden-iframe", :name => "hidden-iframe", :src => "#", :style => "width:0;height:0;border:0px solid #fff;"} %br #description %table.inputs %tr %th.inputs Workflow Description %tr %td.inputs = @my_exp_wkf.description %br %br #outputs - if @my_exp_wkf.outputs.size >=1 %table.inputs %tr %th.inputs Output %th.inputs Description %th.inputs Examples - @my_exp_wkf.outputs.each do |output| %tr %td.inputs = output.name %td.inputs - if output.descriptions.size >=1 - output.descriptions.each do |descr| = descr %br %td.inputs - if output.examples.size >=1 - if output.examples.size >=1 - output.examples.each do |ex| = ex %br %br %br #note %table.inputs %tr %th.inputs %th.inputs Please Note %th.inputs %tr %td.inputs %img{:src => "/t2web/images/bullet_go.png", :alt => "Important!" } %td.inputs 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. %tr %td.inputs %img{:src => "/t2web/images/bullet_go.png", :alt => "Important!" } %td.inputs 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. %tr %td.inputs %img{:src => "/t2web/images/bullet_go.png", :alt => "Important!" } %td.inputs For more information on this workflow please visit the %a{ :href => "http://www.myExperiment.org/workflows/#{@wid}", :target => "_blank" } myExperiment website -# if #{@my_exp_wkf.user.email} %tr %td.inputs %img{:src => "/t2web/images/bullet_go.png", :alt => "Important!" } %td.inputs For questions/comments you can also contact the workflow creator at: %a{ :href => "mailto:#{@my_exp_usr.email}" } #{@my_exp_usr.email} %br #footer %table.acknowledgements %tr %td.inputs The work to generate a web form from a Taverna workflow was based on a collaboration between NBIC, myExperiment and myGrid.