<commit_before>{%  extends 'TrezLogicielTrezBundle::layout.html.twig' %}
{% import 'TrezLogicielTrezBundle:Utils:forms.html.twig' as forms %}

{% block body %}
    <h1>Créer une déclaration de TVA</h1>

    <form class="form-horizontal" action="{{ path('declaration_tva_create') }}" {{ form_enctype(form) }} method="post">
        <div>{{ form_errors(form) }}</div>

        <fieldset>
            {{ forms.field(form.date, 'Date', {'class': 'date-selects'}) }}
        </fieldset>

        {{ form_rest(form) }}

        <div class="form-actions">
            <input type="submit" class="btn btn-primary" value="Valider">&nbsp;
            <a href="{{ path('declaration_tva_index') }}" class="btn">Annuler</a>
        </div>
    </form>
{% endblock %}<commit_msg>DeclarationTva:create: useless selects are hidden<commit_after>{%  extends 'TrezLogicielTrezBundle::layout.html.twig' %}
{% import 'TrezLogicielTrezBundle:Utils:forms.html.twig' as forms %}

{% block body %}
    <h1>Créer une déclaration de TVA</h1>

    <form class="form-horizontal" action="{{ path('declaration_tva_create') }}" {{ form_enctype(form) }} method="post">
        <div>{{ form_errors(form) }}</div>

        <fieldset>
            {{ forms.field(form.date, 'Date', {'class': 'date-selects'}) }}
        </fieldset>

        {{ form_rest(form) }}

        <div class="form-actions">
            <input type="submit" class="btn btn-primary" value="Valider">&nbsp;
            <a href="{{ path('declaration_tva_index') }}" class="btn">Annuler</a>
        </div>
    </form>

    <script type="text/javascript">
        // we set some values in useless selects and hide them
        $('#trez_logicieltrezbundle_declarationtvadate_date_day').val(1).hide();
    </script>
{% endblock %}
{'fraction_non_alphanumeric': 0.18419556566230813, 'fraction_numerical': 0.0028425241614553724, 'mean_word_length': 3.367245657568238, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, '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': '5713539', 'n_tokens_mistral': 600, 'n_tokens_neox': 574, 'n_words': 106}