summaryrefslogtreecommitdiff
path: root/views/create.haml
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.de>2010-01-29 18:32:16 +0100
committerChristoph Helma <helma@in-silico.de>2010-01-29 18:32:16 +0100
commit9d5ca57de4ebce305e1e4f53701e502e49a6d4c8 (patch)
treed963ae794e9977a8f4e37ced57c8845023da7368 /views/create.haml
parent999aa185b0216fa04fd9e06097ca71bb4add792b (diff)
Initial version with Ambit support
Diffstat (limited to 'views/create.haml')
-rw-r--r--views/create.haml29
1 files changed, 23 insertions, 6 deletions
diff --git a/views/create.haml b/views/create.haml
index 5409057..babaa32 100644
--- a/views/create.haml
+++ b/views/create.haml
@@ -1,11 +1,28 @@
.upload
- %form{ :action => '/', :method => "post", :enctype => "multipart/form-data" }
- %ol
- %li Upload training data (OWL-DL)
+ -#
+ %p Select a dataset
+ %form{ :action => 'select', :method => "post" }
+ %input{:type => :hidden, :name => :dataset_uri, :value => @dataset_uri}
%p
- %input{:type => 'file', :name => 'file'}
+ %select{:name => "dataset_uri"}
+ - @datasets.each do |uri,title|
+ %option{:value => uri} #{title}
+ %input{ :type => "submit", :value => "Select"}
+ %a{:href => '/'} Cancel
+ %form{ :action => 'upload', :method => "post", :enctype => "multipart/form-data" }
+ %ol
+ %li
+ %label{:for => 'endpoint'}Enter endpoint name:
+ %input{:type => 'text', :name => 'endpoint', :id => 'endpoint'}
+ %li
+ %label{:for => 'file'}
+ Upload training data in CSV format:
+ %input{:type => 'file', :name => 'file', :id => 'file'}
+ (
+ %a{:href => 'csv_format'}formatting instructions
+ )
%li
- %input{ :type => "submit", :value => "Submit"}
- %a{:href => '/'} Cancel
+ %input{ :type => "submit", :value => "Create model"}
+ %a{:href => 'create'} Cancel