Sha256: f695ce90c303cef2e34bfc4744e33d78c0fcb02fe3e71a66bf4b330a024c9a3a

Contents?: true

Size: 1.1 KB

Versions: 9

Compression:

Stored size: 1.1 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|
  .form-group
    = f.select :action, options_for_select( Ish::StockWatch::ACTIONS.map{|a|[a,a]}, :selected => stock_watch.action )
  .form-group
    = 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( Ish::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)
  .c

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
ish_manager-0.1.8.261 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.260 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.259 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.258 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.257 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.256 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.255 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.254 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.253 app/views/ish_manager/stock_watches/_form.haml