%= simple_form_for @purchase, html: { class: 'form-horizontal' } do |f| %>
<%= f.error_notification %>
<%= f.input :title %>
<%= f.input :description, input_html: { class: 'input-xxlarge', rows: 4 } %>
<%= f.input :purchase_date, :wrapper => :prepend do %>
<%= content_tag :span, ''.html_safe, class: "add-on calendar" %><%= f.input_field :purchase_date, as: :datepicker, data: { 'date-format' => 'dd/mm/yyyy' } %>
<% end %>
<%= f.input :warranty_duration, collection: [["6 months", 6], ["1 year", 12], ["2 years", 24], ["3 years", 36]], input_html: { class: 'input-small' } %>
<%= f.input :receipt %>
<%= button_tag ' Save'.html_safe, class: 'btn' %>
<% end %>