summaryrefslogtreecommitdiff
path: root/views/layout.haml
blob: 40c6747834e1d70e3ae27e6898f9ea8ad8c33d98 (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
27
!!! 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({
          cache: true,
          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 => 'name'} Compound name:
        %input{:type => 'text', :name => 'name', :id => 'name'}
        %input{ :type => "submit", :value => "Search" }
    = yield