Sha256: 390d9a393fb93bcae8142272f10ef0eed31ed1b8fa20589dbe077d93a15945e8

Contents?: true

Size: 1.92 KB

Versions: 4

Compression:

Stored size: 1.92 KB

Contents

<%= form_for(@contract) do |f| %>
  <% if @contract.errors.any? %>
    <div id="error_explanation">
      <h2><%= pluralize(@contract.errors.count, "error") %> prohibited this contract from being saved:</h2>

      <ul>
      <% @contract.errors.full_messages.each do |msg| %>
        <li><%= msg %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="field">
    <%= f.label :con_id %><br />
    <%= f.number_field :con_id %>
  </div>
  <div class="field">
    <%= f.label :sec_type %><br />
    <%= f.text_field :sec_type %>
  </div>
  <div class="field">
    <%= f.label :strike %><br />
    <%= f.text_field :strike %>
  </div>
  <div class="field">
    <%= f.label :currency %><br />
    <%= f.text_field :currency %>
  </div>
  <div class="field">
    <%= f.label :sec_id %><br />
    <%= f.text_field :sec_id %>
  </div>
  <div class="field">
    <%= f.label :sec_id_type %><br />
    <%= f.text_field :sec_id_type %>
  </div>
  <div class="field">
    <%= f.label :legs_description %><br />
    <%= f.text_field :legs_description %>
  </div>
  <div class="field">
    <%= f.label :symbol %><br />
    <%= f.text_field :symbol %>
  </div>
  <div class="field">
    <%= f.label :local_symbol %><br />
    <%= f.text_field :local_symbol %>
  </div>
  <div class="field">
    <%= f.label :multiplier %><br />
    <%= f.number_field :multiplier %>
  </div>
  <div class="field">
    <%= f.label :expiry %><br />
    <%= f.text_field :expiry %>
  </div>
  <div class="field">
    <%= f.label :exchange %><br />
    <%= f.text_field :exchange %>
  </div>
  <div class="field">
    <%= f.label :primary_exchange %><br />
    <%= f.text_field :primary_exchange %>
  </div>
  <div class="field">
    <%= f.label :include_expired %><br />
    <%= f.check_box :include_expired %>
  </div>
  <div class="field">
    <%= f.label :right %><br />
    <%= f.text_field :right %>
  </div>
  <div class="actions">
    <%= f.submit %>
  </div>
<% end %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ib-ruby-0.9.2 app/views/ib/contracts/_form.html.erb
ib-ruby-0.9.1 app/views/ib/contracts/_form.html.erb
ib-ruby-0.9.0 app/views/ib/contracts/_form.html.erb
ib-ruby-0.8.5 app/views/ib/contracts/_form.html.erb