Sha256: 392a643fa790495eb7ff7dcf4d0639159516ce56057d890821195dc82b5058f6

Contents?: true

Size: 972 Bytes

Versions: 125

Compression:

Stored size: 972 Bytes

Contents

- 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)

Version data entries

125 entries across 125 versions & 1 rubygems

Version Path
ish_manager-0.1.8.145 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.144 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.143 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.142 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.141 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.140 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.139 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.138 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.137 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.136 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.135 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.134 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.133 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.132 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.131 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.129 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.128 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.127 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.126 app/views/ish_manager/stock_watches/_form.haml
ish_manager-0.1.8.125 app/views/ish_manager/stock_watches/_form.haml