Skip to content

Commit

Permalink
These belong near each other in the code
Browse files Browse the repository at this point in the history
The `content_for` lets all the modals be generated
wherever and then placed at the bottom of the document
  • Loading branch information
pkqk committed Jan 21, 2015
1 parent 4ecd417 commit e29a29d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/surveyor/edit.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@
%span= t('surveyor.click_here_to_finish')
- else
=link_to t('surveyor.click_here_to_finish'), '#save-and-finish-modal', :class => 'btn btn-primary btn-large pull-right', :role=>"button", 'data-toggle' => "modal"
- content_for(:modal_content) do
= render :partial => 'surveyor/save_and_finish_modal'

= render :partial => 'status_panel'
= render :partial => 'shared/flashes'
Expand Down Expand Up @@ -95,8 +97,6 @@
= cache(survey_cache_key) do
= render :partial => '/partials/section', :collection => @sections, :locals => {:f => f}

= render :partial => 'surveyor/save_and_finish_modal' unless user_signed_in?

- content_for(:foot_scripts) do
:javascript
$(document).ready(function() {
Expand Down

0 comments on commit e29a29d

Please sign in to comment.