= simple_form_for parent? ? [parent, resource] : resource do |f|
  .row-fluid
    = f.input :title

  .row-fluid
    .span6
      = f.input :file, :as => :file
    .span6
      = f.input :encoding, :collection => encoding_collection

    - if parent?
      - if parent
        - f.object.object = parent
        = f.input :object_id, :as => :hidden
        = f.input :object_type, :as => :hidden
      - else
        = f.input :object, :collection => parent_class.all

  = f.button :submit

= simple_form_for parent? ? [parent, resource] : resource do |f|
  .row-fluid
    .span6
      = f.input :file, :as => :file
    .span6
      = f.input :encoding, :collection => encoding_collection

    - if parent?
      - if parent
        - f.object.object = parent
        = f.input :object_id, :as => :hidden
        = f.input :object_type, :as => :hidden
      - else
        = f.input :object, :collection => parent_class.all

  = f.button :submit

Drop title field in booking import attachment form.
Drop title field in booking import attachment form.
