{% extends "admin/base_site.html" %}
{% comment %}
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
{% endcomment %}
{% load proto_tags %}
{% block content %}
<h1 repeat="1">Pagamentos por item de outorga</h1>

    <table border="0" repeat="1" cellpadding="5">
    {% for it in itens %}
 	   <tr><th width="30%">{{ it.item.descricao }}</th></tr>
           {% for p in it.pgtos %}
	         <tr><td></td><td style="font-weight:bold;">{{ forloop.counter }}</td><td>{{ p.protocolo.num_documento }}</td>
		     <td>{{ p.conta_corrente.data_oper }}</td>
		     <td>{{ p.conta_corrente.valor }}</td>
		     <td><a href="/financeiro/pagamento/{{ p.id }}">link</a></td></tr>
	   {% endfor %}
         
    {% endfor %}
    </table>

{% endblock %}
