Project

General

Profile

« Previous | Next » 

Revision 3807b362

Added by Marc Dequènes over 12 years ago

  • ID 3807b362f44c00b771ed8ed5b4da60799752825b

[evol] an artwork can have multiple materials

View differences:

app/views/admin/artworks/_form.rhtml
25 25
    end
26 26
    cat.custom_field :artwork_size_id,  _("Size:"),
27 27
      render(:partial => 'admin/artwork_sizes/selector', :locals => {:form_object => resource_name, :form_field => "artwork_size_id", :selected => selected_artwork_size_id})
28
    cat.field :artwork_material_id, _("Material:"), :collection_select, @artwork_materials, :id, :name
28
    cat.field :artwork_material_ids, _("Materials:"), :collection_select, @artwork_materials, :id, :name, {:include_blank => true}, {:multiple => true, :size => [@artwork_materials.size + 1, 10].min}
29 29
    cat.field :artwork_support_ids, _("Supports"), :collection_select, @artwork_supports, :id, :name, {:include_blank => true}, {:multiple => true, :size => [@artwork_supports.size + 1, 10].min}
30 30
  end
31 31
  table.category _("Result") do |cat|

Also available in: Unified diff