Sha256: d53389e5ef510ccaedd026f3cc74bf07c03eeaa0bb2ea8d366e45bccdc21d820

Contents?: true

Size: 731 Bytes

Versions: 4

Compression:

Stored size: 731 Bytes

Contents

= form_for [@folder, @document], :html => { :multipart => true, :class => 'edit document', :remote => true, :data => {:type => :html}} do |f|

  .filepicker
    = link_to "choose file", "#", :class => "ul minimal #{@document.file_extension}"
    = f.file_field :file, :class => "file"
    %p.tip
      = t :click_to_choose_file

  .metadata
    %p.name
      = f.text_field :name, :class => 'name', :placeholder => t(:"activerecord.attributes.droom.document.name")
    %p.description
      = f.text_area :description, :class => 'description', :placeholder => t(:"activerecord.attributes.droom.document.description")

    .buttons
      = f.submit t(:save_document)
      = t :or
      = link_to t(:cancel), "/", :class => 'cancel'

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
droom-0.4.3 app/views/droom/documents/_form.html.haml
droom-0.4.2 app/views/droom/documents/_form.html.haml
droom-0.4.1 app/views/droom/documents/_form.html.haml
droom-0.2.1 app/views/droom/documents/_form.html.haml