<%= f.hidden_field field %>
<%= link_to " There is currently no #{description ||= resource} selected, click here to add one. ", insert_admin_resources_url(:dialog => true, :update_resource => 'current_resource', :update_text => 'current_resource_text', :callback => 'resource_changed', :field => "#{f.object.class.name.underscore.downcase}_#{field}", :current_link => "#{resource.public_filename if resource.present?}"), :name => "Add #{(description ||= 'resource').titleize}", :id => "current_resource_link" %>
> Current <%= description ||= "resource" %>: <%= "#{resource.title} (#{resource.public_filename})" if resource.present? %>
<%= link_to "#{refinery_icon_tag("page_white_put.png")} Download current #{description ||= "resource"} (Opens in a new window)", "#{resource.public_filename if resource.present?}", :id => "current_resource", :target => "_blank" %>

<%= link_to "Remove current #{description ||= "resource"}", "", :id => "remove_resource", :style => "#{"display:none;" unless resource.present?}" %>
<% content_for :head do %> <% end %>