<commit_before><?php use_helper("Date"); ?>
<?php use_helper('DRM'); ?>
<?php use_helper('PointsAides'); ?>
<?php $allCrdsByRegimeAndByGenre = $drm->getAllCrdsByRegimeAndByGenre(); ?>

<?php include_partial('drm/breadcrumb', array('drm' => $drm, 'isTeledeclarationMode' => $isTeledeclarationMode)); ?>

<!-- #principal -->
<section id="principal" class="drm">
    <?php include_partial('drm/etapes', array('drm' => $drm, 'isTeledeclarationMode' => $isTeledeclarationMode, 'etape_courante' => DRMClient::ETAPE_CRD)); ?>
    <div class="row" id="application_drm">
        <div class="col-xs-12">
          <p><?php echo getPointAideText('drm','etape_capsules_crd_description'); ?></p>
            <form id="form_crds" action="<?php echo url_for('drm_crd', $crdsForms->getObject()); ?>" method="post">
                <?php echo $crdsForms->renderGlobalErrors(); ?>
                <?php echo $crdsForms->renderHiddenFields(); ?>
                <?php foreach ($allCrdsByRegimeAndByGenre as $regime => $crdAllGenre): ?>
                    <?php if (count($allCrdsByRegimeAndByGenre) > 1): ?>
                        <p>Régime de CRD : <?php echo EtablissementClient::$regimes_crds_libelles_longs[$regime]; ?></p>
                    <?php endif; ?>
                    <?php foreach ($crdAllGenre as $genre => $crds): ?>
                        <h3>Stocks CRD de vins <?php echo getLibelleForGenre($genre); ?> <small>(en nombre de capsules)</small></h3>
                            <table id="table_drm_crds" class="table table-bordered table-condensed table-striped">
                                <thead>
                                    <tr>
                                        <th class="col-xs-2 text-center vertical-center" rowspan="2">CRD<?php echo getPointAideHtml('drm','crd_type') ?></th>
                                        <th class="col-xs-1 text-center vertical-center" rowspan="2">Stock<?php echo getPointAideHtml('drm','crd_stock_debut') ?></th>
                                        <th class="text-center" colspan="3">Entrées</th>
                                        <th class="text-center" colspan="3">Sorties</th>
                                        <th class="col-xs-1 text-center vertical-center" rowspan="2" >Stock <?php echo getLastDayForDrmPeriode($drm); ?><?php echo getPointAideHtml('drm','crd_stock_fin') ?></th>
                                    </tr>
                                    <tr>

                                        <th class="col-xs-1 text-center">Achat<?php echo getPointAideHtml('drm','crd_entree_achat'); ?></th>
                                        <th class="col-xs-1 text-center">Retour<?php echo getPointAideHtml('drm','crd_entree_retour'); ?></th>
                                        <th class="col-xs-1 text-center">Excéd.<?php echo getPointAideHtml('drm','crd_entree_exc'); ?></th>

                                        <th class="col-xs-1 text-center">Utilisé<?php echo getPointAideHtml('drm','crd_sortie_utilisee'); ?></th>
                                        <th class="col-xs-1 text-center">Destr.<?php echo getPointAideHtml('drm','crd_sortie_detruite'); ?></th>
                                        <th class="col-xs-1 text-center">Manq.<?php echo getPointAideHtml('drm','crd_sortie_manquant'); ?></th>

                                    </tr>
                                </thead>
                                <tbody class="drm_crds_list">
                                    <?php foreach ($crds as $crdKey => $crd): ?>
                                        <tr class="crd_row" id="<?php echo $crdKey; ?>">
                                            <td class="vertical-center"><?php echo $crd->getShortLibelle(); ?></td>
                                            <td class="crds_debut_de_mois"><?php if ($crd->stock_debut) { echo $crd->stock_debut; }  echo $crdsForms['stock_debut_' . $regime . '_' . $crdKey]->render(); ?></td>
                                            <td class="crds_entreesAchats"><?php echo $crdsForms['entrees_achats_' . $regime . '_' . $crdKey]->render(); ?></td>
                                            <td class="crds_entreesRetours"><?php echo $crdsForms['entrees_retours_' . $regime . '_' . $crdKey]->render(); ?></td>
                                            <td class="crds_entreesExcedents"><?php echo $crdsForms['entrees_excedents_' . $regime . '_' . $crdKey]->render(); ?></td>
                                            <td class="crds_sortiesUtilisations"><?php echo $crdsForms['sorties_utilisations_' . $regime . '_' . $crdKey]->render(); ?></td>
                                            <td class="crds_sortiesDestructions"><?php echo $crdsForms['sorties_destructions_' . $regime . '_' . $crdKey]->render(); ?></td>
                                            <td class="crds_sortiesManquants"><?php echo $crdsForms['sorties_manquants_' . $regime . '_' . $crdKey]->render(); ?></td><commit_msg>center sur les cases de tableau de crd<commit_after><?php use_helper("Date"); ?>
<?php use_helper('DRM'); ?>
<?php use_helper('PointsAides'); ?>
<?php $allCrdsByRegimeAndByGenre = $drm->getAllCrdsByRegimeAndByGenre(); ?>

