我有以下 Twitter Bootstrap 模态按钮 (haml) - 我想使用此按钮保存我的表单,然后打开模态对话框询问我是否要打印它。如何使此按钮执行提交或保存:
%a.btn{"data-toggle" => "modal", :href => "#myModal",
class: 'btn btn-inverse btn-large',
:role => "button"} Press to Complete Visit
#myModal.modal.hide.fade{"aria-hidden" => "true",
"aria-labelledby" => "myModalLabel", :role => "dialog", :tabindex => "-1"}