.customer_vault - content_for :sub_header do = render "customer_vault/breadcrumb" - content_for :context do = render "customer_vault/people/new_people_contexts" - content_for :main do = render "customer_vault/people/index_tabs" .row .col-md-6 p.sorting = t("actions.sort_by") = " : " = sortable_column CustomerVault::Person.human_attribute_name(:name), column: "name" = ", " = sortable_column CustomerVault::Person.human_attribute_name(:zip), column: "zip" .col-md-6 form p.input-group.search input.form-control name="q" placeholder=t("actions.search") size=25 value=params[:q] span.input-group-addon button.nostyle type="submit" = icon :search = render "customer_vault/people/filters" - if @people.empty? p = t("messages.no_people") - else .people - @people.each do |person| - 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 = render_contextual