Improve filter

Added by Luis Serrano Aranda almost 6 years ago

I want to improve the filter to look only the allowed status and I think it's possible modifying inside the file /app/views/queries/_filters.html.erb

    when :list, :list_optional, :list_status, :list_subprojects %>
        <span class="span_values_<%= field %>">
          <%= select_tag "v[#{field}][]", options_for_select(options[:values], query.values_for(field)), :class => "values_#{field}", :id => "values_#{field}_1", :multiple => (query.values_for(field) && query.values_for(field).length > 1) %>
          <%= link_to_function image_tag('bullet_toggle_plus.png'), "toggle_multi_select('values_#{field}_1');" %>
        </span>

to


    when :list, :list_optional, :list_subprojects %>
        <span class="span_values_<%= field %>">
          <%= select_tag "v[#{field}][]", options_for_select(options[:values], query.values_for(field)), :class => "values_#{field}", :id => "values_#{field}_1", :multiple => (query.values_for(field) && query.values_for(field).length > 1) %>
          <%= link_to_function image_tag('bullet_toggle_plus.png'), "toggle_multi_select('values_#{field}_1');" %>
        </span>
   <% :list_status %>
       <span class="span_values_<%= field %>">
          <%= select_tag "v[#{field}][]", options_for_select(options[:values], query.values_for(field)), :class => "values_#{field}", :id => "values_#{field}_1", :multiple => (query.values_for(field) && query.values_for(field).length > 1) %>
          <%= link_to_function image_tag('bullet_toggle_plus.png'), "toggle_multi_select('values_#{field}_1');" %>
        </span>

Modifiyng after <% :list_status %> 


Please, could you helpme ?

Thanks

Replies (1)

(1-1/1)