我正在使用带有rails 4的simple_form。表单似乎正常工作,除了我无法点击任何输入字段。当我尝试点击它们时,没有任何反应,我无法输入文字。这是代码:
<%= simple_form_for @mimic, url: create_employer_account_path, html: {id: 'braintree-payment-form'}, method: :post, remote: true do |f| %>
<div class="forms clearfix" style="margin-left: auto; margin-right: auto; width: 35%;">
<h1>Personal / Business Information</h1>
<p style="margin-top: 15px;" class="clearfix">
<%= f.input :first_name, input_html: {class: 'field', style: 'width: 300px;', id: 'first_name'}, required: true %>
</p>
<p style="margin-top: 15px;" class="clearfix">
<%= f.input :last_name, input_html: {class: 'field', style: 'width: 300px;', id: 'last_name'}, required: true %>
</p>
<p style="margin-top: 15px;" class="clearfix">
<%= f.input :company, input_html: {class: 'field', style: 'width: 300px;', id: 'company'} %>
</p>
<p style="margin-top: 15px;" class="clearfix">
<%= f.input :email, input_html: {class: 'field', style: 'width: 300px;', id: 'email'}, required: true %>
</p>
<p style="margin-top: 15px;" class="clearfix">
<%= f.input :phone, input_html: {class: 'field', style: 'width: 300px;', id: 'phone'} %>
</p>
<p style="margin-top: 15px;" class="clearfix">
<%= f.input :fax, input_html: {class: 'field', style: 'width: 300px;', id: 'fax'} %>
</p>
<p style="margin-top: 15px;" class="clearfix">
<%= f.input :website, input_html: {class: 'field', style: 'width: 300px;', id: 'website'} %>
</p>
</div>
<p class="buttons action-buttons text-center">
<%= f.submit "SUBMIT", class: 'submit-button button button-save button-submit'%>
</p>
<% end %>