Project

General

Profile

« Previous | Next » 

Revision 70e65017

Added by Marc Dequènes over 12 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
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 28
    cat.field :artwork_material_id, _("Material:"), :collection_select, @artwork_materials, :id, :name
29
    cat.field :technique_ids, _("Techniques"), :collection_select, @techniques, :id, :name, {:include_blank => true}, {:multiple => true, :size => [@techniques.size + 1, 10].min}
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|
32 32
    cat.field :artwork_condition_id, _("Condition:"), :collection_select, @artwork_conditions, :id, :name

Also available in: Unified diff