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

Marquage graphique de redirection

parent 4a24d309
Loading
Loading
Loading
Loading
Loading
+3 −0
Changes for src/UnicaenMail/View/Helper/partial/mail.phtml: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -29,6 +29,9 @@ use UnicaenMail\Entity\Db\Mail;
            <dt> Destinataires </dt>
            <dd>
                <?php echo $mail->getDestinataires(); ?>
                <?php if ($mail->isRedirection()) : ?>
                    <strong>REDIR</strong>
                <?php endif; ?>
            </dd>
            <dt> Template </dt>
            <dd>
+8 −1
Changes for src/UnicaenMail/View/Helper/partial/mails.phtml: 8 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -46,7 +46,11 @@ if (!isset($options['droits']) AND !isset($options['droits']['supprimer'])) {
    <tbody>
    <?php foreach ($mails as $mail) : ?>
        <tr>
            <td> <?php echo $mail->getDestinataires(); ?> </td>
            <td> <?php echo $mail->getDestinataires(); ?>
                <?php if ($mail->isRedirection()) : ?>
                    <span class="badge redir">REDIR</span>
                <?php endif; ?>
            </td>
            <td> <?php echo $mail->getDateEnvoi()->format('d/m/Y <br/> H:i'); ?> </td>
            <td>
                <span class="badge <?php echo $mail->getStatusEnvoi(); ?>">
@@ -109,4 +113,7 @@ if (!isset($options['droits']) AND !isset($options['droits']['supprimer'])) {
    span.badge.template {
        background: teal;
    }
    span.badge.redir {
        background: salmon;
    }
</style>