2006-12-16 16:37:32 +03:00
|
|
|
<%= 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>
|
2007-06-23 17:49:29 +04:00
|
|
|
|
2007-08-29 20:52:35 +04:00
|
|
|
<% if current_role.allowed_to?(:manage_pulic_queries) %>
|
2007-06-23 17:49:29 +04:00
|
|
|
<p><label for="query_is_public"><%=l(:field_is_public)%></label>
|
|
|
|
<%= check_box 'query', 'is_public' %></p>
|
|
|
|
<% end %>
|
2006-12-16 16:37:32 +03:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<%= render :partial => 'queries/filters', :locals => {:query => query}%>
|
|
|
|
</div>
|