<?php if (!$pager->getNbResults()): ?>

<?php else: ?>
<table cellspacing="0" cellpadding="3" border="0" class="lui__list_table lui__list_table_donor lui__list_table__sourse" id="lui__list_table_donor">
      <thead>
        <tr>
          <th id="sf_admin_list_batch_actions" class="sf_admin_batch_checkbox__td"><input id="sf_admin_list_batch_checkbox" type="checkbox" onclick="$('.sf_admin_batch_checkbox').prop('checked', $(this).is(':checked'));" /></th>
          <?php include_partial('mail_template/list_th_tabular', array('sort' => $sort)) ?>

          <th id="sf_admin_list_th_actions">&nbsp;</th>
        </tr>
      </thead>
 
      <tbody>
        <?php foreach ($pager->getResults() as $i => $mail_template): $odd = fmod(++$i, 2) ? 'odd' : 'even' ?>
          <tr class="sf_admin_row <?php echo $odd ?>" valign="top" data-href="<?php echo url_for('mail_template/edit?id=' . $mail_template->getPrimaryKey());?>">
            <?php include_partial('mail_template/list_td_batch_actions', array('mail_template' => $mail_template, 'helper' => $helper)) ?>
            <?php include_partial('mail_template/list_td_tabular', array('mail_template' => $mail_template)) ?>
            <td>
            <?php include_partial('mail_template/list_td_actions', array('mail_template' => $mail_template, 'helper' => $helper)) ?>
            </td>
          </tr>
        <?php endforeach; ?>
      </tbody>
</table>
<?php endif; ?>

<?php include_partial('mail_template/list_footer', array('mail_template' => $mail_template, 'helper' => $helper)) ?>

<script>
    //$('.lui__list_actions__wrapper').hide();
</script>