Sha256: 12cd8a0b26bafb363683228f44257681b4734ba4382bceeb9bb9bea42b3abd46

Contents?: true

Size: 1.18 KB

Versions: 4

Compression:

Stored size: 1.18 KB

Contents

- url = strategy.new_record? ? iro_strategies_path : iro_strategy_path(strategy)
.iro-strategies--form
  = form_for strategy, url: url, as: :iro_strategy do |f|
    = hidden_field_tag 'iro_strategy[iro_purse_id]', params[:iro_purse_id]
    .field
      = "#{strategy.id}." if strategy.id
      = f.label :slug
      = f.text_field :slug
      .actions
        = f.submit 'Submit', :data => { :confirm => 'Are you sure?' }
    .field
      = f.label :ticker
      = f.text_field :ticker
    .field
      = f.label :buffer_above_water
      = f.number_field :buffer_above_water, placeholder: "0.49", step: 0.01
    .field
      = f.label :next_max_delta
      = f.number_field :next_max_delta, placeholder: "0.25", step: 0.01
    .field
      = f.label :next_min_price
      = f.number_field :next_min_price, placeholder: "20.0", step: 0.01
    .field
      = f.label :threshold_delta
      = f.number_field :threshold_delta, placeholder: "0.14", step: 0.01
    .field
      = f.label :threshold_netp
      = f.number_field :threshold_netp, placeholder: "0.69", step: 0.01
    .field
      = f.label :current_underlying_strike
      = f.number_field :current_underlying_strike, placeholder: "16.66", step: 0.01

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ish_manager-0.1.8.415 app/views/ish_manager/iro_strategies/_form.haml
ish_manager-0.1.8.414 app/views/ish_manager/iro_strategies/_form.haml
ish_manager-0.1.8.413 app/views/ish_manager/iro_strategies/_form.haml
ish_manager-0.1.8.412 app/views/ish_manager/iro_strategies/_form.haml