added security type models, improved cashflow, bug- and layout fixes along the way
[smr.git] / gui / app / views / objects / security / _fund_form.html.erb
blob34dc4aa9cbc23bb7bfde05050e2e0c01b96b16c2
2 <%= form_for type, :url=>{action: :create}, :method=>:POST do |f| %>
3  <fieldset id='security_<%=security.type%>>'>
4   <legend><%=type%> Parameters</legend>
5   <%= f.hidden_field :id %>
6   <%= f.hidden_field :id_security %>
8   <h4>Base Parameters</h4>
9   <%= f.select :type, f.object.class.types.invert.collect{|t| [f.object.class.describe_type(t.first), t.second]} %><br/>
10   <%= f.text_field :currency %><%= label type, 'Currency. Leave blank if denominated in default currency (%s)' % Smr::DEFAULT_CURRENCY %><br/>
11   <%= f.text_field :tranche %><%= label type, 'Tranche Identifier.' %><br/>
12   <%= f.date_field :time_inception%><%= label type, 'Date of Inception' %><br/>
13   <%= f.date_field :time_fiscalyearend%><%= label type, 'End of fiscal year.' %><br/>
14   <%= f.number_field :investment_minimum, :min=>0, :value=>f.object.investment_minimum %><%= label type, 'Minimum amount to invest, in fund currency.' %><br/>
15   <%= f.check_box :is_synthetic %><%= f.label :is_synthetic, 'Synthetically tracks the Index or Benchmark' %><br/>
17   <h4>Distribution</h4>
18   <%= f.number_field :distribution, :step=>0.0001, :min=>0.0001, :value=>number_with_precision(f.object.distribution, :precision=>4) %><%= label type, 'Distribution declared, per share.' %><br/>
19   <%= f.date_field :time_distribution%><%= label type, 'Payment date for gain distributions.' %><br/>
20   <%= f.number_field :distribution_interval, :min=>1, :value=>f.object.distribution_interval %><%= label type, 'Interval between distribution payments, in months.' %><br/>
21   <%= f.check_box :is_retaining_profits %><%= f.label :is_retaining_profits, 'Retains the Profits' %>
23   <h4>Fees</h4>
24   <%= f.number_field :issue_surcharge, :min=>0, :value=>f.object.issue_surcharge %><%= label type, 'Issue Surcharge, as percentage.' %><br/>
25   <%= f.number_field :management_fee, :min=>0, :value=>f.object.management_fee %><%= label type, 'Annual Management Fee, as percentage.' %><br/>
26   <%= f.number_field :redemption_fee, :min=>0, :value=>f.object.redemption_fee %><%= label type, 'Redemption Fee, as percentage.' %><br/>
27   <%= f.number_field :redemption_period, :min=>0, :value=>f.object.redemption_period %><%= label type, 'Redemption processing Period, in days.' %><br/>
29   </br>
30   <%= f.text_area :comment, :cols=>45, :rows=>15, :placeholder=>'Additional Remarks?' %>
31   </br>
32   <%= f.submit 'Save Parameters' %>
33  </fieldset>
34 <% end %>