= simple_form_for @receipt_item_type do |f|
  -if @receipt_item_type.errors.any?
    #error_explanation
      %h2= "#{pluralize(@receipt_item_type.errors.count, "error")} prohibited this receipt_item_tityype from being saved:"
      %ul
        - @receipt_item_type.errors.full_messages.each do |msg|
          %li= msg
  
  .inputs
    = f.input :receipt_name
    = f.input :friendly_name
    = f.input :receipt_item_category
    .form-group
      .col-sm-offset-2
        = submit_tag I18n.t('app.general.submit'), :class => 'btn btn-primary'
        - if !@receipt_item_type.new_record?
          = link_to t('general.delete'), @receipt_item_type, class: 'btn btn-default', method: :delete, confirm: t('general.are_you_sure')

= simple_form_for @receipt_item_type do |f|
  -if @receipt_item_type.errors.any?
    #error_explanation
      %h2= "#{pluralize(@receipt_item_type.errors.count, "error")} prohibited this receipt_item_tityype from being saved:"
      %ul
        - @receipt_item_type.errors.full_messages.each do |msg|
          %li= msg
  
  .inputs
    = f.input :receipt_name
    = f.input :friendly_name
    = f.input :receipt_item_category_id, :as => :select, :collection => current_account.receipt_item_categories.order('name').map { |x| [ x.name, x.id ] }
    .form-group
      .col-sm-offset-2
        = submit_tag I18n.t('app.general.submit'), :class => 'btn btn-primary'
        - if !@receipt_item_type.new_record?
          = link_to t('general.delete'), @receipt_item_type, class: 'btn btn-default', method: :delete, confirm: t('general.are_you_sure')

Use dropdown for receipt item category
Use dropdown for receipt item category
