= simple_form_for [:admin, @order], html: {class: 'form-horizontal' } do |f|
  = render 'error_messages', target: @order
  .control-group class=(@order.errors[:state].any? ? 'error' : nil)
    = f.label :state, class: 'control-label'
    .controls
      = f.text_field :state, class: 'text_field'
  .control-group class=(@order.errors[:supplier_id].any? ? 'error' : nil)
    = f.label :supplier_id, Supplier.model_name.human, class: 'control-label'
    .controls
      = f.collection_select :supplier_id, @suppliers, :id, :name, include_blank: nil
  .form-actions
    = f.submit nil, class: 'btn btn-primary'
    '
    = link_to t("helpers.links.cancel"), admin_orders_path, class: 'btn'
