app/views/customer_vault/people/index.html.slim in customer_vault-1.0.4 vs app/views/customer_vault/people/index.html.slim in customer_vault-1.1.0

- old
+ new

@@ -1,42 +1,38 @@ -.container-fluid - .row - .col-lg-12 - ol class="breadcrumb" - li - = link_to 'Home', '/' - li.active People - .row - .col-lg-4 - aside.col-lg-12 - .row.action - .col-lg-12.cdiv - = image_tag ('customer_vault/icons/individual-64.png') - .col-lg-12.cdiv - = link_to 'New Individual', customer_vault.new_individual_path, :class=>"btn btn-warning btn-lg" - aside.col-lg-12 - .row.action - .col-lg-12.cdiv - = image_tag ('customer_vault/icons/group-64.png') - .col-lg-12.cdiv - = link_to 'New Corporation', customer_vault.new_corporation_path, :class=>"btn btn-warning btn-lg" - .col-lg-8 - - if @people.empty? - h1 class="text-muted center" There isn't any people - - else - .sorting - .span - ' Trier par: - = sortable_column 'Nom', :column => "name" - ', - = sortable_column 'Code postal', :column => "zip" - ul.people - - @people.each do |person| - li.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} - .row - .cdiv - = paginate @people - +- 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 + p.sorting + = "Trier par : " + = sortable_column 'Nom', :column => "name" + = ", " + = sortable_column 'Code postal', :column => "zip" + + ul.people + - @people.each do |person| + li.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 "agilidee_commons/contextual"