-// /views/pessoas/list.jade
-// GET /pessoas/
extends ../base.jade
block content
	h3 Pessoas
	.form-group.row
		.col-sm-2
			a(href="novo", class='btn btn-success btn-sm')
				i.glyphicon.glyphicon-plus
				span &nbsp;Nova pessoa
	+navegacao
	.table-responsive
		table.table.table-striped.table-condensed
			thead
				tr
					th fullName
					th Natureza
					th Parte Cliente?
					th Parte Contrária?
			tbody
				each item in items
						tr
							td
								a(href="/pessoas/#{item.id}") #{item.fullName}
							td= item.natPessoa
							td
								if(item.eParteClienteLegado=='S')
									span.fa.fa-check-square-o
								else
									span.fa.fa-square-o
							td
								if(item.eParteContrariaLegado=='S')
									span.fa.fa-check-square-o
								else
									span.fa.fa-square-o
	if !items.length
		p Nenhuma pessoa encontrado.
	+navegacao