app/views/chaskiq/manage/campaigns/index.haml in chaskiq-0.0.4 vs app/views/chaskiq/manage/campaigns/index.haml in chaskiq-0.0.5

- old
+ new

@@ -24,23 +24,29 @@ %button#loading-example-btn.btn.btn-white.btn-sm{:type => "button"} %i.fa.fa-refresh Refresh .col-md-11 .input-group - %input.input-sm.form-control{:placeholder => "Search", :type => "text"}/ + + = search_form_for @q, url: manage_campaigns_path() do |f| + + = f.search_field :subscribers_name_or_subscribers_email_or_subscribers_last_name_or_subject_or_from_name_or_from_email_or_reply_email_or_plain_content_or_name_or_state_cont, class: "input-sm form-control", placeholder: "Search by subscribers or campaign data" + + %span.input-group-btn %button.btn.btn-sm.btn-primary{:type => "button"} Go! .project-list %table.table.table-hover %tbody - - @campaigns.each do |campaign| + - @campaigns.uniq.each do |campaign| %tr %td.project-title %a{:href => manage_campaign_path(campaign)} = campaign.name %br/ - %small= campaign.created_at + %small + = l campaign.created_at, format: :short %td.project-completion %small Completion with: #{number_to_percentage(campaign.delivery_progress, precision: 0)} .progress.progress-mini .progress-bar.progress-bar-custom{:style => "width: #{campaign.delivery_progress}%;"}