<%= simple_form_for(@customer_configuration, :html=>{:id=>"frm_create_customer_configuration",:class=> "form-horizontal form-label-left"}, :url=>@url_path) do |f| %>

Add Configuration<%= f.submit :Save , class: 'btn btn-success btn-sm pull-right'%>

<% if current_user.customer_id == 0 %>
<%= f.input :customer_id, :collection => Customer.all.map{|c| [c.name,c.id]}, label:false, input_html: { class:'form-control'} %>
<% else %> <%= f.hidden_field :customer_id %> <% end %>
<%= f.input :configuration_parameter_id, :collection=>ConfigurationParameter.all.map{|cp| [cp.parameter,cp.id]}, input_html: { class: 'form-control col-md-7 col-xs-12'} , label: false %>
<% end %>