root/app/views/admin/artwork_sizes/_selector.rhtml @ 1caaf4a7
b689e231 | Marc Dequènes (Duck) | <%
|
|
fc30c2a2 | Marc Dequènes (Duck) | standard_sizes = options_from_collection_for_select ArtworkSize.find(:all, :order => "height ASC, width ASC", :conditions => {:standard => true}), :id, :human_size, selected
|
|
custom_sizes = options_from_collection_for_select ArtworkSize.find(:all, :order => "height ASC, width ASC", :conditions => {:standard => false}), :id, :human_size, selected
|
|||
b689e231 | Marc Dequènes (Duck) | ||
sizes_choice = title_option(_("== Standard Sizes ==")) + standard_sizes + title_option(_("== Custom Sizes ==")) + custom_sizes
|
|||
%>
|
|||
<select id="<%= form_object %>_<%= form_field %>" name="<%= form_object %>[<%= form_field%>]"><%= sizes_choice %></select>
|