summaryrefslogtreecommitdiff
path: root/views/layout.haml
blob: 8641692d846f05cd291ba477d876c7af971ef0c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
!!! 5
%html
  %head
    %script{:type => "text/javascript", :src  => "jquery-1.8.2.js"}
    :javascript
      function display(element,uri) {
        $(element).html("<img src=\"/spinning-wait-icons/wait30trans.gif\" alt=\"Searching PubChem\">");
        $.ajax({
          url: uri,
          success: function(data){
            $(element).html(data);
          },
          error: function(data,textStatus,message){
            $(element).html(message);
          }
        });
      }

  %body
    %h1 adverse outcome pathways
    %form{:name => "form", :action => '/search', :method => "GET"}
      %fieldset
        %label{:for => 'identifier'} Compound name:
        %input{:type => 'text', :name => 'name', :id => 'name', :size => '60'}
        %input{ :type => "submit", :value => "Predict" }
    = yield