= simple_form_for [:admin, @section], html: {class: 'form-horizontal' } do |f| = render 'error_messages', target: @section = f.input :title .control-group class=(@section.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_sections_path, class: 'btn'