Sha256: 3f5e388e344fbe7edafa2d813c76aa7a058c0aef0f533f9ec2b98d1016bfd2ce

Contents?: true

Size: 870 Bytes

Versions: 3

Compression:

Stored size: 870 Bytes

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( @
        = f.text_field :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 )
      %label Strategy
      = f.select :strategy_id, options_for_select( @strategies_list, selected: position.strategy_id )

    .field
      %label Expires on
      = f.text_field :expires_on
      %label Quantity
      = f.text_field :quantity

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

    .actions
      = f.submit

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
iron_warbler-2.0.7.22 app/views/iro/positions/_form.haml
iron_warbler-2.0.7.21 app/views/iro/positions/_form.haml
iron_warbler-2.0.7.20 app/views/iro/positions/_form.haml