annotate app/views/queries/new.rhtml @ 414:576a1dca2ee2 bug_152

Check that user is permitted to see subproject, not only parent project. Fixes #152
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Tue, 10 May 2011 10:08:34 +0100
parents 513646585e45
children
rev   line source
Chris@0 1 <h2><%= l(:label_query_new) %></h2>
Chris@0 2
Chris@0 3 <% form_tag({:action => 'new', :project_id => @query.project}, :onsubmit => 'selectAllOptions("selected_columns");') do %>
Chris@0 4 <%= render :partial => 'form', :locals => {:query => @query} %>
Chris@0 5 <%= submit_tag l(:button_save) %>
Chris@0 6 <% end %>