diff options
Diffstat (limited to 'app/views/queries/_form.rhtml')
-rw-r--r-- | app/views/queries/_form.rhtml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/app/views/queries/_form.rhtml b/app/views/queries/_form.rhtml index d50b1e9b9..9482bd33a 100644 --- a/app/views/queries/_form.rhtml +++ b/app/views/queries/_form.rhtml @@ -1,12 +1,15 @@ <%= error_messages_for 'query' %> -<!--[form:query]--> <div class="box"> <div class="tabular"> <p><label for="query_name"><%=l(:field_name)%></label> <%= text_field 'query', 'name', :size => 80 %></p> + +<% if authorize_for('projects', 'add_query') %> + <p><label for="query_is_public"><%=l(:field_is_public)%></label> + <%= check_box 'query', 'is_public' %></p> +<% end %> </div> <%= render :partial => 'queries/filters', :locals => {:query => query}%> </div> -<!--[eoform:query]-->
\ No newline at end of file |