0

我正在使用带有 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 %>
4

0 回答 0