<span class="ombre"></span>
<div id="col_scroller">
    <div id="col_scroller_cont" class="clearfix">
        <?php foreach ($details as $key => $detail): ?>
        <?php if (in_array($detail_action_mode, array('add', 'update')) && $key == $detail_key): ?>
        <?php include_partial('detailItemForm', array('detail' => $detail, 'key' => $key, 'onglets' => $onglets, 'form' => $form, 'is_new' => ($detail_action_mode == 'add'))) ?>
        <?php else: ?>
        <?php
                    include_partial('detailItem', array('detail' => $detail,
                        'key' => $key,
                        'onglets' => $onglets,
                        'acheteurs' => $acheteurs,
                        'has_acheteurs_mout' => $has_acheteurs_mout)) ?>
        <?php endif; ?>
<?php endforeach; ?>
<?php if (!$onglets->getCurrentCepage()->getConfig()->hasOnlyOneDetail() && $detail_action_mode != 'add') :?>
        <a href="<?php echo url_for($onglets->getUrl('recolte_add')->getRawValue()) ?>" id="ajout_col" class=""><img src="/images/boutons/btn_ajouter_colonne.png" alt="Ajouter une colonne" /></a>
<?php endif; ?>
    </div>
</div>
<span class="ombre ombre_droite"></span>
<span class="ombre"></span>
<div id="col_scroller">
    <div id="col_scroller_cont" class="clearfix">
        <?php foreach ($details as $key => $detail): ?>
        <?php if (in_array($detail_action_mode, array('add', 'update')) && $key == $detail_key): ?>
        <?php include_partial('detailItemForm', array('detail' => $detail, 'key' => $key, 'onglets' => $onglets, 'form' => $form, 'is_new' => ($detail_action_mode == 'add'))) ?>
        <?php else: ?>
        <?php
                    include_partial('detailItem', array('detail' => $detail,
                        'key' => $key,
                        'onglets' => $onglets,
                        'acheteurs' => $acheteurs,
                        'has_acheteurs_mout' => $has_acheteurs_mout)) ?>
        <?php endif; ?>
<?php endforeach; ?>
<?php if (! $onglets->getCurrentCepage()->getConfig()->hasOnlyOneDetail() || !count($details) ) :?>
        <a href="<?php echo url_for($onglets->getUrl('recolte_add')->getRawValue()) ?>" id="ajout_col" class=""><img src="/images/boutons/btn_ajouter_colonne.png" alt="Ajouter une colonne" /></a>
<?php endif; ?>
    </div>
</div>
<span class="ombre ombre_droite"></span>
Revert "Rebug sur le bouton ajouter quand on est en mode ajout le bouton n'est pas affiché"
Revert "Rebug sur le bouton ajouter quand on est en mode ajout le bouton n'est pas affiché"

This reverts commit 039afa977340c9ae0342dd5cf9b03114768a3db1.