<?php include_partial('drm/breadcrumb', array('drm' => $drm, 'isTeledeclarationMode' => $isTeledeclarationMode)); ?>

<!-- #principal -->
<section id="principal" class="drm">
    <?php include_partial('drm/etapes', array('drm' => $drm, 'isTeledeclarationMode' => $isTeledeclarationMode, 'etape_courante' => DRMClient::ETAPE_CRD)); ?>
    <div class="row" id="application_drm">
        <div class="col-xs-12">
          <p><?php echo getPointAideText('drm','etape_capsules_crd_description'); ?></p>
            <form id="form_crds" action="<?php echo url_for('drm_crd', $crdsForms->getObject()); ?>" method="post">
                <?php echo $crdsForms->renderGlobalErrors(); ?>
                <?php echo $crdsForms->renderHiddenFields(); ?>
                <?php foreach ($allCrdsByRegimeAndByGenre as $regime => $crdAllGenre): ?>
                    <?php if (count($allCrdsByRegimeAndByGenre) > 1): ?>
                        <p>Régime de CRD : <?php echo EtablissementClient::$regimes_crds_libelles_longs[$regime]; ?></p>
                    <?php endif; ?>
                    <?php foreach ($crdAllGenre as $genre => $crds): ?>
                        <h3>Stocks CRD de vins <?php echo getLibelleForGenre($genre); ?> <small>(en nombre de capsules)</small></h3>
                            <table id="table_drm_crds" class="table table-bordered table-condensed table-striped">
                                <thead>
                                    <tr>
                                        <th class="col-xs-2 text-center vertical-center" rowspan="2">CRD<?php echo getPointAideHtml('drm','crd_type') ?></th>
                                        <th class="col-xs-1 text-center vertical-center" rowspan="2">Stock<?php echo getPointAideHtml('drm','crd_stock_debut') ?></th>
                                        <th class="text-center" colspan="3">Entrées</th>
                                        <th class="text-center" colspan="3">Sorties</th>
                                        <th class="col-xs-1 text-center vertical-center" rowspan="2" >Stock <?php echo getLastDayForDrmPeriode($drm); ?><?php echo getPointAideHtml('drm','crd_stock_fin') ?></th>
                                    </tr>
                                    <tr>

                                        <th class="col-xs-1 text-center">Achat<?php echo getPointAideHtml('drm','crd_entree_achat'); ?></th>
                                        <th class="col-xs-1 text-center">Retour<?php echo getPointAideHtml('drm','crd_entree_retour'); ?></th>
                                        <th class="col-xs-1 text-center">Excéd.<?php echo getPointAideHtml('drm','crd_entree_exc'); ?></th>

                                        <th class="col-xs-1 text-center">Utilisé<?php echo getPointAideHtml('drm','crd_sortie_utilisee'); ?></th>
                                        <th class="col-xs-1 text-center">Destr.<?php echo getPointAideHtml('drm','crd_sortie_detruite'); ?></th>
                                        <th class="col-xs-1 text-center">Manq.<?php echo getPointAideHtml('drm','crd_sortie_manquant'); ?></th>

                                    </tr>
                                </thead>
                                <tbody class="drm_crds_list">
                                    <?php foreach ($crds as $crdKey => $crd): ?>
                                        <tr class="crd_row" id="<?php echo $crdKey; ?>">
                                            <td class="vertical-center"><?php echo $crd->getShortLibelle(); ?></td>
                                            <td class="crds_debut_de_mois  text-center vertical-center"><?php if ($crd->stock_debut) { echo $crd->stock_debut; }  echo $crdsForms['stock_debut_' . $regime . '_' . $crdKey]->render(); ?></td>
                                            <td class="crds_entreesAchats"><?php echo $crdsForms['entrees_achats_' . $regime . '_' . $crdKey]->render(); ?></td>
                                            <td class="crds_entreesRetours"><?php echo $crdsForms['entrees_retours_' . $regime . '_' . $crdKey]->render(); ?></td>
                                            <td class="crds_entreesExcedents"><?php echo $crdsForms['entrees_excedents_' . $regime . '_' . $crdKey]->render(); ?></td>
                                            <td class="crds_sortiesUtilisations"><?php echo $crdsForms['sorties_utilisations_' . $regime . '_' . $crdKey]->render(); ?></td>
                                            <td class="crds_sortiesDestructions"><?php echo $crdsForms['sorties_destructions_' . $regime . '_' . $crdKey]->render(); ?></td>
                                            <td class="crds_sortiesManquants"><?php echo $crdsForms['sorties_manquants_' . $regime . '_' . $crdKey]->render(); ?></td>
{'fraction_non_alphanumeric': 0.1623246492985972, 'fraction_numerical': 0.003807615230460922, 'mean_word_length': 1.855793991416309, 'pattern_counts': {'":': 0, '<': 195, '<?xml version=': 0, '>': 241, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 90, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3958207', 'n_tokens_mistral': 2900, 'n_tokens_neox': 2847, 'n_words': 486}