Sha256: 10bdfea4f6df924b13e91bbd0573440b86be5558f5e23e8c64935bb8ae5f070b

Contents?: true

Size: 1.29 KB

Versions: 7

Compression:

Stored size: 1.29 KB

Contents

.suggested-households
  - if @by_address.count < 1 && @by_spouse.count < 1
    %h3 Suggested Households
    %p
      There are no suggested households.

  - if @by_address.count > 0
    %h4 Similar Addresses
    %table.by-address.table
      - @by_address.each do |row|
        - next if row.individuals.empty?
        %tr
          %td.people
            - row.individuals.each do |person|
              .well.span3
                %h5= person
                = person.address

          %td.controls{:style => "width: 80px;"}
            = link_to "Join", suggested_household_new_household_path(row), :class => "btn btn-primary btn-block"
            %br
            = link_to "Ignore", ignore_suggested_households_path(row), :method => :put, :class => "btn btn-danger btn-block"


  - if @by_spouse.count > 0
    %h4 Spouses
    %table.by-spouse.table
      - @by_spouse.each do |row|
        %tr
          %td.people
            - row.individuals.each do |person|
              .well.span3
                %h5= person

          %td.controls{:style => "width: 80px;"}
            = link_to "Join", suggested_household_new_household_path(row), :class => "btn btn-primary btn-block"
            %br
            = link_to "Ignore", ignore_suggested_households_path(row), :method => :put, :class => "btn btn-danger btn-block"

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
artfully_ose-1.2.0 app/views/households/suggested.html.haml
artfully_ose-1.2.0.beta.1 app/views/households/suggested.html.haml
artfully_ose-1.2.0.alpha.2 app/views/households/suggested.html.haml
artfully_ose-1.2.0.alpha.1 app/views/households/suggested.html.haml
artfully_ose-1.2.0.pre.27 app/views/households/suggested.html.haml
artfully_ose-1.2.0.pre.26 app/views/households/suggested.html.haml
artfully_ose-1.2.0.pre.24 app/views/households/suggested.html.haml