Sha256: 47d4b244ee844a0bedd8ca351aa86df6a9742f9402690dd3d186d1699597a95b

Contents?: true

Size: 534 Bytes

Versions: 4

Compression:

Stored size: 534 Bytes

Contents

-if user_signed_in?
  -unless TrayPosition.where(:asset_id => @content.asset.id, :user_id => current_user.id).exists?
    -tp = TrayPosition.new(:asset_id => @content.asset.id, :user_id => current_user.id)
    =form_for [current_user, tp], :url => main_app.user_tray_positions_path(current_user,tp), :html => {:class => "inline"} do |f|
      =f.hidden_field :asset_id
      =f.hidden_field :user_id
      =submit_tag "-> Tray", :class => "put_on_tray_button", :data => { :asset_id => @content.asset.id, :user_id => current_user.id }

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fassets_core-0.4.0 app/views/assets/_put_on_tray.html.haml
fassets_core-0.3.1 app/views/assets/_put_on_tray.html.haml
fassets_core-0.3.0 app/views/assets/_put_on_tray.html.haml
fassets_core-0.2.0 app/views/assets/_put_on_tray.html.haml