summaryrefslogtreecommitdiff
path: root/views/create.haml
blob: 0b299f5bff23202b26aebdf8d8a89c8bc34e2f64 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
.input

  This service creates 
  %ul
    %li
      = toggle_link("#lazar_description","lazar")
      %em= toggle_link("#classification","classification")
      models and
    %li
      = toggle_link("#lazar_description","lazar")
      %em= toggle_link("#regression","regression")
      models (experimental) 
  from your uploaded datasets. Further modelling algorithms will be added in future versions.
 
  %p
    Please read the 
    = link_to "instructions for creating training datasets", '/help'
    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 => 'file'}
        Upload training data in
        = link_to "Excel", '/help'
        or
        = link_to "CSV", '/help'
        format:
      %input{:type => 'file', :name => 'file', :id => 'file', :size => '41'}
    %input{ :type => "submit", :value => "Create model"}
    =# link_to "Cancel", '/create'

  %p
    or
    %a{:href => "echa"} Select a AMBIT dataset
    (experimental)

  -# explanations
  = haml :lazar_description, :layout => false
  = haml :classification, :layout => false
  = 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 => "http://www.opentox.org", :rel => "external"} OpenTox
      account to control your model permissions.