<commit_before>{% set _menu_active = 'passage' %}
{% extends 'base.html.twig' %}
{% form_theme form _self %}

{% block title %}Bon passage {{ passage.etablissement.nom }}{% endblock title %}

{% block _passage_produits_entry_row %}
    <div class="row form-group dynamic-collection-item">
        <div class="col-xs-7">
            {{ form_widget(form.identifiant) }}
        </div>
        <div class="col-xs-2 text-right">
            {{ form_widget(form.nbUtilisePassage) }}
        </div>
        <div class="col-xs-1 text-right">
            <button type="button" tabindex="-1" class="btn btn-default dynamic-collection-remove"><span class="glyphicon glyphicon-remove"></span></button>
        </div>
    </div>
{% endblock %}

{% block body %}
    <ol class="breadcrumb">
        <li><a href="{{ path('passage') }}">Passage</a></li>
        <li><a href="{{ path('passage_etablissement',{ 'id' : passage.etablissement.id }) }}">&nbsp;{{ passage.etablissement.nom }}&nbsp;<small>{{passage.etablissement.adresse.intitule }}</small></a></li>
        <li><a href="{{ path('passage_edition',{ 'id' : passage.id }) }}">&nbsp;<small>{{ passage.dateDebut | localizeddate('full', 'none') | capitalize }}</small></a></li>
    </ol>
    <h1>Rapport de passage</h1>
    {% if passage.mouvementDeclenche %}
    <p class="bg-success" style="padding: 15px;"><span class="glyphicon glyphicon-exclamation-sign"></span> Un mouvement de facture a été déclenché pour ce passage.</p>
    {% endif %}
    {{ form_start(form, { 'attr': { 'class': 'form-horizontal'} }) }}

    <div class="panel panel-default">
            <div class="panel-heading"><strong>Observations</strong></div>
            <div class="panel-body col-xs-offset-2">
	            <div class="row">
                    <div class="col-xs-5 bootstrap-timepicker timepicker">
                        <div class="form-group">
                            {{ form_label(form.duree) }}
                            {{ form_errors(form.duree) }}
                            <div class="input-group">
                                {{ form_widget(form.duree) }}
                                <div class="input-group-addon"><i class="glyphicon glyphicon-time"></i></div>
                            </div>
                        </div>
                    </div>
            	</div>
            	<div class="row">
                	<div class="col-xs-10">
                    {{ form_row(form.description) }}
	                </div>
	            </div>
                <div class="row">
                    <div class="col-xs-10">
                        {{ form_row(form.nettoyages) }}
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-10">
                        {{ form_row(form.applications) }}
                    </div>
                </div>
            </div>
    </div>

    <div class="panel panel-default">
            <div class="panel-heading"><strong>Produits</strong></div>
            <div class="panel-body col-xs-offset-2">
                <div class="row">
                    <div class="col-xs-7">
                        <label class="control-label">Produit :</label>
                    </div>
                    <div class="col-xs-2 text-center">
                        <label class="control-label">Quantité :</label>
                    </div>
                </div>
                {{ form_widget(form.produits, { 'attr': {'class': 'dynamic-collection'} }) }}
                <div class="row">
                    <div class="col-xs-10 text-right">
                        <a href="javascript:void(0);" data-collection-target="#passage_produits" class="btn btn-primary dynamic-collection-add"><span class="glyphicon glyphicon-plus-sign"></span></a>
                    </div>
                </div>
            </div>
        </div>
    {% if passage.mouvementDeclenchable and not passage.mouvementDeclenche %}
    <p class="bg-warning" style="padding: 15px;"><span class="glyphicon glyphicon-exclamation-sign"></span> La saisie de ce rapport de passage entraine le déclenchement d'un mouvement de facture.</p>
    {% endif %}
	<div class="text-right">
    {{ form_widget(form.save) }}
    </div>
    {{ form_end(form) }}
{% endblock %}
<commit_msg>Ajout du numéro de bon<commit_after>{% set _menu_active = 'passage' %}
{% extends 'base.html.twig' %}
{% form_theme form _self %}

{% block title %}Bon passage {{ passage.etablissement.nom }}{% endblock title %}

