Project

General

Profile

« Previous | Next » 

Revision 70e65017

Added by Marc Dequènes about 15 years ago

  • ID 70e65017593750754038374c7fab3b153ba60b5d

[fix] renamed 'technique' into more appropriate name 'artwork_support', and update schema and translations (Closes #4)

View differences:

app/views/admin/artworks/_form.rhtml
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 :technique_ids, _("Techniques"), :collection_select, @techniques, :id, :name, {:include_blank => true}, {:multiple => true, :size => [@techniques.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|
cat.field :artwork_condition_id, _("Condition:"), :collection_select, @artwork_conditions, :id, :name

Also available in: Unified diff