{% 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 %}
{% load i18n %}
{% load static from staticfiles %}
{% block extrahead %}
    <script type="text/javascript" src="{% static "js/selects.js" %}"></script>
    <style type="text/css">
      div#theader {font-weight:bold; clear:both;}
      div#div_filtro {margin-bottom:15px;}
      div#div_filtro label {width:100px; display:inline-block;}
    </style>
{% endblock %}
{% block breadcrumbs %}
    <div class="breadcrumbs">Você está em: 
      <a href="../../">{% trans "Home" %}</a> &rsaquo; 
      <a href="{% url 'rede.views.planejamento2' %}">Serviços contratados por processo</a>
    </div>
{% endblock %}
{% block content %}
    <h1>Serviços contratados por processo</h1>
    <br>
    <div id="div_filtro">
        <fieldset>
            <legend>Filtro</legend>
            <form method="GET">
                <label for="id_entidade">Entidade:</label>
                <select name="entidade" id="id_entidade">
                    <option value="" selected>Nenhum</option>
                    {% for e in entidades %}
                        <option value="{{ e.id }}">{{ e }}</option>
                    {% endfor %}
                </select>
                <br />
                <label for="id_termo">Termo:</label>
                <select name="termo" id="id_termo">
                    <option value="" selected>Nenhum</option>
                    {% for t in termos %}
                        <option value="{{ t.id }}">{{ t }}</option>
                    {% endfor %}
                </select>
                <br />
                <label for="id_beneficiado">Beneficiado:</label>
                <select name="beneficiado" id="id_beneficiado">
                    <option value="" selected>Todos</option>
                    {% for e in beneficiados %}
                        <option value="{{ e.id }}">{{ e }}</option>
                    {% endfor %}
                </select>
                <br />
                <label for="id_tiposervico">Serviço:</label>
                <select name="tiposervico" id="id_tiposervico" multiple="multiple">
                    {% for d in descricoes %}
                        <option value="{{ d.id }}">{{ d }}</option>
                    {% endfor %}
                </select>
                <br />
                <input type="submit" value="Enviar">
            </form>
        </fieldset>
    </div>
{% endblock %}
