Project

General

Profile

Download (610 Bytes) Statistics
| Branch: | Tag: | Revision:

root / app / views / admin / artwork_sizes / _selector.rhtml @ fc30c2a2

1
<%
2
  standard_sizes = options_from_collection_for_select ArtworkSize.find(:all, :order => "height ASC, width ASC", :conditions => {:standard => true}), :id, :human_size, selected
3
  custom_sizes = options_from_collection_for_select ArtworkSize.find(:all, :order => "height ASC, width ASC", :conditions => {:standard => false}), :id, :human_size, selected
4

    
5
  sizes_choice = title_option(_("== Standard Sizes ==")) + standard_sizes + title_option(_("== Custom Sizes ==")) + custom_sizes
6
%>
7
<select id="<%= form_object %>_<%= form_field %>" name="<%= form_object %>[<%= form_field%>]"><%= sizes_choice %></select>
(2-2/6)