{% 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 admin_modify admin_static %}
{% load static from staticfiles %}
{% block extrahead %}
<style>
    div#theader {font-weight:bold; clear:both;}
    div#div_filtro {margin-bottom:15px;}
    div#div_filtro label {width:100px; display:inline-block;}
</style>
<script type="text/javascript" src="{% static "js/selects.js" %}"></script>
{% endblock %}
{% block breadcrumbs %}
    <div class="breadcrumbs">Você está em: 
      <a href="../../">{% trans "Home" %}</a> &rsaquo; 
      <a href="{% url 'patrimonio.views.por_tipo' %}">Patrimônios por tipo</a>
    </div>
{% endblock %}
{% block content %}
    <h1 repeat="1">Patrimônios por tipo</h1>
    <br>
    <div id="div_filtro">
        <fieldset>
            <legend>Filtro</legend>
            <form id="filtro" method="GET">
               <label for="id_tipo">Tipo*</label>
                <select name="tipo" id="id_tipo" onchange="ajax_get_procedencia_filter_tipo(this.value)">
                    {% for t in tipos %}
                        <option value="{{ t.id }}">{{ t }}</option>
                    {% endfor %}
                </select>
                <br />
                <label for="id_procedencia">Procedencia</label>
                <select name="procedencia" id="id_procedencia">
                    <option value="">Todos</option>
                    {% for procedencia in procedencias %}
                        <option value="{{ procedencia.id }}">{{ procedencia }}</option>
                    {% endfor %}
                </select>
                <br />
                <input type="submit" value="Enviar">
            </form>
        </fieldset>
    </div>
{% endblock %}
