2 <%= form_for type, :url=>{action: :create}, :method=>:POST do |f| %>
3 <fieldset id='security_<%=security.type%>>'>
4 <legend><%= security.describe_type %> Parameters</legend>
5 <%= f.hidden_field :id %>
7 <h4>Base Parameters</h4>
8 <%= f.select :type, SecurityBond.types_for_form, :prompt=>'-- Select Type --' %><br/>
9 <%= f.text_field :currency %><%= label type, 'Currency. Leave blank if denominated in default currency (%s).' % Smr::DEFAULT_CURRENCY %><br/>
10 <%= f.number_field :issue_size, :min=>0 %><%= label type, 'Nominal Size Issued.' %><br/>
11 <%= f.number_field :denomination, :min=>1 %><%= label type, 'Denomination (ie. minimum tradable amount of total nominal).' %><br/>
12 <%= f.check_box :is_subordinated %><%= f.label :is_subordinated, 'Subordinated Security' %>
13 <%= f.check_box :is_callable %><%= f.label :is_callable, 'Callable before Maturity' %>
14 <%= f.check_box :is_stepup %><%= f.label :is_stepup, 'has StepUP Clause' %>
15 <%= f.check_box :is_stepdown %><%= f.label :is_stepdown, 'has StepDown Clause' %>
18 <%= f.number_field :coupon, :step=>0.001, :min=>0.001, :value=>smr_humanize(f.object.coupon.to_f, :scale=>3) %><%= label type, 'Annual Coupon.' %><br/>
19 <%= f.number_field :coupon_interval, :min=>1 %><%= label type, 'Interval between coupon payments, in months.' %><br/>
20 <%= f.select :interest_method, SecurityBond.interest_methods_for_form, :prompt=>'-- Select Interest Calculation Method --' %><br/>
21 <%= f.date_field :time_issue %><%= label type, 'Issue Date (when interest starts)' %><br/>
22 <%= f.date_field :time_first_coupon %><%= label type, 'Date of first coupon.' %><br/>
23 <%= f.date_field :time_last_coupon %><%= label type, 'Date of last coupon.' %><br/>
26 <%= f.date_field :time_maturity %><%= label type, 'Date of final Maturity (last installment if more than one).' %><br/>
27 <%= f.number_field :redemption_price, :step=>0.0001, :min=>0.0001, :value=>number_with_precision(f.object.redemption_price, :precision=>4) %><%= label type, 'Redemtion Price at maturity' %><br/>
28 <%= f.number_field :redemption_installments, :min=>0 %><%= label type, 'Number of redemption installments.' %><br/>
29 <%= f.number_field :redemption_interval, :min=>1 %><%= label type, 'Interval between redemption payments, in months.' %><br/>
32 <%= f.date_field :time_first_call %><%= label type, 'Date of first Call (if callable).' %><br/>
33 <%= f.number_field :call_price, :step=>0.0001, :min=>0, :value=>number_with_precision(f.object.call_price, :precision=>4) %><%= label type, 'Call Price.' %><br/>
34 <%= f.number_field :call_interval, :min=>0 %><%= label type, 'Distance to subsequent call dates, in months.' %><br/>
35 <%= f.number_field :call_notify_deadline, :min=>0 %><%= label type, 'Deadline for Call notifies, in days before Call Date.' %><br/>
38 <%= f.text_area :comment, :cols=>45, :rows=>15, :placeholder=>'Additional Remarks?' %>