Sha256: c577083f82cc6cd5526615b7e47599739521289151d83ea916b4c2f0c6a65489

Contents?: true

Size: 1.13 KB

Versions: 1

Compression:

Stored size: 1.13 KB

Contents

.positions--form{ class: params[:long_or_short] || position.strategy&.long_or_short }
  = form_for position do |f|
    .actions
      = f.submit

    .d-flex
      .field
        %label Purse
        = f.select :purse_id, options_for_select( @purses_list, selected: position.purse_id )

        %label Status
        = f.select :status, options_for_select( Iro::Position::STATUSES, selected: position.status )

    .field
      %label Stock
      = f.select :stock_id, options_for_select( @stocks_list, selected: position.stock_id )

    .field
      %label long or short?
      = f.select :long_or_short, options_for_select([nil, Iro::Strategy::LONG, Iro::Strategy::SHORT], selected: position.long_or_short || params[:long_or_short] )

    %label Strategy
    = f.select :strategy_id, options_for_select( @strategies_list, selected: position.strategy_id )

    .field
      %label Expires on
      = f.select :expires_on, options_for_select( Iro::Option.expirations_list, selected: position.expires_on )
      %label Quantity
      = f.text_field :quantity

    %br
    = render 'formpart_4data', f: f, position: position

    .actions
      = f.submit

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
iron_warbler-2.0.7.26 app/views/iro/positions/_form.haml