<commit_before>{% extends 'AngleNickelTrackerAppBundle:Common:layout.html.twig' %}
{% set page_title = 'Scheduled Transactions' %}
{% set active = 'scheduled' %}

{% block content %}

    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            Scheduled Transactions

            <a href="{{ path('angle_nt_app_scheduled_process') }}" class="btn btn-primary btn-sm pull-right">
                <i class="fa fa-plus"></i> New Scheduled Transaction
            </a>
        </h1>
    </section>

    <!-- Main content -->
    <section class="content">

        <!-- Scheduled Transactions Table -->
        <div class="row">
            <div class="col-xs-12">
                <div class="box box-primary">

                    <div class="box-body table-responsive">

                        <table class="table" id="datatable">
                            <thead>
                            <tr>
                                <th>Type</th>
                                <th>Account</th>
                                <th>Category</th>
                                <th>Description</th>
                                <th>Amount</th>
                                <th>Day</th>
                                <th class="text-center">Actions</th>
                            </tr>
                            </thead>
                            <tbody>
                            {% for e in transactions %}
                                <tr>
                                    <td>
                                        {% if e.transaction.type == 'I' %}
                                            <i class="fa fa-plus"></i>
                                        {% elseif e.transaction.type == 'E' %}
                                            <i class="fa fa-minus"></i>
                                        {% elseif e.transaction.type == 'T' %}
                                            <i class="fa fa-arrow-right"></i>
                                        {% endif %}
                                    </td>
                                    <td>
                                        {{ e.sourceAccount }}
                                        {% if e.transaction.type == 'T' %}
                                            <i class="fa fa-angle-right"></i> {{ e.destinationAccount }}
                                        {% endif %}
                                    </td>
                                    <td>
                                        {% if e.transaction.type == 'E' %}
                                            {{ e.category|default('N/A') }}
                                        {% else %}
                                            --
                                        {% endif %}
                                    </td>
                                    <td>
                                        {% if e.transaction.type == 'E' and e.commerce %}
                                            {{ e.commerce }}:
                                        {% endif %}
                                        {{ e.transaction.description }}
                                    </td>
                                    <td>${{ e.transaction.amount|number_format(2) }}</td>
                                    <td>{{ e.transaction.day }}</td>
                                    <td class="text-center">
                                        <a class="btn btn-xs btn-default" href="{{ path('angle_nt_app_scheduled_view', {'id': e.transaction.scheduledTransactionId}) }}">
                                            <i class="fa fa-bars"></i> Details
                                        </a>
                                    </td>
                                </tr>
                            {% else %}
                                <tr>
                                    <td colspan="7" class="no-results-td">
                                        Woops! You have not registered any scheduled transactions!
                                    </td>
                                </tr>
                            {% endfor %}
                            </tbody>
                        </table>

                    </div>
                </div>

            </div>
        </div>

    </section><!-- /.content -->
{% endblock %}<commit_msg>Adding a reminder to Scheduled Transactions<commit_after>{% extends 'AngleNickelTrackerAppBundle:Common:layout.html.twig' %}
{% set page_title = 'Scheduled Transactions' %}
{% set active = 'scheduled' %}

{% block content %}

    <!-- Content Header (Page header) -->
    <section class="content-header">
        <h1>
            Scheduled Transactions

            <a href="{{ path('angle_nt_app_scheduled_process') }}" class="btn btn-primary btn-sm pull-right">
                <i class="fa fa-plus"></i> New Scheduled Transaction
            </a>
        </h1>
    </section>

    <!-- Main content -->
    <section class="content">

        <!-- Scheduled Transactions Table -->
        <div class="row">
            <div class="col-xs-12">
                <div class="box box-primary">

                    <div class="box-body table-responsive">

                        <table class="table" id="datatable">
                            <thead>
                            <tr>
                                <th>Type</th>
                                <th>Account</th>
                                <th>Category</th>
                                <th>Description</th>
                                <th>Amount</th>
                                <th>Day</th>
                                <th class="text-center">Actions</th>
                            </tr>
                            </thead>
                            <tbody>
                            {% for e in transactions %}
                                <tr>
                                    <td>
                                        {% if e.transaction.type == 'I' %}
                                            <i class="fa fa-plus"></i>
                                        {% elseif e.transaction.type == 'E' %}
                                            <i class="fa fa-minus"></i>
                                        {% elseif e.transaction.type == 'T' %}
                                            <i class="fa fa-arrow-right"></i>
                                        {% endif %}
                                    </td>
                                    <td>
                                        {{ e.sourceAccount }}
                                        {% if e.transaction.type == 'T' %}
                                            <i class="fa fa-angle-right"></i> {{ e.destinationAccount }}
                                        {% endif %}
                                    </td>
                                    <td>
                                        {% if e.transaction.type == 'E' %}
                                            {{ e.category|default('N/A') }}
                                        {% else %}
                                            --
                                        {% endif %}
                                    </td>
                                    <td>
                                        {% if e.transaction.type == 'E' and e.commerce %}
                                            {{ e.commerce }}:
                                        {% endif %}
                                        {{ e.transaction.description }}
                                    </td>
                                    <td>${{ e.transaction.amount|number_format(2) }}</td>
                                    <td>{{ e.transaction.day }}</td>
                                    <td class="text-center">
                                        <a class="btn btn-xs btn-default" href="{{ path('angle_nt_app_scheduled_view', {'id': e.transaction.scheduledTransactionId}) }}">
                                            <i class="fa fa-bars"></i> Details
                                        </a>
                                    </td>
                                </tr>
                            {% else %}
                                <tr>
                                    <td colspan="7" class="no-results-td">
                                        Woops! You have not registered any scheduled transactions!
                                    </td>
                                </tr>
                            {% endfor %}
                            </tbody>
                        </table>

                    </div>
                </div>

                <div class="bottom-message">
                    <div class="text-muted">
                        <strong>Reminder:</strong> scheduled transactions will only remind you on the day you set them up, but they will not
                        be automatically registered as a transaction record, you still have to approve them and register them manually.
                    </div>
                </div>

            </div>
        </div>

    </section><!-- /.content -->
{% endblock %}
{'fraction_non_alphanumeric': 0.11256771397616468, 'fraction_numerical': 0.0013001083423618636, 'mean_word_length': 0.6478043555872902, 'pattern_counts': {'":': 0, '<': 161, '<?xml version=': 0, '>': 161, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 124, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1119064', 'n_tokens_mistral': 1933, 'n_tokens_neox': 1747, 'n_words': 392}