Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9ab762d6e6
Fetching contributors…

Cannot retrieve contributors at this time

file 29 lines (27 sloc) 0.865 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
= form_for @instrument, :html => { :multipart => true } do |f|
  %p
    = f.error_messages
  %table
    %tr
      %td= f.label :type
      %td= f.select :type, ["NOISE", "PULSE", "WAVE"], {}, {:selected => @instrument.type, :onchange => 'changeINStype(this.options[this.selectedIndex].value)'}
    %tr
      %td= f.label :author
      %td= f.text_field :author
    %tr
      %td= f.label :name
      %td= f.text_field :name
    %tr
      %td= f.label :tag_list
      %td= f.text_field :tag_list
    %tr
      %td= f.label :sample
      %td= f.file_field :sample
    %tr
      %td
      %td.verysmall ogg/mp3, 128Kb max.


    %tr{:height => "20px"}
    %tr
      %td= f.label :instrument_name
      %td{:width => "70px"}= f.text_field :instrument_name, :maxlength => 5, :size => 5
  = render :partial => "form_#{@instrument.type.downcase}", :locals => { :f => f }
Something went wrong with that request. Please try again.