<?php $view->extend('::email.html.php') ?>

<?php $view['slots']->set('title', $view['translator']->trans('mailMessages.title')) ?>

<?php $view['slots']->start('body') ?>
<!-- MODULE ROW // -->
<tr>
    <td align="center" valign="top">
        <!-- CENTERING TABLE // -->
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td align="center" valign="top">
                    <!-- FLEXIBLE CONTAINER // -->
                    <table border="0" cellpadding="0" cellspacing="0" width="500" class="flexibleContainer">
                        <tr>
                            <td align="center" valign="top" width="500" class="flexibleContainerCell">
                                <table border="0" cellpadding="30" cellspacing="0" width="100%">
                                    <tr>
                                        <td align="center" valign="top">

                                            <!-- CONTENT TABLE // -->
                                            <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                                <tr>
                                                    <td valign="top" class="textContent">
                                                        <h3 style="color:#5F5F5F;line-height:125%;font-family:Helvetica,Arial,sans-serif;font-size:20px;font-weight:normal;margin-top:0;margin-bottom:3px;text-align:left;">
                                                            <?php echo $view['translator']->trans('mailMessages.welcome'); ?>,
                                                        </h3>
                                                        <br>
                                                        <div style="text-align:left;font-family:Helvetica,Arial,sans-serif;font-size:15px;margin-bottom:0;color:#5F5F5F;line-height:135%;">
                                                            <?php echo $view['translator']->trans('mailMessages.subtitle'); ?>: <?php echo $answer->getForm()->getName(); ?><br><br>
                                                        </div>
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td align="center" valign="top" class="" style="">
                                                        <table border="0" cellpadding="0" cellspacing="0" width="100%">
                                                            <?php foreach ($answer->getFields() as $field): ?>
                                                                <tr>
                                                                    <td><?php echo $field->getField()->getLabel(); ?>: </td>
                                                                    <td><?php echo $field->getFieldValue(); ?> <?php echo $field->getFieldTextValue(); ?></td>
                                                                </tr>
                                                            <?php endforeach; ?>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table>
                                            <!-- // CONTENT TABLE -->

                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                    <!-- // FLEXIBLE CONTAINER -->
                </td>
            </tr>
        </table>
        <!-- // CENTERING TABLE -->
    </td>
</tr>
<!-- // MODULE ROW -->
<?php $view['slots']->stop() ?>
