단순 레일은 모달 내부에 형성됩니다.
윌 작업 :<%= submit_tag "New Form", :class => "waves-button-input" %>
윌 되지 않음 일 :
<%= submit_tag "New Form", :class => "waves-effect waves-green btn-flat waves-button-input" %>
<input>
태그, 제출 태그, 양식 제출 POST 등 을 통해이 작업을 시도 했습니다. 어떤 이유로 이러한 클래스를 추가하면 문제가 발생합니다.
전체 컨텍스트 내 양식 :
<div id="projectModal" class="modal">
<div class="modal-content">
<div class="form-group">
<%= form_tag(new_project_path, method: :get) %>
<%= select_tag :project_type, options_for_select(Project.project_types.keys.to_a), :class => 'id_select', :id => 'secret_id' %><br><br><br>
<%#= text_field :client_id, %>
<%= collection_select :project, :client_id, current_user.clients, :id, :name, :prompt => true %>
</div>
</div>
<div class="modal-footer">
<a class="modal-action modal-close waves-effect waves-green btn-flat modal-close">Cancel</a>
<%= submit_tag "New Form", :class => "waves-button-input" %>
<!--<input type="submit" name="commit" value="New Form" class="waves-effect waves-green btn-flat waves-button-input" data-disable-with="New Form">-->
<!--<input type="submit" name="commit" value="New Form" class="waves-button-input" data-disable-with="New Form">-->
</div>
</div>
클릭 <i>
하면 색상 및 전체 효과로 변경 되지만 데이터를 보내는 데는 전혀 노력이 없습니다. 일반적으로 나는 터보 링크 또는 무언가를 생각할 것이지만 스타일 화없이 작동하기 때문에 혼란 스럽습니다.
양식에 ID를 추가하고 태그를 제출하십시오.
= form_tag(new_project_path, method: :get, id: 'formId')
= submit_tag "New Form", :class => "waves-effect waves-green btn-flat waves-button-input", form: 'formId'
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다