= resource_form(@blog_entry) do |f|
  = content do
    = f.fieldset(:class => 'primary') do
      = f.input(:title)
      = f.input(:body, :as => 'text')
      = f.input(:tag_summary, :label => 'Tags')

    = f.fieldset do
      = f.input(:published)
      = f.input(:author_id, :collection => @users)

      %div.field.multi-images
        %label Assets
        %ul(data-name="blog_entry[asset_ids][]")
          - @blog_entry.assets.each do |asset|
            %li{:id => "image-#{asset.id}"}
              %label
                = asset.name
                = check_box_tag('blog_entry[asset_ids][]', asset.id, :boolean => true)
              = image_tag(asset.preview.url(:thumb_medium))
          %li.add
            = link_to('Add Asset', '', :rel => 'add')

  = footer do
    = save_button
    = cancel_button(@blog_entry)

= resource_form(@blog_entry) do |f|
  = content do
    = f.fieldset(:class => 'primary') do
      = f.input(:title)
      = f.input(:body, :as => 'text')
      = f.input(:tag_summary, :label => 'Tags')

    = f.fieldset do
      = f.input(:published)
      = f.input(:author_id, :collection => @users)
      = asset_picker(f)

  = footer do
    = save_button
    = cancel_button(@blog_entry)

Use the generic asset picker.
Use the generic asset picker.
