<%= # noinspection RailsParamDefResolve
form_for :bid,
:url => '/make_bid',
:remote => true,
html: {
multipart: true,
:role => :form,
:id => 'form_bid',
:data => {
:model => 'bid'
}
} do |f| %>
<%= hidden_field_tag :authenticity_token, '', :value => form_authenticity_token %>
<%= f.label :title, settings.form_label_name, class: 'control-label must' %>
<%= f.text_field :title, class: 'form-control' %>
<%= f.label :phone, settings.form_label_phone, class: 'control-label must' %>
<%= f.text_field :phone, class: 'form-control' %>
<%= f.label :photo, settings.form_label_photo, class: 'control-label must' %>
<%= f.text_field :photo, :type => 'file', data: { preview_Type_File: 'text' }, class: 'form-control' %>
<%= f.label ' ', class: 'control-label' %>
<%= f.submit settings.form_label_button_send,
class: 'btn btn-success',
data: {
disable_with: settings.form_label_button_sending
}
%>
<% end %>