Sha256: cd20ef303fbe3a151535289dd7f72f7c5448e5bee078131c8d013a1a8a20339e

Contents?: true

Size: 1.19 KB

Versions: 27

Compression:

Stored size: 1.19 KB

Contents

- if stock_watch.persisted?
  .float-left= button_to '[X]', stock_watch_path(stock_watch.id), method: :delete, data: { confirm: 'Are you sure?' }


- url = stock_watches_path if !stock_watch.persisted?
- url = stock_watch_path( stock_watch ) if stock_watch.persisted?

= form_for stock_watch, :url => url, :html => { :class => 'form-inline well' } do |f|
  .flex-row
    .form-group
      = f.label :action
      = f.select :action, options_for_select( Warbler::StockWatch::ACTIONS.map{|a|[a,a]}, :selected => stock_watch.action )
    .form-group
      = f.label :profile
      = f.select :profile, options_for_select( [[nil,nil]]+@profiles.map{|p|[p.email,p.id]}, :selected => stock_watch.profile ? stock_watch.profile.id : nil )
    .form-group
      %label.control-label When
      = f.text_field :ticker, :class => 'form-control', :placeholder => 'ticker'
    .form-group
      %label.control-label Price
      = f.select :direction, options_for_select( Warbler::StockWatch::DIRECTIONS.map{|d|[d,d]}, :selected => stock_watch.direction )
    .form-group
      %label.control-label $
      = f.number_field :price, :step => 0.01, :placeholder => "0.01"
    .form-group
      = f.submit ">", :class => %w(btn blue)

Version data entries

27 entries across 26 versions & 1 rubygems

Version Path
ish_manager-0.1.8.296 app/views/ish_manager/trash/stock_watches/_form.haml
ish_manager-0.1.8.295 app/views/ish_manager/trash/stock_watches/_form.haml
ish_manager-0.1.8.294 app/views/ish_manager/trash/stock_watches/_form.haml
ish_manager-0.1.8.293 app/views/ish_manager/trash/stock_watches/_form.haml
ish_manager-0.1.8.292 app/views/ish_manager/trash/stock_watches/_form.haml
ish_manager-0.1.8.291 app/views/ish_manager/trash/stock_watches/_form.haml
ish_manager-0.1.8.290 app/views/ish_manager/trash/stock_watches/_form.haml
ish_manager-0.1.8.289 app/views/ish_manager/trash/stock_watches/_form.haml
ish_manager-0.1.8.288 app/views/ish_manager/trash/stock_watches/_form.haml
ish_manager-0.1.8.287 app/views/ish_manager/trash/stock_watches/_form.haml
ish_manager-0.1.8.287 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.284 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.282 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.281 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.280 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.279 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.278 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.277 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.274 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.273 app/views/ish_manager/stock_watches/_form.haml