summaryrefslogtreecommitdiffstats
path: root/app/views/queries/_form.rhtml
blob: d641fa0b5621d326f423f3ff57dbd1202ceff6d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<%= error_messages_for 'query' %>

<div class="box">
<div class="tabular">
<p><label for="query_name"><%=l(:field_name)%></label>
<%= text_field 'query', 'name', :size => 80 %></p>

<% if current_role.allowed_to?(:manage_pulic_queries) %>
  <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>