<commit_before><?php use_helper('Float'); ?>
<?php use_helper('Lot'); ?>
<?php include_partial('degustation/breadcrumb'); ?>

<div class="page-header no-border">
    <h2>Liste des manquements à traiter</h2>
</div>
<div class="row">
<table class="table table-condensed">
<thead>
    <th>Num. dossier</th>
    <th>Déclarant</th>
    <th>Appellation</th>
    <th>Manquement</th>
    <th>Traitement</th>
</thead>
<tbody>
<?php foreach($manquements as $keyLot => $m): ?>
    <tr class="<?php if($m->recours_oc): ?>list-group-item-warning<?php endif;?>">
        <td><span class="text-muted"><?php echo $m->numero_dossier; ?></span></td>
        <td><?php echo $m->declarant_nom; ?></td>
        <td><?php echo showProduitLot($m->getRawValue()) ?><small> - <span class="text-right"><?php echo formatFloat($m->volume); ?>&nbsp;hl</span></small></td>

        <td><?php echo ($m->conformite) ? Lot::$libellesConformites[$m->conformite] : null; ?><br/><small class="text-muted"><?php echo $m->motif; ?></small>
            <?php if($m->recours_oc): ?><span class="label label-warning">Dégust. OC</span><?php endif;?></td>
        <td>
            <div class="dropdown">
              <button class="btn btn-primary dropdown-toggle btn-xs" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
                Traiter
                <span class="caret"></span>
              </button>
              <ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
                <li><a class="dropdown-item" href="<?php echo url_for('degustation_redeguster', array('id' => $m->id_document, 'lot' => $m->unique_id, 'back' => 'degustation_manquements')) ?>" onclick="return confirm('Confirmez vous de rendre dégustable à nouveau ce lot ?')">Redéguster</a></li>
                <li><a class="dropdown-item" href="<?php echo url_for('chgtdenom_create_lot', array('identifiant' => $m->declarant_identifiant, 'lot' => $m->unique_id)) ?>">Déclassement / Chgmt denom.</a></li>
                <li><a class="dropdown-item" href="<?php echo url_for('degustation_recours_oc', array('id' => $m->id_document, 'lot' => $m->unique_id)); ?>"  >Recours OC</a></li>
                <li class="<?php if(!$m->recours_oc): ?> disabled <?php endif; ?>" ><a class="dropdown-item" href="<?php echo url_for('degustation_lot_conforme_appel', array('id' => $m->id_document, 'lot' => $m->unique_id)); ?>"  onclick="return confirm('Confirmez vous la mise en conformité de ce lot en appel ?')" >Conforme en appel</a></li>
                <li>&nbsp;</li>
                <li><a class="dropdown-item" href="<?php echo url_for('degustation_lot_historique', array('identifiant' => $m->declarant_identifiant, 'campagne' => $m->campagne, 'numero_dossier' => $m->numero_dossier, 'numero_archive' => $m->numero_archive)) ?>">Historique</a></li>
              </ul>
            </div>
        </td>
        <td>
        </td>
    </tr>
<?php endforeach; ?>
</tbody>
</table>
</div><commit_msg>hamza style dans manquements<commit_after><?php use_helper('Float'); ?>
<?php use_helper('Lot'); ?>
<?php include_partial('degustation/breadcrumb'); ?>

<div class="page-header no-border">
    <h2>Liste des manquements à traiter</h2>
</div>

<div class="row">
    <div class="form-group col-xs-10">
      <input id="hamzastyle" type="hidden" data-placeholder="Sélectionner un filtre" data-hamzastyle-container=".table_manquements" data-hamzastyle-mininput="3" class="select2autocomplete hamzastyle form-control">
    </div>
</div>
<br/>

<div class="row">
<table class="table table-condensed table_manquements" >
<thead>
    <th>Num. dossier</th>
    <th>Déclarant</th>
    <th>Appellation</th>
    <th>Manquement</th>
    <th>Traitement</th>
</thead>
<tbody>
<?php foreach($manquements as $keyLot => $m):
    $words = json_encode([$m->produit_libelle,$m->declarant_identifiant,Lot::$libellesConformites[$m->conformite],$m->declarant_nom,$m->numero_dossier], JSON_HEX_APOS | JSON_HEX_QUOT | JSON_UNESCAPED_UNICODE);
    ?>
    <tr class="<?php if($m->recours_oc): ?>list-group-item-warning<?php endif;?> hamzastyle-item" data-words='<?= $words ?>' >
        <td><span class="text-muted"><?php echo $m->numero_dossier; ?></span></td>
        <td><?php echo $m->declarant_nom; ?></td>
        <td><?php echo showProduitLot($m->getRawValue()) ?><small> - <span class="text-right"><?php echo formatFloat($m->volume); ?>&nbsp;hl</span></small></td>

        <td><?php echo ($m->conformite) ? Lot::$libellesConformites[$m->conformite] : null; ?><br/><small class="text-muted"><?php echo $m->motif; ?></small>
            <?php if($m->recours_oc): ?><span class="label label-warning">Dégust. OC</span><?php endif;?></td>
        <td>
            <div class="dropdown">
              <button class="btn btn-primary dropdown-toggle btn-xs" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
                Traiter
                <span class="caret"></span>
              </button>
              <ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
                <li><a class="dropdown-item" href="<?php echo url_for('degustation_redeguster', array('id' => $m->id_document, 'lot' => $m->unique_id, 'back' => 'degustation_manquements')) ?>" onclick="return confirm('Confirmez vous de rendre dégustable à nouveau ce lot ?')">Redéguster</a></li>
                <li><a class="dropdown-item" href="<?php echo url_for('chgtdenom_create_lot', array('identifiant' => $m->declarant_identifiant, 'lot' => $m->unique_id)) ?>">Déclassement / Chgmt denom.</a></li>
                <li><a class="dropdown-item" href="<?php echo url_for('degustation_recours_oc', array('id' => $m->id_document, 'lot' => $m->unique_id)); ?>"  >Recours OC</a></li>
                <li class="<?php if(!$m->recours_oc): ?> disabled <?php endif; ?>" ><a class="dropdown-item" href="<?php echo url_for('degustation_lot_conforme_appel', array('id' => $m->id_document, 'lot' => $m->unique_id)); ?>"  onclick="return confirm('Confirmez vous la mise en conformité de ce lot en appel ?')" >Conforme en appel</a></li>
                <li>&nbsp;</li>
                <li><a class="dropdown-item" href="<?php echo url_for('degustation_lot_historique', array('identifiant' => $m->declarant_identifiant, 'campagne' => $m->campagne, 'numero_dossier' => $m->numero_dossier, 'numero_archive' => $m->numero_archive)) ?>">Historique</a></li>
              </ul>
            </div>
        </td>
        <td>
        </td>
    </tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
<?php use_javascript('hamza_style.js'); ?>
{'fraction_non_alphanumeric': 0.2102393214177522, 'fraction_numerical': 0.0018176310209027568, 'mean_word_length': 3.8838757396449703, 'pattern_counts': {'":': 0, '<': 209, '<?xml version=': 0, '>': 286, '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': '1378438', 'n_tokens_mistral': 2328, 'n_tokens_neox': 2318, 'n_words': 422}