fatfreecrm/fat_free_crm

View on GitHub
app/views/campaigns/_sidebar_index.html.haml

Summary

Maintainability
Test Coverage
.filters#filters
  .caption= t :campaign_statuses
  - Setting.campaign_status.each do |key|
    .check_box
      %div{style: "float:right;"}
        = @campaign_status_total[key]
      = campaign_status_checkbox(key, @campaign_status_total[key])
      = label_tag(key, t(key))

  .check_box
    %div{style: "float:right;"}
      = @campaign_status_total[:other]
    = campaign_status_checkbox("other", @campaign_status_total[:other])
    = label_tag(:other, t(:other))

  .check_box
    %div{style: "float:right;"}
      %b= @campaign_status_total[:all]
    %b #{t :total_campaigns}
  = hook(:index_campaign_sidebar_bottom, self)