index.html 2.82 KB
{% extends "template.html" %}

{% block content %}

<table class="table table-striped">
    <tr>
        <th class="hidden-xs"> NO. </th>
        <th class="hidden-xs"> TRX ID </th>
        <th class="hidden-xs"> TIME START </th>
        <th class="hidden-xs">CUSTOMER</th>
        <th class="hidden-xs"> NOM </th>
        <th class="hidden-xs"> DESTINATION </th>
        <th class="hidden-xs"> SUPPLIER </th>
        <th class="hidden-xs"> INFO </th>
        <th class="visible-xs"> PENDING TRX </th>
    </tr>

    {% set i = 0 %}
    {% for transaction in transactions %}
    <tr>
        {% set i = i + 1 %}

        <td class="text-right hidden-xs"> {{ i }}. </td>

        <td class="hidden-xs">
            <a href="http://trxmon.host2host.id/trx/view/{{ transaction.MESSAGEID }}">
                {{ transaction.MESSAGEID }}
            </a>
        </td>

        <td class="hidden-xs">
            {{ transaction.TIME_START_SIMPLE | string | replace("GMT+0700 (WIB)", "") }}
        </td>

        <td class="hidden-xs">
            {{ transaction.FULL_NAME }},
            {{ transaction.MSISDN }}
        </td>

        <td class="hidden-xs"> {{ transaction.NOM }} </td>

        <td class="hidden-xs">
            <a href="http://trxmon.host2host.id/trx/view/{{ transaction.MESSAGEID }}">
                {{ transaction.NO_HP }}
            </a>
        </td>

        <td class="hidden-xs"> {{ transaction.CHIP_INFO }} </td>

        <td class="hidden-xs">
            {% if transaction.MASALAH %}
            {{ transaction.MASALAH }}
            {% else %}
            -
            {% endif %}
        </td>

        <td class="visible-xs">

            <dl>
                <dt> TIME: </dt>
                <dd>
                    {{ transaction.TIME_START_SIMPLE | string | replace("GMT+0700 (WIB)", "") }}
                </dd>

                <dt> CUSTOMER </dt>
                <dd>
                    {{ transaction.FULL_NAME }},
                    {{ transaction.MSISDN }}
                </dd>

                <dt> NOM: </dt>
                <dd>
                    {{ transaction.NOM }}
                </dd>

                <dt> DESTINATION: </dt>
                <dd>
                    <a href="http://trxmon.host2host.id/trx/view/{{ transaction.MESSAGEID }}">
                    {{ transaction.NO_HP }}
                    </a>
                </dd>

                <dt> SUPPLIER: </dt>
                <dd>
                    {{ transaction.CHIP_INFO }}
                </dd>

                <dt> INFO: </dt>
                <dd>
                    {% if transaction.MASALAH %}
                    {{ transaction.MASALAH }}
                    {% else %}
                    -
                    {% endif %}
                </dd>

            <dl>
        </td>
    </tr>
    {% endfor %}
</table>

Generated on {{ timestamp }}

{% endblock %}