new.html.haml revision 8d0fb4fb93788e195e8fc2a48b243b3e53e6bd45
%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.collection_select :parent_id, Category.all, :id, :name_for_selects, :include_blank => true
= render :partial => 'categories'
= f.input :iri
= f.input :name
= f.input :description, input_html: { class: 'span8' }
.form-actions
= f.button :submit, disable_with: t(:wait), class: 'btn-primary'