|
<%-
|
|
if form_object and form_field and artwork_set_id and artwork_set_id != ""
|
|
obj_s = form_object.to_sym
|
|
field_s = form_field.to_sym
|
|
selected = nil unless defined?(selected)
|
|
|
|
el_id = "#{obj_s}_#{field_s}"
|
|
-%>
|
|
<option value=""></option>
|
|
<%= options_from_collection_for_select ArtworkGroup.find(:all, :conditions => {:artwork_set_id => artwork_set_id}, :order => "name ASC"), :id, :name, selected %>
|
|
<%=
|
|
update_page_tag do |page|
|
|
page << "$('#{el_id}').fire('change');"
|
|
end
|
|
%>
|
|
<%- end -%>
|