{% block _passage_produits_entry_row %}
    <div class="row form-group dynamic-collection-item">
        <div class="col-xs-7">
            {{ form_widget(form.identifiant) }}
        </div>
        <div class="col-xs-2 text-right">
            {{ form_widget(form.nbUtilisePassage) }}
        </div>
        <div class="col-xs-1 text-right">
            <button type="button" tabindex="-1" class="btn btn-default dynamic-collection-remove"><span class="glyphicon glyphicon-remove"></span></button>
        </div>
    </div>
{% endblock %}

{% block body %}
    <ol class="breadcrumb">
        <li><a href="{{ path('passage') }}">Passage</a></li>
        <li><a href="{{ path('passage_etablissement',{ 'id' : passage.etablissement.id }) }}">&nbsp;{{ passage.etablissement.nom }}&nbsp;<small>{{passage.etablissement.adresse.intitule }}</small></a></li>
        <li><a href="{{ path('passage_edition',{ 'id' : passage.id }) }}">&nbsp;<small>{{ passage.dateDebut | localizeddate('full', 'none') | capitalize }}</small></a></li>
    </ol>
    <h2>Rapport du passage n° {{ passage.numeroArchive }}</h2>
    {% if passage.mouvementDeclenche %}
    <p class="bg-success" style="padding: 15px;"><span class="glyphicon glyphicon-exclamation-sign"></span> Un mouvement de facture a été déclenché pour ce passage.</p>
    {% endif %}
    {{ form_start(form, { 'attr': { 'class': 'form-horizontal'} }) }}

    <div class="panel panel-default">
            <div class="panel-heading"><strong>Observations</strong></div>
            <div class="panel-body col-xs-offset-2">
	            <div class="row">
                    <div class="col-xs-5 bootstrap-timepicker timepicker">
                        <div class="form-group">
                            {{ form_label(form.duree) }}
                            {{ form_errors(form.duree) }}
                            <div class="input-group">
                                {{ form_widget(form.duree) }}
                                <div class="input-group-addon"><i class="glyphicon glyphicon-time"></i></div>
                            </div>
                        </div>
                    </div>
            	</div>
            	<div class="row">
                	<div class="col-xs-10">
                    {{ form_row(form.description) }}
	                </div>
	            </div>
                <div class="row">
                    <div class="col-xs-10">
                        {{ form_row(form.nettoyages) }}
                    </div>
                </div>
                <div class="row">
                    <div class="col-xs-10">
                        {{ form_row(form.applications) }}
                    </div>
                </div>
            </div>
    </div>

    <div class="panel panel-default">
            <div class="panel-heading"><strong>Produits</strong></div>
            <div class="panel-body col-xs-offset-2">
                <div class="row">
                    <div class="col-xs-7">
                        <label class="control-label">Produit :</label>
                    </div>
                    <div class="col-xs-2 text-center">
                        <label class="control-label">Quantité :</label>
                    </div>
                </div>
                {{ form_widget(form.produits, { 'attr': {'class': 'dynamic-collection'} }) }}
                <div class="row">
                    <div class="col-xs-10 text-right">
                        <a href="javascript:void(0);" data-collection-target="#passage_produits" class="btn btn-primary dynamic-collection-add"><span class="glyphicon glyphicon-plus-sign"></span></a>
                    </div>
                </div>
            </div>
        </div>
    {% if passage.mouvementDeclenchable and not passage.mouvementDeclenche %}
    <p class="bg-warning" style="padding: 15px;"><span class="glyphicon glyphicon-exclamation-sign"></span> La saisie de ce rapport de passage entraine le déclenchement d'un mouvement de facture.</p>
    {% endif %}
	<div class="text-right">
    {{ form_widget(form.save) }}
    </div>
    {{ form_end(form) }}
{% endblock %}

{'fraction_non_alphanumeric': 0.16909891128098217, 'fraction_numerical': 0.005559416261292564, 'mean_word_length': 1.8017521090201167, 'pattern_counts': {'":': 0, '<': 203, '<?xml version=': 0, '>': 203, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '411532', 'n_tokens_mistral': 2638, 'n_tokens_neox': 2471, 'n_words': 465}