new.html.haml revision f9da52bc996601c40b7c3711c30396a67719c022
%h2= @page_title = "Create an ontology"
= simple_form_for resource, html: { class: 'form-horizontal' } do |f|
= f.input :type, :as => :radio_buttons, :collection => {"Distributed" => "DistributedOntology", "Single" => "SingleOntology"}
.well
= f.simple_fields_for :versions, resource.versions.first do |vf|
= vf.input :raw_file, :as => :file
\- OR -
= vf.input :source_url, :as => :url
= f.input :iri
= f.input :name
= f.input :description, input_html: { class: 'span8' }
= f.association :categories
.form-actions
= f.button :submit, disable_with: t(:wait), class: 'btn-primary'