<commit_before>{layout '../@layout.latte'}

{block #content}

<div class="c-header">
    <h2 n:block="title">Mail logs</h2>
</div>
<div class="card">
    <div class="card-header">
        <h2>List of mail logs<small></small></h2>
        {form filterLogsForm}
            <div class="row">
                <div class="col-md-2">
                    <div class="form-group fg-float">
                        <div class="fg-line" data-toggle="tooltip" data-placement="top" title="You have to enter full email address.">
                            {input email, class => 'form-control fg-input'}
                            {label email, class => 'fg-label' /}
                        </div>
                    </div>
                </div>
                <div class="col-md-2">
                    <div class="form-group fg-float">
                        <div class="fg-line">
                            {input mail_template_code, class => 'form-control fg-input'}
                            {label mail_template_code, class => 'fg-label' /}
                        </div>
                    </div>
                </div>
                <div class="col-md-3">
                    <div class="form-group fg-float">
                        <div class="fg-line">
                            {input created_at_from, class => 'form-control fg-input date-time-picker'}
                            {label created_at_from, class => 'fg-label' /}
                        </div>
                    </div>
                </div>
                <div class="col-md-3">
                    <div class="form-group fg-float">
                        <div class="fg-line">
                            {input created_at_to, class => 'form-control fg-input date-time-picker'}
                            {label created_at_to, class => 'fg-label' /}
                        </div>
                    </div>
                </div>
                <div class="col-md-2 text-right">
                    {input send, class => 'btn btn-info waves-effect m-r-10'}
                    {input cancel, class => 'btn btn-default waves-effect'}
                </div>
            </div>
        {/form}

    </div>
    {control dataTableDefault}
</div>

<style>
    .form-logs-filter {
        margin-top: 30px;
    }
</style><commit_msg>Fixed mailer logs filter date localization<commit_after>{layout <EMAIL>'}

{block #content}

<div class="c-header">
    <h2 n:block="title">Mail logs</h2>
</div>
<div class="card">
    <div class="card-header">
        <h2>List of mail logs<small></small></h2>
        {form filterLogsForm}
            <div class="row">
                <div class="col-md-2">
                    <div class="form-group fg-float">
                        <div class="fg-line" data-toggle="tooltip" data-placement="top" title="You have to enter full email address.">
                            {input email, class => 'form-control fg-input'}
                            {label email, class => 'fg-label' /}
                        </div>
                    </div>
                </div>
                <div class="col-md-2">
                    <div class="form-group fg-float">
                        <div class="fg-line">
                            {input mail_template_code, class => 'form-control fg-input'}
                            {label mail_template_code, class => 'fg-label' /}
                        </div>
                    </div>
                </div>
                <div class="col-md-3">
                    <div class="form-group fg-float">
                        <div class="fg-line">
                            {input created_at_from, class => 'form-control fg-input created-at-time-picker'}
                            {label created_at_from, class => 'fg-label' /}
                        </div>
                    </div>
                </div>
                <div class="col-md-3">
                    <div class="form-group fg-float">
                        <div class="fg-line">
                            {input created_at_to, class => 'form-control fg-input created-at-time-picker'}
                            {label created_at_to, class => 'fg-label' /}
                        </div>
                    </div>
                </div>
                <div class="col-md-2 text-right">
                    {input send, class => 'btn btn-info waves-effect m-r-10'}
                    {input cancel, class => 'btn btn-default waves-effect'}
                </div>
            </div>
        {/form}

    </div>
    {control dataTableDefault}
</div>

<style>
    .form-logs-filter {
        margin-top: 30px;
    }
</style>

<script>
    $(function () {
        $('.created-at-time-picker').datetimepicker({
            format: 'MM/DD/YYYY HH:mm A'
        })
    });
</script>
{'fraction_non_alphanumeric': 0.14054390699605562, 'fraction_numerical': 0.005397550342536849, 'mean_word_length': 1.1384820239680427, 'pattern_counts': {'":': 0, '<': 90, '<?xml version=': 0, '>': 110, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7662246', 'n_tokens_mistral': 1366, 'n_tokens_neox': 1299, 'n_words': 286}