<commit_before>{% extends 'estoque/index.html' %}

{% block title.content %}{{ titulo }} - {{ block.super }}{% endblock title.content %}
{% block header.content %}{{ titulo }} - <a href="{% url 'estoque:index' %}">{{ block.super }}</a>{% endblock header.content %}

{% block stylesheet %}
<style>
{% include 'layout/simple_table.css' %}
</style>
{% endblock %}

{% block content %}
<form action="{% url 'estoque:lista_movs' %}" method="post">
  {% csrf_token %}
  {{ form.as_p }}
  <input type="submit" name="busca" value="Busca"/>
  {% if erro_msg %}
    <h4 class="bad">Erro: {{ erro_msg }}</h4>
  {% endif %}
  {% if sucesso_msg %}
    <h4 class="ok">Sucesso: {{ sucesso_msg }}</h4>
  {% endif %}
</form>
{% if request.POST.busca %}
  {% include "layout/form_inputs_report.html" with form=form h=5 only %}
  {% if dados %}
    <table>
      {% include "layout/thead_generic.html" with data=headers style=style only %}
      {% include "layout/tbody_generic.html" with fields=fields data=dados style=style only %}
    </table>
  {% else %}
    <h4>Nenhum movimento encontrado</h4>
  {% endif %}
{% endif %}
{% endblock %}
<commit_msg>reestruturando: tira sucesso_msg; add erro_msg css; tira mensagem hard coded de falta de dados.<commit_after>{% extends 'estoque/index.html' %}

{% block title.content %}{{ titulo }} - {{ block.super }}{% endblock title.content %}
{% block header.content %}{{ titulo }} - <a href="{% url 'estoque:index' %}">{{ block.super }}</a>{% endblock header.content %}

{% block stylesheet %}
<style>
{% include 'layout/simple_table.css' %}
.bad {
  color: darkred;
}
</style>
{% endblock %}

{% block content %}
<form action="{% url 'estoque:lista_movs' %}" method="post">
  {% csrf_token %}
  {{ form.as_p }}
  <input type="submit" name="busca" value="Busca"/>
</form>
{% if erro_msg %}
  <h4 class="bad">Erro: {{ erro_msg }}</h4>
{% endif %}
{% if request.POST.busca %}
  {% include "layout/form_inputs_report.html" with form=form h=5 only %}
  {% if dados %}
    <table>
      {% include "layout/thead_generic.html" with data=headers style=style only %}
      {% include "layout/tbody_generic.html" with fields=fields data=dados style=style only %}
    </table>
  {% endif %}
{% endif %}
{% endblock %}

{'fraction_non_alphanumeric': 0.20465741155396328, 'fraction_numerical': 0.0044782803403493054, 'mean_word_length': 4.088838268792711, 'pattern_counts': {'":': 0, '<': 29, '<?xml version=': 0, '>': 29, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4315824', 'n_tokens_mistral': 873, 'n_tokens_neox': 784, 'n_words': 179}