diff options
author | Christoph Helma <helma@in-silico.ch> | 2011-01-28 17:38:58 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2011-01-28 17:38:58 +0100 |
commit | 4edc55affca2a5312f5e9b03c874c02c0fc0dce6 (patch) | |
tree | 888430231f2ce8839b52d5ec66f335ee41859401 /views/create.haml | |
parent | e4f86ba5f38e03aa6ee257be75d63dc54e07ab10 (diff) |
default login as guest
Diffstat (limited to 'views/create.haml')
-rw-r--r-- | views/create.haml | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/views/create.haml b/views/create.haml index 5aeac67..c04f841 100644 --- a/views/create.haml +++ b/views/create.haml @@ -19,18 +19,15 @@ before submitting. %form{ :action => url_for('/models'), :method => "post", :enctype => "multipart/form-data" } + %input{:type => 'hidden', :name => 'subjectid', :id => 'subjectid', :value => session[:subjectid]} %fieldset - -#%label{:for => 'endpoint'} 1. Enter #{toggle_link("#endpoint_description","endpoint")} name and #{toggle_link("#unit","unit")} (for #{toggle_link("#regression","regression")}): - -#%input{:type => 'text', :name => 'endpoint', :id => 'endpoint', :size => '50'} - -#%br %label{:for => 'file'} - Select training dataset in + Select training data in = link_to "Excel", '/help' or = link_to "CSV", '/help' format: %input{:type => 'file', :name => 'file', :id => 'file', :size => '41'} - %input{:type => 'hidden', :name => 'subjectid', :id => 'subjectid', :value => session[:subjectid]} %input{ :type => "submit", :value => "Create model"} = link_to "Cancel", '/create' @@ -40,3 +37,14 @@ = haml :regression, :layout => false = haml :endpoint, :layout => false = haml :unit, :layout => false + + .login_notice + + - if session[:username] == "guest" + You are currently logged in as + %b guest + and your models can be modified or deleted by other guests. Please + = link_to "log in", "/login" + with your + %a{:href => "www.opentox.org"} OpenTox + account to control your model permissions. |