summaryrefslogtreecommitdiff
path: root/views/layout.haml
diff options
context:
space:
mode:
Diffstat (limited to 'views/layout.haml')
-rw-r--r--views/layout.haml26
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