added security type models, improved cashflow, bug- and layout fixes along the way
[smr.git] / gui / app / views / quoterecords / _form.html.erb
blobb3217c05c317c7eb782320faf311218f500a110c
2 <% skip_fieldset = false if not skip_fieldset %>
4 <%= form_for quoterecord, :url=>{action: "create"}, :method=>:POST do |f| %>
5  <% if not skip_fieldset %>
6   <fieldset id='quoterecord'>
7     <legend><% if f.object.id  %>Edit <% else %>Add new<% end %>Quote Record<%= if f.object.id then ' #%i'%f.object.id end %></legend>
8     <% if f.object.id  %><span><b><%= f.object.Quote.quote %></b> on <%= smr_humanize f.object.Quote.time %></span><% end %>
9  <% end %>
10     <%= f.hidden_field :id %>
11     <%= f.hidden_field :id_security %>
12     <%= f.hidden_field :id_quote %>
13     <%= f.select :column, Quoterecord.get_columns.collect{|c| [Quoterecord.translate_column(c), c] }, :prompt=>'-- Select Column --' %>
14     <%= f.text_field :comment, placeholder: 'Comment' %>
15     <%= f.check_box :is_pivotal_point %><%= f.label :is_pivotal_point, 'Pivotal Point' %>
16     <%= f.check_box :is_uphit %><%= f.label :is_uphit, 'UP hit' %>
17     <%= f.check_box :is_downhit %><%= f.label :is_downhit, 'DOWN hit' %>
18     <%= f.check_box :is_signal %><%= f.label :is_signal, 'Signal' %>
19     <%= f.submit (if f.object.id then 'save' else 'record this one' end) %>
20  <% if not skip_fieldset %>
21   </fieldset>
22  <% end %>
23 <% end %>