<%= form_for :mess,
:url => '/message_order',
:remote => true,
html: {
multipart: true,
:role => :form,
:id => "form_order",
:data => {
:model => "mess"
}
} do |f| %>
<%= f.label :name, @settings.order_form_label_name, class: 'control-label must' %>
<%= f.text_field :name, class: 'form-control' %>
<%= f.label :email_or_phone, @settings.order_form_label_email_or_phone, class: 'control-label must' %>
<%= f.text_field :email_or_phone, class: 'form-control' %>
<%= f.label :kapcha, "Капча: сколько будет 2+2?", class: 'control-label' %>
<%= f.text_field :kapcha, class: 'form-control' %>
<%= f.label :subj_id, "subj_id", class: 'control-label' %>
<%= f.text_field :subj_id, class: 'form-control', :value => subj_id %>
<%= f.label :comment, @settings.order_form_label_comment, class: 'control-label' %>
<%= f.text_area :comment, class: 'form-control', :rows => "4", :value => predefined_comment %>
<%= f.label " ", class: 'control-label' %>
<%= f.submit @settings.order_form_label_button_send,
class: 'btn btn-primary',
data: {
disable_with: @settings.order_form_label_button_sending
}
%>
<% end %>