Project

General

Profile

« Previous | Next » 

Revision 3807b362

Added by Marc Dequènes about 15 years ago

  • ID 3807b362f44c00b771ed8ed5b4da60799752825b

[evol] an artwork can have multiple materials

View differences:

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

Also available in: Unified diff