Sha256: 6d2140ab20deabcfbd94624ead004d5a86f6c23b0b609fbb1ed8bf838fa1ab69

Contents?: true

Size: 1.94 KB

Versions: 13

Compression:

Stored size: 1.94 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", class: 'select2' }
        %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, class: 'select2' }
            = hidden_field_tag "lead[source]", "campaign"
          - else
            = f.select :source, Setting.unroll(:lead_source), { selected: (@lead.source || "other").to_sym }, { style: "width:160px", class: 'select2' }
        %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, class: 'select2' }
          - 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)", class: 'select2' }

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
fat_free_crm-0.22.1 app/views/leads/_status.html.haml
fat_free_crm-0.22.0 app/views/leads/_status.html.haml
fat_free_crm-0.21.0 app/views/leads/_status.html.haml
fat_free_crm-0.20.1 app/views/leads/_status.html.haml
fat_free_crm-0.20.0 app/views/leads/_status.html.haml
fat_free_crm-0.19.2 app/views/leads/_status.html.haml
fat_free_crm-0.19.0 app/views/leads/_status.html.haml
fat_free_crm-0.18.2 app/views/leads/_status.html.haml
fat_free_crm-0.17.3 app/views/leads/_status.html.haml
fat_free_crm-0.18.1 app/views/leads/_status.html.haml
fat_free_crm-0.18.0 app/views/leads/_status.html.haml
fat_free_crm-0.17.2 app/views/leads/_status.html.haml
fat_free_crm-0.17.1 app/views/leads/_status.html.haml