Sha256: 71b6fcb154f07184d5c43e94fbc63a7c67d683823a9d9c7e8d431d2f0f549c8b
Contents?: true
Size: 1.91 KB
Versions: 27
Compression:
Stored size: 1.91 KB
Contents
- edit ||= false - collapsed = session[:lead_status].nil? # && @lead.errors.empty? = subtitle :lead_status, collapsed, t(:status) .section %small#lead_status_intro{ hidden_if(!collapsed) } = t(:intro, t(:lead_status_small)) unless edit #lead_status{ hidden_if(collapsed) } %table %tr %td .label.top #{t :assigned_to}: = user_select(:lead, all_users, current_user) %td= spacer %td .label.top #{t :status}: = f.select :status, lead_status_codes_for(@lead), { :selected => (@lead.status || "new").to_sym }, { :style => "width:160px" } %td= spacer %td .label.top #{t :rating}: = rating_select "lead[rating]", { :id => :lead_rating, :selected => @lead.rating, :style => "width:160px" } %tr %td .label #{t :source}: - if @campaign && !edit # Create a lead from Campaign landing page: select :campaign as a source and disable the dropdown. = f.select :source, Setting.unroll(:lead_source), { :selected => :campaign }, { :style => "width:160px;", :disabled => true } = hidden_field_tag "lead[source]", "campaign" - else = f.select :source, Setting.unroll(:lead_source), { :selected => (@lead.source || "other").to_sym }, { :style => "width:160px" } %td= spacer %td{ :colspan => 3 } .label #{t :campaign}: - if @campaign && !edit # Create a lead from Campaign landing page: select current campaign and disable the dropdown. = collection_select :lead, :campaign_id, @campaigns, :id, :name, { :selected => @campaign.id }, { :style => "width:100%", :disabled => true } - else = collection_select :lead, :campaign_id, @campaigns, :id, :name, { :selected => @lead.campaign_id, :include_blank => t(:select_none) }, { :style => "width:100%", :onchange => "crm.flip_campaign_permissions(this.value)" }
Version data entries
27 entries across 27 versions & 2 rubygems