summaryrefslogtreecommitdiff
path: root/views/create.haml
diff options
context:
space:
mode:
Diffstat (limited to 'views/create.haml')
-rw-r--r--views/create.haml19
1 files changed, 14 insertions, 5 deletions
diff --git a/views/create.haml b/views/create.haml
index 20de401..c04f841 100644
--- a/views/create.haml
+++ b/views/create.haml
@@ -18,13 +18,11 @@
= link_to "instructions for creating training datasets", '/help'
before submitting.
- %form{ :action => url_for('/upload'), :method => "post", :enctype => "multipart/form-data" }
+ %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'}
- 2. Upload training data in
+ Select training data in
= link_to "Excel", '/help'
or
= link_to "CSV", '/help'
@@ -39,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.