root/app/views/admin/artwork_groups/_select_for_artwork_set.rhtml @ 1caaf4a7
b689e231 | Marc Dequènes (Duck) | <%-
|
|
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 -%>
|