{% extends 'shared/base.html' %} {% load static %} {% block content %}
Relatório de Semeaduras
{% for message in messages %}
{{ message }}
{% endfor %}
{% if mode == 'weekly' %}

Relatório Semanal

Exibindo registros da semana atual: {{ monday|date:"d/m/Y" }} a {{ sunday|date:"d/m/Y" }}.

Gerar PDF {% elif mode == 'monthly' %}

Relatório Mensal

{% if month %}

Ano: {{ year|stringformat:"d" }} | Mês: {{ selected_month_name }}

{% else %}

Exibindo registros do ano: {{ year|stringformat:"d" }}

{% endif %} {% endif %} {% if records and records.count > 0 %}
{% for item in records %} {% endfor %}
Espécie Num. Lote Data de Semeio Qtd. Sementes Utilizadas (kg) Registrado Por
{% if item.lote and item.lote.especie %} {{ item.lote.especie.nome_popular }} ({{ item.lote.especie.especies }}) {% else %} [Sem Espécie] {% endif %} {% if item.lote %} {{ item.lote.numero_lote }} {% else %} [Sem Lote] {% endif %} {{ item.data_semeia|date:"d/m/Y" }} {{ item.qtd_sementes_utilizada }} {% if item.registrado_por %} {{ item.registrado_por.username|default:item.registrado_por }} {% else %} [Não informado] {% endif %}
{% else %}

Nenhum registro encontrado.

{% endif %}
{% endblock %}