]> _ Git - fluidbook-toolbox.git/commitdiff
wip #3753 @1.5
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 8 Dec 2020 15:37:08 +0000 (16:37 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Tue, 8 Dec 2020 15:37:08 +0000 (16:37 +0100)
app/Mail/FluidbookQuoteReceived.php
app/Models/FluidbookQuote.php

index 05990465036ce61186dd7cede4dc57cb7ea59d9a..11ca35ea83a2f0b5ceeaa612815ba2703d7160db 100644 (file)
@@ -57,14 +57,14 @@ class FluidbookQuoteReceived extends Mailable
         );
 
         $this->from($post['email'], $post['prenom'] . ' ' . $post['nom']);
-        $this->to('vincent@fluidbook.com');
+        $this->to('tecv@fluidbook.com');
         $spam = '';
         if ($post['spam'] === 'Oui') {
             $spam = ' *** SPAM ***';
         }
         $this->subject('[Fluidbook Workshop]' . $spam . ' Demande de devis');
 
-        $body = '<html><body>Une demande de devis a été envoyée avec les informations suivantes :' . "<br><br>";
+        $body = '<html><body><p>Une demande de devis a été envoyée avec les informations suivantes :</p><ul>';
         foreach ($fields as $f => $d) {
             if ($post[$f] != '') {
                 if ($f == 'pays') {
@@ -74,13 +74,13 @@ class FluidbookQuoteReceived extends Mailable
                 }
             }
         }
-        $body .= "<br>";
+        $body .= "</ul><p>";
         if (!$spam) {
             $body .= 'Veuillez-vous rendre sur la <a href="https://toolbox.fluidbook.com/fluidbook-quote">Toolbox</a> pour prendre en charge la demande ou la confier à un revendeur';
         } else {
             $body .= 'Cette demande est un SPAM supposé. Elle n\'a pas été enregistrée dans la Toolbox.';
         }
-        $body .= '</html>';
+        $body .= '</p></body></html>';
         $this->html($body);
 
     }
index 948e0f464995187acfd7353fd4e1b45f8060d6cc..fb8e7dae1894887bfe7639c1b7619e6c1e6f6664 100644 (file)
@@ -47,6 +47,7 @@ class FluidbookQuote extends CubistMagicAbstractModel
         $this->addField(['name' => 'created_at',
             'label' => 'Date',
             'type' => 'Datetime',
+            'filter' => true,
             'column' => true,
             'column_type' => 'date',
             'column_format' => null]);
@@ -85,7 +86,7 @@ class FluidbookQuote extends CubistMagicAbstractModel
             4 => 'Déjà client',
         ], 'column' => true, 'can' => 'fluidbook-quote:admin', 'filter' => true]);
 
-        $this->addField('origin_column', FluidbookQuoteOrigin::class, 'Origine', ['column' => true,'filter'=>true]);
+        $this->addField('origin_column', FluidbookQuoteOrigin::class, 'Origine', ['column' => true, 'filter' => true]);
         $this->addField('fluidbooks', 'ModelAttribute', 'Fluidbooks', ['column' => true, 'column_label' => '<img width="20" src="/images/icons/icon-fluidbook.svg">', 'attribute' => 'user.e1_ws_count']);
     }