diff options
author | Christoph Helma <helma@in-silico.ch> | 2012-11-21 10:09:48 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2012-11-21 10:09:48 +0100 |
commit | c38f9f2e4c2dec4ef163c6c76d64f5dbf4974a5a (patch) | |
tree | 4f4b71056b1e8728720fb2a5f6886dc2dfe634cd /views/layout.haml | |
parent | 9661a67983ffc93ee02bc12b20b9afb38e199d79 (diff) |
Initial GUI
Diffstat (limited to 'views/layout.haml')
-rw-r--r-- | views/layout.haml | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/views/layout.haml b/views/layout.haml new file mode 100644 index 0000000..8641692 --- /dev/null +++ b/views/layout.haml @@ -0,0 +1,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 |