Sha256: 647ee3bd1635d8832d2317a4a7a29b9c0e84fb11fb90a781502ddbf5dfe4c4aa
Contents?: true
Size: 763 Bytes
Versions: 3
Compression:
Stored size: 763 Bytes
Contents
%form#asset-insert{:action => "#{packet.route_to(model_name, 'new')}", :method => 'post', :enctype=>"multipart/form-data"} %input{:type => 'hidden', :name => "fake_xhr", :value => "1"} - for prop in props - next if [:path, :secondary_path].include?(prop[:name]) %p= view_attribute(prop, model_name, :label => true) %p %label File %br %input{:type => 'file', :name => "#{model_name}[file]"} / %p / %label Secondary File / %br / %input{:type => 'file', :name => "#{model_name}[file2]"} %input{:type => 'submit', :value => 'Save New Item'} :javascript $("#asset-insert").ajaxForm({dataType: 'json', success: function(ret){ $.markItUp({ replaceWith: '<o:asset id="'+ret.id+'" />' } ); $.fn.colorbox.close(); }});
Version data entries
3 entries across 3 versions & 1 rubygems