test/dummy/app/views/sessions/_modal.html.haml in formula-1.0.0 vs test/dummy/app/views/sessions/_modal.html.haml in formula-1.0.1
- old
+ new
@@ -1,12 +1,14 @@
-.modal.fade
- = formula_form_for @session, url: session_path, :html => { :class => 'form-horizontal' } do |form|
- .modal-header
- %a{ :class => 'close', :data => { :dismiss => 'modal' } } ×
- %h2
- Session
- %small= title if title
- .modal-body
- = render 'fields', :form => form
- .modal-footer
- = form.submit "Submit", :class => 'btn btn-primary'
- %a{ :class => 'btn', :data => { :dismiss => 'modal' } } Close
+.modal.fade{ :role => 'dialog' }
+ .modal-dialog
+ .modal-content
+ = formula_form_for @session, url: session_path, :html => { :role => 'form' } do |form|
+ .modal-header
+ %a{ :class => 'close', :data => { :dismiss => 'modal' } } ×
+ %h2
+ Session
+ %small= title if title
+ .modal-body
+ = render 'fields', :form => form
+ .modal-footer
+ = form.submit "Submit", :class => 'btn btn-primary'
+ %a{ :class => 'btn', :data => { :dismiss => 'modal' } } Close
\ No newline at end of file