git-svn-id: https://192.168.0.254/svn/Rodax.redmine_rodax_crm/trunk@2 ff88604e-da85-c949-a72f-fc3aa3ba3724
62 lines
2.2 KiB
Plaintext
62 lines
2.2 KiB
Plaintext
<h2><%= h l(:label_sale_funel) %></h2>
|
|
|
|
<div class="filters">
|
|
<% form_tag(params, :id => "query_form") do %>
|
|
<%= hidden_field_tag('project_id', @project.to_param) if @project %>
|
|
<% no_filters = (params[:status_id].blank? && params[:assigned_to_id].blank?) %>
|
|
|
|
<fieldset id="filters" class="collapsible <%= 'collapsed' if no_filters %>">
|
|
<legend onclick="toggleFieldset(this);"><%= l(:label_filter_plural) %></legend>
|
|
<div style="<%= 'display: none;' if no_filters %>">
|
|
<p>
|
|
<%= label_tag l(:field_deal_status_is_closed) + " "%>
|
|
<%= check_box_tag 'is_closed', "1", params[:is_closed] %>
|
|
|
|
<%= label_tag l(:label_period) + " "%>
|
|
<%= select_tag 'period', options_for_period_select(params[:period]) %>
|
|
|
|
<% if @project && !@project.deal_categories.empty? %>
|
|
<%= label_tag l(:label_deal_category) + " "%>
|
|
<%= select_tag 'category_id', options_for_select(@project.deal_categories.collect {|c| [c.name, c.id]}.insert(0, [""]), params[:category_id]) %>
|
|
<% end %>
|
|
|
|
<%= label_tag l(:label_assigned_to) + " " %>
|
|
<%= select_tag :author_id, options_for_select(Deal.available_users(@project).collect{|u| [u.name, u.id]}.insert(0, [""]), params[:author_id]) %>
|
|
</p>
|
|
|
|
</div>
|
|
</fieldset>
|
|
<p class="buttons hide-when-print">
|
|
|
|
<%= link_to_remote l(:button_apply),
|
|
{ :url => {},
|
|
:update => "sale_funel",
|
|
:with => "Form.serialize('query_form')"
|
|
}, :class => 'icon icon-checked' %>
|
|
|
|
<%= link_to l(:button_clear),
|
|
{:project_id => @project },
|
|
:method => :get,
|
|
:update => "sale_funel",
|
|
:class => 'icon icon-reload' %>
|
|
</p>
|
|
<% end %>
|
|
|
|
</div>
|
|
|
|
<div id="sale_funel">
|
|
<%= render :partial => 'sale_funel' %>
|
|
</div>
|
|
|
|
<% content_for(:header_tags) do %>
|
|
<%= stylesheet_link_tag :contacts, :plugin => 'redmine_contacts' %>
|
|
<%= stylesheet_link_tag :contacts_sidebar, :plugin => 'redmine_contacts' %>
|
|
<meta name = "format-detection" content = "telephone=no">
|
|
<% end %>
|
|
|
|
<% content_for :sidebar do %>
|
|
<%= render :partial => 'common/sidebar' %>
|
|
<%= render :partial => 'deals/deals_statistics' %>
|
|
<%= render :partial => 'common/recently_viewed' %>
|
|
|
|
<% end %> |