<%= t('calculator') %>

<%= f.label(:calc_type, t("calculator"), :for => "calc-type") %> <%= f.collection_select(:calculator_type, @calculators, :to_s, :description, {}, {:id => "calc-type"}) %>

<% if !@object.new_record? %>
<%= f.fields_for :calculator do |calculator_form| %> <%= preference_fields(@object.calculator, calculator_form) %> <% end %>
<% if @object.calculator.respond_to?(:preferences) %>
<%= t('calculator_settings_warning')%>
<% end %> <% end %>