Commit de499662 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Reduction de la fenetre

parent d19378f7
Loading
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -13,7 +13,7 @@ class MailController extends AbstractActionController {
    public function indexAction() : ViewModel
    {
        $filtre = $this->params()->fromQuery();
        if (!isset($filtre['date']) OR $filtre['date'] === '') $filtre['date'] = '1M';
        if (!isset($filtre['date']) OR $filtre['date'] === '') $filtre['date'] = '1W';

        $mails = $this->getMailService()->getMailsWithFiltre($filtre);

+4 −0
Original line number Diff line number Diff line
@@ -177,6 +177,10 @@ class MailService {
        }


        if ($to === "" OR $to === []) {
            return null;
        }

        
        if (is_string($to)) $to=explode(',', $to);
        if (!is_array($to)) $to = [$to];
+2 −0
Original line number Diff line number Diff line
@@ -36,6 +36,8 @@ $statuts = [ 'PENDING', 'SUCCESS', 'FAILED'];
                        <div class="col-md-4">
                            <label for="date">Historique  :</label>
                            <select id="date" name="date"  class="selectpicker">
                                <option value="1W"> 1 semaine </option>
                                <option value="2W"> 2 semaines </option>
                                <option value="1M"> 1 mois </option>
                                <option value="3M"> 3 mois </option>
                                <option value="6M"> 6 mois </option>