+
+ # check to see if any of the advanced options have been changed
+ new_qv = QuickVote.new
+ if @quickvote.election_method != new_qv.election_method \
+ or @quickvote.enddate.day != new_qv.enddate.day \
+ or @quickvote.viewable != new_qv.viewable \
+ or @quickvote.notices != new_qv.notices
+ show_advanced = true
+ end
+ end
+
+ show_advanced ||= false
+
+ # render the sidebar
+ @sidebar_content = render_to_string(:partial => 'create_sidebar',
+ :locals => {:show_advanced => show_advanced})
+
+ if params[:quickvote]
+