.customer_vault - content_for :sub_header do ol.breadcrumb li = link_to 'Home', '/' li.active = "People" - content_for :context do .individual-context: .context = context_icon :user = link_to "New individual", customer_vault.new_individual_path, class: "btn btn-success" .corporation-context: .context = context_icon :users = link_to "New corporation", customer_vault.new_corporation_path, class: "btn btn-success" - content_for :main do - if @people.empty? h1 = "There isn't any people" - else .row .col-md-6 p.sorting = "Trier par : " = sortable_column 'Nom', :column => "name" = ", " = sortable_column 'Code postal', :column => "zip" .col-md-6 form p.input-group input.form-control name="q" placeholder="Rechercher" size=25 value=params[:q] span.input-group-addon button.nostyle type="submit" = icon :search .people - @people.each do |person| .person.well - if person.instance_of? CustomerVault::Individual = render partial: 'customer_vault/individuals/list_details', locals: {i: person} - if person.instance_of? CustomerVault::Corporation = render partial: 'customer_vault/corporations/list_details', locals: {c: person} = paginate @people, theme: "twitter-bootstrap-3" = render_contextual