<%= form.hidden_field(field.method_name, id: nil, value: field.form_value) %> <%= form.text_field field.method_name, field.html_attributes.reverse_merge({class: 'form-control', data: {datetimepicker: true, options: field.datepicker_options.to_json}, name: nil, value: nil}) %> <%= form.label(field.method_name, class: 'input-group-addon') do %> <% end %>