Sha256: 9e3c9668afc7ebd8c13ddeb0cea1784f00b0b4e92d0647b2e89ef5947fd790d6

Contents?: true

Size: 1.6 KB

Versions: 1

Compression:

Stored size: 1.6 KB

Contents

.customer_vault
  - content_for :sub_header do
    ol.breadcrumb
      li
        = link_to 'Home', '/'

      li
        = "People"

      li.active
        = "List"

  - 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
    = render "customer_vault/people/index_tabs"

    .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.search
            input.form-control name="q" placeholder="Rechercher" size=25 value=params[:q]
            span.input-group-addon
              button.nostyle type="submit"
                = icon :search

    = render "customer_vault/people/filters"

    - if @people.empty?
      p = "There isn't any people."

    - else
      .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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
customer_vault-1.2.8 app/views/customer_vault/people/list.html.slim